1,733 reputation
1713
bio website
location
age
visits member for 3 years, 5 months
seen 6 hours ago

Oct
30
revised If an entity is composed, is it still a god object?
added 23 characters in body
Oct
30
answered If an entity is composed, is it still a god object?
Oct
24
comment What are the safety benefits of a type system?
I'm not seeing anything in there about class members. Type systems can also warn you against trying to call x.bar() unless x is guaranteed to be an object which implements bar().
Oct
22
awarded  Citizen Patrol
Oct
16
comment Why do we write the action to be performed by a function in jQuery inside the parentheses?
Uhhhh, because the function is going to be executed an an indeterminate future moment, or possibly never? That's not a jQuery thing either, it's far more general as a Javascript pattern.
Oct
16
comment Storing a value vs calling reference for repeated use in Java
Yeah: "It's easier to optimize correct code than to correct optimized code." For this kind of decision, focus on making the code clear, and profiling will tell you what to bother changing, if anything.
Sep
28
revised Refactoring jQuery spaghetti code to use DDD
typo
Sep
27
revised Refactoring jQuery spaghetti code to use DDD
deleted 66 characters in body
Sep
27
revised Refactoring jQuery spaghetti code to use DDD
added 508 characters in body
Sep
27
revised Refactoring jQuery spaghetti code to use DDD
added 629 characters in body
Sep
27
revised Refactoring jQuery spaghetti code to use DDD
added 629 characters in body
Sep
27
answered Refactoring jQuery spaghetti code to use DDD
Sep
26
comment What does the Spring framework do? Should I use it? Why or why not?
@Zoot Thanks, fixed.
Sep
26
revised What does the Spring framework do? Should I use it? Why or why not?
Fix minor wrench/hammer confusion
Sep
22
comment An ideal way to decode JSON documents in C?
Just BTW, if you go for the PHP style there's one aspect of json_decode() I think is problematic: It's sloppy about what it returns. You don't know if it's returning null because that was the normally-decoded JSON value, or whether there was an error. You then need to call another function just to figure out what kind of error may-or-may-not have occurred. I'd rather have a richer result object or throw an exception or something.
Sep
19
comment Practices for domain models in Javascript (with frameworks)
Is your question more about how you manage object instances on the JS side for decoupled components, or more about the communication between the client and server? Also, regarding M.getComplexValue(), you may want to look into the "Promise" pattern as a way to minimize callback-hell while allowing all operations to be (potentially) asynchronous.
Sep
18
comment Are design patterns really essential nowadays?
@JörgWMittag It sounds like the pattern is still there, people just have an easier way to write it. For example, suppose there was a language that let you define public builder class foo {...} , where all methods are guaranteed to return this. It may be institutionalized into the language, but it's still there...
Sep
18
comment Is it ever a good idea to use the design pattern name in the implementing classes?
Personally, I'd prefer using AbstractAnimalFactory, and then keep AnimalFactory in reserve in case I need an interface. IMO developing against an interface is generally better, and if you're doing that then you want the commonly-appearing classes to be pleasing to read. (In other words, not IAnimalFactory.)
Sep
16
comment More efficient way to paginate search results
IMO this is one of those areas where no matter what happens it's got warts and eventual performance issues... If you can, step back and look at it as a user-experience problem: If someone's paging too far into the results, that's the real problem, and something needs to change so that they don't have to.
Sep
5
comment How can designing for inheritance cause extra cost?
IMO it's extremely similar to the private/protected/public debates when it comes to APIs: It strongly depends on who controls the class, who wants to inherit the class, communication between the two, and how often new versions come out.