greenlaw110's recent timeline updates
greenlaw110's repos on GitHub
Java · 42 watchers
greenscript
A tool help web developers manage javascript/css rendering, including minimize and dependence management
Java · 38 watchers
play-excel
A Play! framework plugin to help generate Excel file (using predefined Excel file as template)
Java · 33 watchers
di-benchmark
Benchmark dependency injection solutions
Java · 11 watchers
ActBookmarks
A simple ActFramework project exposing REST API to store bookmarks
JavaScript · 10 watchers
play-menu
A Playframework plugin to enable web developer quickly implement navigation menu
JavaScript · 9 watchers
play-greenscript
A play framework plugin to help to manage javascript/css file dependencies and do minimizing
Java · 7 watchers
java-str-benchmark
Java · 6 watchers
play-aaa
Play plugin for AAA
Java · 6 watchers
play-aaa-demo
Demonstrate how to use play-aaa module
Java · 6 watchers
play-app-base
A module host commonly used play application utilities
Java · 5 watchers
play-config
A Playframework plugin to enable dynamic configuration for play application
JavaScript · 4 watchers
knockout-ext
Knockout JS extend library
CSS · 3 watchers
linuxenv
Java · 3 watchers
play-guice-module
guice module for play!
CSS · 2 watchers
act-zencontact
An ActFramework implementation of Play's zen-contact sample app
Java · 2 watchers
atmsim
An ATM Simulator
Java · 2 watchers
BetterLogs
A Play! Framework tiny log enhancer
JavaScript · 2 watchers
box2dWeb
JavaScript · 2 watchers
jfinal-bbs
一个简单、尚未成型(还在继续开发中)的的BBS:采用了简洁而强大的JFinal作为MVC框架,Beetl作为视图模版语言…^O^
Java · 2 watchers
jfinal-rythm-demo
Update JFinal Offical Demo app with Rythm template engine
JavaScript · 2 watchers
knockout
Knockout makes it easier to create rich, responsive UIs with JavaScript
JavaScript · 2 watchers
pMask
A protoype porting of Fabio Zendhi Nagao's iMask (which is based on mootools)
Java · 1 watchers
act-github-issues
Used to reproduce github issues
Java · 1 watchers
act-mq
使用ACT做的一个MQ小工具,目前包括redis,rocketmq,rabbitmq 三种MQ消息的接收与发送
Java · 1 watchers
blogpost_files
Ruby · 1 watchers
blueprint-css
A CSS framework that aims to cut down on your CSS development time
JavaScript · 1 watchers
bootstrap
CSS toolkit from Twitter
Java · 1 watchers
ex_benchmark
Benchmark using exception as control flow in an environment emulating https://github.com/actframework/actframework
Java · 1 watchers
hello-genie-injectionPoint
A genie implementation of https://github.com/nickymoelholm/smallexamples/tree/master/hello-spring43-injectionpoint
Java · 1 watchers
JANetty
Remote actors using JActor and Netty
JavaScript · 1 watchers
jquery-addresspicker
JQuery UI widget : address autocomplete field by google maps V3 geocoding service
JavaScript · 1 watchers
jquery-switch
A slide/toggle switch for jQuery
JavaScript · 1 watchers
lgl_ui
A javascript UI package
JavaScript · 1 watchers
metro.css
Java · 1 watchers
mongo-java-driver
java driver for mongo
Python · 1 watchers
play
Play framework
Java · 1 watchers
play-trace
Enable turning on trace to log application execution flow
1 watchers
play-trace-demo
A playframework application demonstrate trace feature in Betterlogs (green version)
Java · 0 watchers
act-bbs
Java · 0 watchers
act-bin-output
act-bin-output
Java · 0 watchers
act-doc-configuration
sample code to support act-doc configuration chapter
Java · 0 watchers
act-eclipselink-lazyload-demo
Java · 0 watchers
act-excel-demo
Demonstrate different approach of generating excel report in ActFramework
CSS · 0 watchers
act-j2cache
Plugin J2Cache into ActFramework
Java · 0 watchers
act-jfinal-demo
demo application for act-jfinal
Java · 0 watchers
act-projects
a collection of act projects for different purpose
Java · 0 watchers
act_admin
基于Act.Framework开发的一套通用后台管理系统
JavaScript · 0 watchers
AI-OpenAPI-CMS
安浪创想开发的基于JAVA8+ActFramework+MongoDb+MySQL+bootstrap+AngularJS+JQuery等框架的AI人工智能官网管理系统
Java · 0 watchers
avaje-ebeanorm
EbeanORM API and implementation
0 watchers
awesome-java
A curated list of awesome Java frameworks, libraries and software.
Shell · 0 watchers
bash-powerline
Powerline-style Bash prompt in pure Bash script. See also https://github.com/riobard/zsh-powerline
Java · 0 watchers
beetl2.0
beetl2.0
JavaScript · 0 watchers
bitmapjs
A simple tool to create bitmap from a list of keys
0 watchers
blog
support writing blogs
0 watchers
BlurCinnamon
A Cinnamon extension to Blur and Colorize parts of the Cinnamon Desktop
Java · 0 watchers
bookmark
A simple Bookmark service demonstrates using act-aaa with SQL database
0 watchers
bookmark-ui-angular
An angular frontend for act-gallery/bookmark
JavaScript · 0 watchers
boxy
Definitely, your next theme for Sublime Text 3
JavaScript · 0 watchers
Datepicker-for-Bootstrap
a datepicker in javascript using the Bootstrap design
Java · 0 watchers
ebm
Template Engine Benchmark Test
PHP · 0 watchers
ecs-demo-php-simple-app
A simple PHP sample application http://aws.amazon.com/ecs
JavaScript · 0 watchers
enumjs
Easy creating enum in Javascript
Java · 0 watchers
fastjson
:bullettrain_side: Fast JSON Processor
Java · 0 watchers
fastjson-char-issue
Demonstrate the issue of resolving data with char (array/list/etc) with FastJSON
Java · 0 watchers
FirstTryAaaSecurity
First steps with Act-aaa, causing an error -> example project to explore the error
Java · 0 watchers
FrameworkBenchmarks
Source for the TechEmpower Framework Benchmarks project
Java · 0 watchers
genie-custom-annotation-demo
Use genie to rewrite https://github.com/nickymoelholm/smallexamples/tree/master/spring43-custom-annotations/src/main/java/com/moelholm/spring43/customannotations
0 watchers
greenblogger
Another blogger application
Java · 0 watchers
helloworld
Java · 0 watchers
httl
Hyper-Text Template Language and Engine.
Python · 0 watchers
httpie
Modern command line HTTP client – user-friendly curl alternative with intuitive UI, JSON support, syntax highlighting, wget-like downloads, extensions, etc. https://httpie.org
Java · 0 watchers
JActor
Actors for Java
Java · 0 watchers
jactor-in-action
code samples of JACTOR
Java · 0 watchers
JASocket
Integrates SocketChannel and JActor
Java · 0 watchers
java-logging-test
Test OSGL logging
0 watchers
java-social-connect
A simple java library to allow web application authenticate user by connecting to different social platforms
Java · 0 watchers
Jax-RS-Performance-Comparison
:zap: Performance Comparison of Jax-RS implementations and embedded containers
Java · 0 watchers
jcalaBlog
基于springBoot+mybatis+springMVC+bootstrap的响应式个人博客网站
Java · 0 watchers
jfinal
JAVA WEB + ORM Framework
Java · 0 watchers
JID
Incremental Deserialization for JActor
JavaScript · 0 watchers
jquery-placeholder
A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet
Java · 0 watchers
kilim
Lightweight threads for Java, with message passing, nio, http and scheduling support.
JavaScript · 0 watchers
knockout.mapping
Object mapping plugin for KnockoutJS
0 watchers
kwartzite
Kwartzite is a designer-friendly template system. It uses plain HTML file as template and it doesn't break HTML design at all. Presentation logics are separated from HTML file.
Java · 0 watchers
majia
majiahao.com 's source.
0 watchers
markdown-doclet
A Doclet that allows the use of Markdown in JavaDoc comments.
0 watchers
meetup
The sample projects for meetups
C++ · 0 watchers
microservices-framework-benchmark
Raw benchmarks on throughput, latency and transfer of Hello World on popular microservices frameworks
Java · 0 watchers
netty
Netty project - an event-driven asynchronous network application framework
JavaScript · 0 watchers
ng-cordova
Native mobile services and features for native mobile web apps built with Cordova/PhoneGap
Java · 0 watchers
num_pool
get/return number into the pool; report pool number usage
CSS · 0 watchers
osgl-spring
Make spring more easier to use. Cache, Stateless Session, Result etc.
0 watchers
osglworks-java-excel-issue-22
failed to set cell value warning when cell value is json string #22
JavaScript · 0 watchers
phonegapapp
An app help me understand how to use phonegap
Java · 0 watchers
play-storage
legacy project for simple Persistent IO lib for play 1.x
Java · 0 watchers
play-wkhtml2pdf
Legacy play 1.x module for generating PDF with wkhtml2pdf library
JavaScript · 0 watchers
react-router-flux-starter-kit
[React+FLUX+Parse example] a starter kit for reactjs flux project - including react-router & FB oauth
Java · 0 watchers
release-builder-web
release-builder-web
greenlaw110

