130 reputation
5
bio website fresheneesz.110mb.com
location
age
visits member for 2 years, 11 months
seen 23 hours ago

Jun
23
comment Is spying on tested class bad practice?
"I want to test the complex function .. without having to provide sane parameters for the sub functions" - I don't get what you mean there. Which sub functions? Are you talking about the internal functions being used by the 'complex function'?
Jun
21
answered Is spying on tested class bad practice?
May
24
awarded  Critic
May
24
comment try-catch in javascript… isn't it a good practice?
I can't disagree more. Try-catch is one of the biggest advances in programming expressibility in the history of programming languages. Node.js missed the boat on good error handling by using callback-style errbacks. What they should have used are futures.
May
6
comment If null is bad, why do modern languages implement it?
+1 for enumerating all the possible ways the problem can be solved
May
5
comment If null is bad, why do modern languages implement it?
Ah i see, so you're not saying that requiring values to have a default value is bad in any way. You're saying allowing only one default value (null) is bad.
May
5
comment If null is bad, why do modern languages implement it?
Well, one root non-primitive type at any rate. Why is this a weakness from a language perspective? I don't understand why this fact requires that every type have a default value (or conversely why multiple root types would allow types to not have a default value), nor why that is a weakness.
May
4
revised If null is bad, why do modern languages implement it?
added 410 characters in body
May
4
answered If null is bad, why do modern languages implement it?
May
4
comment If null is bad, why do modern languages implement it?
Null is not evil. If you watch his misleadingly named famous speach "The Billion dollar Mistake", Tony Hoare talks about how allowing any variable to be able to hold null was a huge mistake. The alternative - using Options - does not in fact get rid of null references. Instead it allows you to specify which variables are allowed to hold null, and which aren't.
Jan
30
answered Teaching logical/analytical thinking
Feb
10
awarded  Supporter
Aug
18
awarded  Teacher
Aug
17
awarded  Editor
Aug
17
awarded  Cleanup
Aug
17
answered Learning PHP OOP
Aug
17
comment Learning PHP OOP
Frameworks are overrated, and they won't teach you how to do OO well. They'll only give you a vague understanding.