Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
3
Newest
 Commentator
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 23 votes cast
Jan
6
comment What are 4th & 5th programming language generations? Are there more of them?
@AndrewHoffmann The title of engineer is well standardised in France at least, where you need to have at least a master in CS (either 1 or 2, though 1 is usually not considered as such), or have graduated from so called engineering schools (Grandes Écoles), which gives you the master 2 equivalence. As for the rest of the world, maybe it is so. As for code standardisation, I don't have much knowledge about it, I should admit. What would it mean? I guess process standardisation has some meaning for me, but code? It's already formal.
Jan
5
comment What are 4th & 5th programming language generations? Are there more of them?
@AndrewHoffmann What's wrong with that? If you're building a bridge, you better have the right kind of material for your structure, and rivets better be the right size (and how many sizes there are?).
Jan
5
comment Where would be better to handle an exception?
If you forget the previous (dumb and thus erased) comment I made, and imagine that exceptions in Java are not expensive objects anymore, would you more likely use them? Or do you actually refuse to use exceptions for other reasons?
Jan
5
comment Is using generics to indicate some class/method is aware of a type good idea?
I guess it's a matter of style, I prefer to avoid repetition in code, and surely reimplementing the observer pattern at use site will induce code repeat. But will the use of generic induce the same sort of boilerplate, I would not be so sure
Jan
5
comment Is using generics to indicate some class/method is aware of a type good idea?
I disagree with you: the observer must know the type it observes, but usually the observer doesn't need to expose its observer interface to the rest of the program, because it will include the code related to the observation. Thus, if it must observe more than one class, observation can be delegated to inner classes.
Jan
5
comment How use same Behavior Drive Development (BDD) stories across platforms?
If you don't have a cross platform tool, you will have to adapt to whatever is available on each platform you wish to support. that said, unless you want to drive all platform developments up front, you could simply pick the best tool available, do your development on that platform, and port the result to the remaining platforms — at the cost of perhaps a less natural user experience?
Jan
5
comment Cleanest choice for symmetric operations
What happens if you need to add a 3rd message format/class?
Jan
5
comment Where would be better to handle an exception?
Well, it could become a NoSuchEmployeeID exception, which is telling a bit more about the nature of the issue (from a code readability perspective), but if the exception can be discriminated unambiguously as it is, there's little gain in transforming it.
Jan
5
comment Where would be better to handle an exception?
getEmployeeById could return null, which could be interpreted as "no such employee in Db" by the caller. however, this means that you would have to handle the same error twice (once in the DAO method, and a second time in the controller method), which isn't very efficient.
Dec
6
comment In MVC should a model contain subview models?
There are also other rules which dictate how things should be written: DRY, SOLID, KISS. They're not conflicting with MVC, and should certainly be applied as much (if not more).
Dec
6
comment In MVC should a model contain subview models?
You, coming from Haskell, should relate to the following: I think that MVC is just an abstract model of relationships between parts of a program, but which parts should play the role view, model or controller depends on the problem you're confronted with. Likewise, Category Theory is just a set of rules to help formalize relationships between objects, but there's no rigid definition of which actual objects may be used with these rules. CT itself can be formalized with CT. HMVC is a good example of that idea, as you can use MVC within MVC (though it's not the same kind of recursion).
Jul
21
comment Difference between REST and CRUD
Your answer is correct, but the example isn't optimal: a comment can boil down to a single db row, and isn't it possible to implement dynamic changes to related objects with db triggers? I feel there's a little more than just crud operations in restful api though, and your answer clearly carry that feeling well.