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

greenlaw110

V2EX 第 115909 号会员,加入于 2015-05-08 16:47:39 +08:00
老码农
greenlaw110 最近回复了
操作系统: Mint + Cinamon - 偏保守者
浏览器: Chromium - 偏小白
应用:微信 - 绝对小白
2022-10-20 17:53:43 +08:00
回复了 longmeier90 创建的主题 程序员 35 岁的程序猿,有没有出路?
50 岁还在搬砖的老码农给个建议,与其焦虑,不如奋斗。一直记得卡马克说的那句,信息年代,障碍是不存在的,把快餐塞进冰箱,搞个电脑,撸起袖子开干就是了
2022-10-20 17:38:56 +08:00
回复了 tool2d 创建的主题 程序员 你们是什么时候感受到编程快乐的?
50 岁的老码农感觉一直都快乐!

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

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

能通过写代码这样快乐的工作来赚养家糊口的钱,真好!
2019-12-11 16:26:52 +08:00
回复了 shazh520 创建的主题 Java 大家在做单元测试的时候如何准备数据库环境?
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
2019-12-06 09:11:52 +08:00
回复了 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 中有下面一段话
关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2446 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 20ms UTC 05:57 PVG 13:57 LAX 22:57 JFK 01:57
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86