1,586 reputation
21738
bio website
location Singapore
age 23
visits member for 3 years, 7 months
seen 6 mins ago

Aug
26
comment What is Java used for these days?
@Craige, Doesn't Android also use Java?
Aug
26
comment What is Java used for these days?
@user1249, Except it doesn't. Basically write once test everywhere.
Aug
26
comment Is it better to use assert or IllegalArgumentException for required method parameters?
@Jalayn, -1. The compiler does not remove assertion code. Even though they will not be run unless you do cmd java -ea.
Aug
17
comment Benefit of using static inner builder class
See also stackoverflow.com/a/1953567/632951
Aug
14
comment What is the difference between Enterprise Java vs Core Java?
@m3th0dman, stackoverflow.com/a/2000366/632951 seems to contradict you directly....
Jul
28
awarded  Good Question
Jul
17
awarded  Popular Question
Jun
26
comment Undefined behaviour in Java
@gnat, Hm, shouldn't that be edited with a post scriptum? It seems like an abuse of the rollover, and in any case, small mobile screens would not have that effect anyway.
Jun
25
comment Undefined behaviour in Java
@gnat, +1. But why did you abuse the rollover for your last paragraph?
Jun
25
comment Undefined behaviour in Java
@user1249, "undefined behavior" is actually pretty rigidly defined as well.
Jun
25
comment Is there any reason lazy initialization couldn't be built into Java?
So how would this reconcile with P.T.'s answer at programmers.stackexchange.com/a/110958/24257 ?
Jun
25
comment Why does Java have a “bad rap”
@mikera, It only takes one hole to let the worm in.
Jun
25
comment So Singletons are bad, then what?
@Aaronaught, Do you mean that a singleton implementation that allows explicit freeing is no longer considered a "singleton" simply by definition?
Jun
25
comment So Singletons are bad, then what?
@Aaronaught, Why do you say that singletons are never explicitly freed? I do actually remember seeing singletons that are explicitly freed.
Jun
25
comment Singleton: Is Singleton an Anti-Pattern
@fatuhoku, Because it's fun to invent names.
Jun
24
comment Requring static class setter to be called before constructor, bad design?
I think he meant the calling code would call the static initialize() only once, and not every time before we call the constructor. In other words, the check if (is_initialized) return; may not be needed.
Jun
24
comment I've been told that Exceptions should only be used in exceptional cases. How do I know if my case is exceptional?
@KarlBielefeldt, You claim that exceptions "simplify the code", but Mike's answer seems to directly contradict that programmers.stackexchange.com/a/184714/24257 . What are your thoughts on that?
Jun
24
revised How do people make money by writing programming languages?
added 91 characters in body; edited tags; edited title
Jun
18
comment What's a good, quick algorithms refresh?
This book is 900+ pages, I thought he was asking for something within 100 pages?
Jun
17
comment Should I use the factory design pattern for every class?
@Oded, "Consistency" can be a strong argument actually... (especially since the overhead of implementing factory is relatively low)