1,189 reputation
47
bio website
location
age 49
visits member for 3 years, 8 months
seen 2 days ago

Jun
18
comment How to comment the file system?
The problem is that the person looking for the information may have no idea what project to look at for the information. For a system that grows over time, this change could have been from many projects back. If nothing else, this readme file could point to the correct project documentation.
Jun
18
answered How to comment the file system?
Apr
7
comment Does design by contract imply correct output?
Understood, but that doesn't change the fact you can get bad inputs and should check your data based on the needs of your environment. Bad things can happen when bad data is ignored. Maybe the right answer is not to use DbC if hard failures are unacceptable.
Apr
4
answered Does design by contract imply correct output?
Feb
19
comment “All software has an expiration date by which time it must be rewritten from scratch.”
Eventually, you will reach a point where the fundamental design decisions, which were perfectly accurate at the time, no longer match the current world. There is only so much you can refactor and at some point you will likely reach a point where you have some type of performance/stability problem from this process. At that point, you are likely going to need to rewrite. I would stay away from the term "complete rewrite", because I think there will be plenty of code that is re-usable, but conceptually you need to break down the old model and build a new one.
Jan
23
comment How to fit requirements into MVC
Design patterns are like tools, they either fit your requirements or they don't. If not, the pattern should change not the requirements.
Jan
23
comment How to fit requirements into MVC
I'm not suggesting this is the best case at all times, but I also think developers should not force requirements to fit the tools as the question implies.
Jan
22
comment How to fit requirements into MVC
Maybe not even a controller. Depending on your architecture, make a direct call to a worker/service that returns the raw data based on a simple set of parameters. Csv dumps can actually be pretty straight-forward and don't need this framework overhead at all.
Jan
22
revised How to fit requirements into MVC
deleted 1 characters in body
Jan
22
answered How to fit requirements into MVC
Jan
22
comment How to fit requirements into MVC
Questions like this scare me, just because I have a hammer, doesn't make every problem a nail. Too many times I see developers, especially junior ones, try to make the problem fit their toolset.
Jan
21
comment Are design patterns essential for good code?
@ArlaudPierre, I think Oded is trying to point out the difference between Design Patterns (as espoused by GoF) and design patterns(the good code we have been writing for years without putting a name on it). Good algorithmic solutions to common problems have existed for a very long time. However, putting formal names on them and arguing about Patterns and Anti-Patterns, etc. has changed the discussion landscape. Personally, I think we have put too much emphasis on Design Patterns instead of design patterns.
Nov
6
answered What layer to introduce human readable error messages?
Nov
6
comment Compatibility of Enum Vs. string constants
In the end, you will have potential versioning problems with either solution. It more likely comes down to the implementation details of your system and which problem will be easier to deal with in that implementation.
Nov
6
comment Compatibility of Enum Vs. string constants
@yosi, yes the string will deserialize, but the behavior is still unpredictable since the old system still has no idea what it means. You still have a problem with the old version of the software, it is a different problem, but a problem none the less.
Nov
6
comment Compatibility of Enum Vs. string constants
Strings don't avoid the versioning problem. Suppose you add "TASK_END_STATE_ESCALATED" a year from now. The old version will have just as much trouble with the new string or the new enum, they will both fail or hit the default case.
Nov
1
comment Find all lines segments intersections
Are you asking for intersections or endpoint connections (a path)? Your sample shows connections which is a subset of the possible intersections of 4 line segments.
Nov
1
revised How to test issues in a local development environment that can only be introduced by clustering in production?
added 1 characters in body
Nov
1
comment How to test issues in a local development environment that can only be introduced by clustering in production?
You may be able to get away with cheaper replacements for some parts, but in the end, you are debugging a problem with a specific set of hardware/software and replacing any component may leave you unable to replicate. Admittedly, a tough decision to make financially, but if this is a external product or an internal critical application, you will need this level of test environment sooner or later. Cost effectiveness should take into account loss of business/functionality, if you can not properly provide support.
Nov
1
comment How to test issues in a local development environment that can only be introduced by clustering in production?
Agreed, simulation can only get you so far. Some problems need to be worked on in the true environment, whether that be clustered, embedded or some other architecture...