3,684 reputation
21030
bio website
location
age
visits member for 2 years, 11 months
seen 8 hours ago

Viewing this information about users with over 50,000 reputation requires a Stack Overflow Gold Account. Please log in to your gold account or join us.


May
10
comment Why create a Global-ish Object.create function?
It's a polyfill. It fills it in old (ES3) browsers.
May
10
comment Why create a Global-ish Object.create function?
@Zirak before that it was called beget and he defined it in whatever scope he was in and not on Object - so this answer is not really chronologically wrong.
Apr
16
comment What exactly makes the Haskell type system so revered (vs say, Java)?
@Doval it certainly is a reason it's popular though, working with data types with pattern matching on type is one of the key things that make using a type system like that nice. It's part of what makes it revered.
Apr
16
comment What exactly makes the Haskell type system so revered (vs say, Java)?
Pattern matching is also really important, it means you can use the type of an object to make decisions super easily.
Apr
16
revised What exactly makes the Haskell type system so revered (vs say, Java)?
edited title
Apr
14
comment Why are native ES6 promises slower and more memory-intensive than bluebird?
Because it's not an anti-pattern "proper", but maybe it should be added because it's useful to know
Feb
18
comment What is the purpose of planning poker in a sprint?
I'd just like to add that there are counterarguments and some smart people consider planning poker a waste of time - so take answers you get with a grain of salt.
Feb
8
comment Why is instance creation the way it is?
@CortAmmon I think you have a typo there, clearly you meant "work with polymorphism" rather than copy/pastable on that code :D
Feb
1
comment Why would many duck-typed dynamic programming languages use a class-based approach instead of prototype-based OOP?
First thing first: JavaScript itself supports the class keyword as of the next ECMAScript standard (ECMAScript 6). Support for classes in JavaScript has been planned for a long time. Now for what it is - classes are just syntactic sugar, an easier to reason about model for objects of the same type. It's this way in JS and it's this way in Python and other dynamic languages.
Jan
23
comment Throw exception or let code fail
@Philipp if we think about it LoadMaterial has the following constraints: "After calling it the material is always loaded and the number of materials loaded did not decrease". Throwing an exception for a third constraint "The material cannot be added twice" seems silly and counterintuitive to me. Making the function idempotent reduces the code's reliance on execution order and application state. It seems like a double win for me.
Jan
17
comment How should nodes in a chain be connected?
It's worth mentioning that the events approach is similar. Just like the imperative equivalent of a Task is a callback - an event emitter that shoots a single event multiple times is the imperative equivalent of an Observable. Just like Tasks are stronger than callbacks and people prefer them so are Observables stronger than events in this case.
Jan
17
revised How should nodes in a chain be connected?
deleted 26 characters in body
Jan
17
answered How should nodes in a chain be connected?
Jan
11
comment Does using == in JavaScript ever make sense?
It would be great if your answer wasn't about how you "feel" about the subject but actually backed up with facts or other data.
Jan
8
comment If MVC is “Separation of Concerns” then why was Razor Syntax introduced?
@Alex my point was you're calling "Separation of concerns between the presentation layer and the business logic layer" which is indeed a general pattern MVC which is the name of a specific pattern. Imagine if I called "A class with a reference to an instance of its own supertype" a decorator class, all decorators hold a reference they delegate to but then again linked list nodes typically also hold a reference to the next node but they're in no way decorators. This is like MVC here - MVC is a specific partitioning which ASP.NET MVC does not do. They named it MVC for marketing reasons.
Jan
8
comment JavaScript program design: to what degree should I separate logic and display?
JavaScript is not special here, you would perform as much separation between presentation and business logic as you would in any other programming language. Nothing is more tightly coupled in JS than it is in other languages...
Jan
7
comment Does using == in JavaScript ever make sense?
@JoshuaTaylor because EqualityExpression (what the left hand side and right hand side are both called) is a term everyone in the world knows and loves :)
Jan
7
awarded  Great Answer
Jan
7
comment Does using == in JavaScript ever make sense?
@prpl.mnky.dshwshr I completely agree with that. This post represents an opinion I do not hold but definitely exists and I believe deserves to be heard here. The argument people who like this sort of weak typing make is that it's obvious that "5" should act like the number 5 (what other number would the average person expect it to act like?).
Jan
7
awarded  Guru