342 reputation
19
bio website
location
age
visits member for 2 years, 9 months
seen 8 hours ago

Jan
25
asked Does functional programming increase the 'representational gap' between problems and solutions?
Jan
10
comment Software Design: Generating Documents Of Different Formats and Different Layouts
HR-XSL is an example (from 2002) of a similar approach that uses Java to read from XML and produce different formats of a CV via DocBook and XSLT. I managed to use it and was happy with the results (albeit the lack of support for multiple languages). Design-wise, there is surely a cleaner way; but the main thing a design has to do is solve the problem.
Jan
8
comment Does key-value observing between model and view violate MVC?
Views are NOT supposed to be dumb about the model. It's an assumption that Models are dumb about Views, mainly because Views tend to be less stable than Models. That is, it's an architecture that allows View code to be changed easily without breaking the Model code. If you change the Model code, you will most definitely break the Views. It's often a point that is misunderstood in MVC.
Dec
30
comment where should put showSchedule method in school system
Pure Fabrication (see the link and the reference by Craig Larman) is the reason for the decision.
Dec
29
comment where should put showSchedule method in school system
Don't duplicate code. ScheduleManager can have the responsibility to do that for students and parents.
Dec
28
answered where should put showSchedule method in school system
Dec
28
comment where should put showSchedule method in school system
Your associations don't have verbs to explain the relationships (for OO analysis). What is the class StudentCourse exactly? Is it the same as an offering of a course? I don't understand CourseClass at all.
Dec
26
comment Design solution for communicating between multiple layers
Can you provide information about layer communication? Is it the Layers architectural pattern (top layers see lower layers but not the other way) or is it more like OSI layers (communication only with adjacent layer(s))?
Dec
15
revised Is it misleading to label code as a particular design pattern if it only loosely fits the definition?
added 5 characters in body
Dec
15
answered Is it misleading to label code as a particular design pattern if it only loosely fits the definition?
Nov
29
comment Why do code-bases in n-tier development have an equal amount of, if not more, JavaScript code now?
@gnat I appreciate the feedback. I cited the various parts of the question (namely compiled vs script and imperative vs functional) that weren't answered elsewhere. I've gotten 3 upvotes on this, so I can see it's a mixed reaction.
Nov
19
comment Why do code-bases in n-tier development have an equal amount of, if not more, JavaScript code now?
Would love if the down-voter had the courage to say which part(s) of my answer(s) she didn't like?
Nov
17
comment Generalization of phase based systems for card and board games
This is a hard problem to solve top-down. Make it work for one game, then extend it to another, and another, until it's pretty general. If you make it work for at least two, it's hardly futile.
Nov
16
answered Why do code-bases in n-tier development have an equal amount of, if not more, JavaScript code now?
Oct
28
comment Why bother differentiating between functional and nonfunctional requirements?
+1 for NFRs being tied to architecture. It's harder to make them happen if you don't look at the system as a whole. Performance and fault tolerance are great examples of NFRs that often need to be designed at the system level.
Oct
28
comment Why bother differentiating between functional and nonfunctional requirements?
"only test the functional requirements" -- how about a non-functional requirement that says the "system should tolerate database failures" (good luck not testing that and see how your client likes it). I agree with @gbjbaanb that Nonfunctional requirements (which are usually handled at an architectural level!) are not going to be given to junior team members. Do you understand really what NFRs are?
Oct
16
comment Designing classes the right way
Also, this sounds like it could be homework. If it is, you should say so. meta.stackexchange.com/questions/10811/…
Oct
16
comment Designing classes the right way
You could also do an object-oriented analysis of the problem (a domain model) before you start coding it up.
Oct
16
comment Best Practices To Create Error Codes Pattern For an Enterprise Project in C#
There's the ugliness of not understanding error code 12345 as opposed to a message "Disk full" -- Microsoft Windows updates sometimes fail, and I get error codes as opposed to messages. Googling them is not much help - just did this yesterday for Code 80070103 -- "Get help with this error" is a mess. Perhaps this is more a problem with Microsoft than the error-code approach, but in 2014 I think users shouldn't see error codes.
Oct
5
comment When writing object-oriented code, should I always be following a design pattern?
@Cerad Secular programmers don't use Factories, as they're creationist. Genetic algorithms are OK, though.