greenlaw110

V2EX member #115909, joined on 2015-05-08 16:47:39 +08:00
老码农
greenlaw110's recent replies
操作系统: Mint + Cinamon - 偏保守者
浏览器: Chromium - 偏小白
应用:微信 - 绝对小白
Oct 20, 2022
Replied to a topic by longmeier90 程序员 35 岁的程序猿,有没有出路?
50 岁还在搬砖的老码农给个建议,与其焦虑,不如奋斗。一直记得卡马克说的那句,信息年代,障碍是不存在的,把快餐塞进冰箱,搞个电脑,撸起袖子开干就是了
Oct 20, 2022
Replied to a topic by tool2d 程序员 你们是什么时候感受到编程快乐的?
50 岁的老码农感觉一直都快乐!

- 刚进大学,进入要脱鞋的机房,跟着老师在西门子 7570 的终端上敲指令的时候,快乐!
- 学习 DBase 依样画葫芦写出小程序打印日历出来的时候,快乐!
- 学习 BASIC 仿照老师的代码,自己从头到尾敲出一份在 DOS 上用 ASCII 码画电力工程图的程序的时候,快乐!
- 自己研究 QBasic 贪吃蛇游戏,魔改进入任意关卡的时候,满足又快乐!
- 在三线城市小银行做电脑管理员,帮会计在 DOS 上弄一个 Config + AutoExec.bat 菜单,让她们能快速进入需要的程序,嗯,快乐!
- 后来玩 Java ,Perl ,c ,Python 各种语言,各自带来不一样的感觉,都很快乐!
- VS ,JBuilder ,JDeveloper ,Eclipse ,IDEA ,IDE 们玩起来真快乐!
- VIM 玩熟练的时候很快乐,Emacs 真烦!
- 字体换来换去好快乐!

