1,505 reputation
21533
bio website
location Singapore
age 22
visits member for 3 years, 2 months
seen Jul 7 at 10:19

Autodidact of various trades, geek of several.





There are probably two types of coders; the one who took up this craft before he knows it’s a quadzillion dollar industry, and the one after.






Sold as cheap, forced labour for 16056/16056 hours. When the people fear the government, there is tyranny. When governments fear the people, there is liberty.























Postal: PacerierSE Gmail


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
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)
Jun
17
comment Should I use the factory design pattern for every class?
@tdammers, Creating objects using a "factory" can be done with a mere static method (the static method is the "factory", there's no need to have "factory objects" so your point is invalid.
Jun
14
comment What can you do to decrease the number of deployment bugs of a live website?
+1, You speak wisdom.
Jun
13
comment What is the best way to design a web site to be highly scalable?
Ok... so what's after measurement?
Jun
13
comment Naming conventions: camelCase versus underscore_case ? what are your thoughts about it?
@LearnCocos2D, but code maintenance usually cost more time than code creation.
May
13
comment Would a typical corporate firewall block a Java applet having the following behaviour
What if you encrypt all messages?
May
12
comment How should I go about learning a very large and complex application?
Is tiddlywiki actually usable?
May
12
comment How do you go about understanding others' code?
What if there's a ton ton of code?
May
12
comment How do you go about understanding others' code?
@Marcie, Not if they commit...