Reputation
644
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 10
Newest
 Yearling
Impact
~24k people reached

6h
comment “Selected design can be derived from requirements” - meaning and difference against traceability?
Normally standards define terms like correctness and derive. Does 12207 do that?
Feb
1
revised Help in understanding computer science, programming and abstraction
UML matches photo (3 dice)
Feb
1
revised Help in understanding computer science, programming and abstraction
Added images
Feb
1
revised Help in understanding computer science, programming and abstraction
Added images
Jan
31
revised Help in understanding computer science, programming and abstraction
grammar improvements
Jan
31
answered Help in understanding computer science, programming and abstraction
Jan
31
suggested approved edit on Help in understanding computer science, programming and abstraction
Jan
19
comment Why should a builder be an inner class instead of in its own class file?
I think the real test to see if a Builder implementation holds up to the GoF definition is to make a new variant of a concrete builder. If the concrete builder (or its abstract hierarchy) is somehow nested as an inner class, I can't see how the design can be extended.
Jan
19
suggested rejected edit on Why should a builder be an inner class instead of in its own class file?
Jan
19
comment Why should a builder be an inner class instead of in its own class file?
I think the Builder pattern has morphed a bit since being documented in 1995. @Joppe has a point -- the GoF definition of Builder says "Use the builder pattern when * the algorithm for creating a complex object should be independent of the parts that make up the object and how they're assembled." The example is an RTFtext converter, where the built products are ASCIIText, TeXText, etc. The pattern with an inner class is not consistent with the GoF class diagram (I'm adding it to your answer for clarity).
Jan
19
comment Advantages of having multiple apps or sub apps SPAs in AngularJS SPA
I'm not an expert in AngularJS, so I won't speak of performance advantages if they exist. But the advantage to breaking down modules as you suggest is that if you want to extend your app(s), the modules are theoretically more reusable than if you put everything into one big app. For example, the app.login could be useful in any app that requires authentication (assuming it's the same authentication scheme). The same could be true for payment, catalog, etc.
Dec
29
comment Are exceptions as control flow considered a serious antipattern? If so, Why?
Wikipedia's definition of anti-pattern says it's common. Given you never saw this again, and I've never seen it ever, maybe it's just bad style and not technically an anti-pattern?
Dec
25
revised Drawbacks of a master error handler?
added 309 characters in body
Dec
25
answered Drawbacks of a master error handler?
Dec
22
answered Is it true that for Observer Pattern to work, there probably is some polling mechanism underneath?
Dec
22
comment Is it true that for Observer Pattern to work, there probably is some polling mechanism underneath?
Polling means software is actively sampling the status of something. If your macbook's CPU was spending time "constantly asking," it would be too slow to do any work.
Dec
1
awarded  Yearling
Nov
16
answered Advantages of Strategy Pattern
Nov
16
comment Advantages of Strategy Pattern
Can you be clearer about why it's easier to test? The example for refactoring a case statement (or if/then) to a polymorphic method (basis for strategy) is pretty easy to test. refactoring.com/catalog/replaceConditionalWithPolymorphism.html If I know all the conditions to test for, I write a test for each. If I have strategies, I have to instantiate and execute one for each. How is the strategy approach easier to test? We're not talking about complex nested ifs when you refactor to strategy.
Nov
16
comment Advantages of Strategy Pattern
Is this homework? It's better to state that up-front if so.