你问我为啥搞软件就快乐,我想了几十年才明白,这是快反馈啊,跟玩游戏似的,操作能带来即时反馈,不就很爽吗?

能通过写代码这样快乐的工作来赚养家糊口的钱,真好!
mock 是常见的方式, 不过涉及到数据库操作的情况下,mock 总感觉不靠谱. 啥都 mock 了,函数里面也没有什么逻辑, 测试也失去了应有的作用.

这也是我一直很纠结单元测试的原因之一.

后来自己折腾出了一套 functional 测试工具, 数据准备与清理工作也不成问题了. 有兴趣的同学可以参考一下这里:
https://gitee.com/actframework/act-doc/blob/master/cn/test.md#-82-%E5%87%86%E5%A4%87%E6%B8%85%E7%90%86%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE
Dec 6, 2019
Replied to a topic by lavvrence Java boss 说了一个骚操作。。。
@Evrins Playframework1 哪里是这样, route 配置在后端, 前端不可能传递后端的实现细节的, 这种不是骚操作, 这种是瞎操作
@imn1 实在不好意思, 我当时有好几个 V2EX 的 tab, 一不小心就贴错了. 但是又不知道如何删除. 抱歉了...
@wysnylc 嗯嗯, 这个地方的确有点绕. 因为我以前做过 C++ 项目,对引用有另外的了解. 总的来说引用是一种安全地传递指针(即地址)的方式, 但这个地址不是 Java 引用类型对象的地址, 而是当前堆栈上变量的指针. 如果说一种简单地方法来判断是否为引用传递, 只需要看看方法内的引用改变会不会反馈到调用方法(外层堆栈)上就可以了. 也就是我上面那个 swapnum 方法做的事情
@wysnylc 我不清楚你为啥总是说我被 "一切传引用其实本质上是传值" 这句话误导. 实际情况是我在今天之前没有看到过这句话, 而且我也完全不同意这句话的说法. 传值隐含的语义是拷贝, 传引用是没有拷贝发生的, 这句话根本上就是错的.
@wysnylc 我觉得还是从字面上来讲比较好一点.

中文 英文
传值 pass by value
传引用 pass by reference

这里的中文表达并没有清晰地传递英语原意. 更准确地将应该是:

按照值方式传递函数形参 - 有拷贝发生
按照引用方式传递函数形参 - 无拷贝发生

你刚刚引用的 java-pass-by-value-or-pass-by-reference 中有下面一段话

A Java object, in contrast to Primitives, is stored in two stages. The reference variables are stored in stack memory and the object that they're referring to, are stored in a Heap memory.

Whenever an object is passed as an argument, an exact copy of the reference variable is created which points to the same location of the object in heap memory as the original reference variable.


上面第一部分将 Java 存放引用类型的机制说明地很清楚, 引用变量存储的是引用类型数据的内存地址, 也就是说变量本身的值就是引用类型数据的指针. 正因为如此, 传递引用变量的时候对值做了拷贝, 你将引用类型数据的地址通过值传递(拷贝)进了函数形参, 所以你可以操作这个引用类型数据, 但引用本身是没有传递进函数的, 因此我上面的 swapnum 函数不可能交换数据. 这个机制在第二部分说明的很清楚. 你上面说没有交换是因为他们是基本类型, 这个说法完全不正确, 因为在我上面的代码中我使用的是 Integer 而不是 int, 基本类型的包装类型, 即引用对象类型.

另一方面讲, 中文的表达 "传值" 和 "传引用" 也有 "传递值到函数形参" 和 "传递对象引用到函数形参" 的味道, 这个可能是中文传值, 传引用容易引起误解的部分原因吧.
@wysnylc 我觉得还是从字面上来讲比较好一点.

中文 英文
传值 pass by value
传引用 pass by reference

这里的中文表达并没有清晰地传递英语原意. 更准确地将应该是:

按照值方式传递函数形参 - 有拷贝发生
按照引用方式传递函数形参 - 无拷贝发生

你刚刚引用的 https://www.baeldung.com/java-pass-by-value-or-pass-by-reference 中有下面一段话
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   966 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 20ms · UTC 21:58 · PVG 05:58 · LAX 14:58 · JFK 17:58
♥ Do have faith in what you're doing.