Reputation
7,098
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
3 23 30
Newest
 Guru
Impact
~211k people reached

Mar
24
comment Is it a bad practice to return third party reference from public method?
Related: programmers.stackexchange.com/questions/220450/…
Mar
24
answered Is it a bad practice to return third party reference from public method?
Mar
17
comment Is scientific code a different enough realm to ignore common coding standards?
Clean code having a lot of coding standards is a bad argument. The Agile manifesto may not have anything to do with coding standards, but Agile does promote flexibility and responding to change and sticking to coding standards or best practices supports that. So - in a very indirect and circumspect way agile may not have anything to do with coding standards, but coding standard do have a lot to do with agile.
Mar
14
comment Test cases do all the work through helper method — bad practice?
@Attilio Exactly. And from my point of view intelligibility trumps duplication-avoidance. Also DRY is a much broader concept than simply avoiding code duplication. It is not so much about avoiding code duplication as it is about avoiding knowledge (business rules, algorithms) repetition.
Mar
10
comment Does the visitor pattern violate the Liskov Substitution Principle
Behavior can be changed without changing the contract of the ancestor. Not violating the contract is what substitutability is about. For example a set of persisters that all read and save data correctly but the sources and targets they read from and save to can be completely different. As long as the contract of the ancestor only stipulates that saved data is read back unchanged and does not require any specifics with regard to storage type used, there is no LSP violation.
Mar
10
comment Implementing software licensing
@RobertHarvey: licensing keys etc have their drawbacks just as well. Most of which are addressed by the software phoning home on a regular basis. Okay, a couple of days without the ability to phone home is usually allowed, but that can be arranged for any method used to check licenses.
Mar
10
answered Test cases do all the work through helper method — bad practice?
Mar
10
comment How to separate public and “mostly private” code in C#? (Friend classes, PIMPL pattern, etc.)
Out of curiosity: why is this class static? Especially as it seems to preclude deriving a descendant with the "there be dragons" methods?
Mar
10
comment Word to unambiguously represent data used at the input to a template?
For completeness (and out of curiosity): what does XSLT call the transformed result?
Mar
10
comment Benefits of Structured Logging vs basic logging
+1 Want to add that it's not only about speed and efficiency. Relevance of search results will be a lot higher when using structured logging and thus "structured queries". Without that searching for any words that occur in different contexts will give you tons of irrelevant hits.
Mar
9
comment How to match users with common interest but are different words
Do the same as StackOverflow and other StackExchange sites do with regard to tags: allow aliases and when someone uses "X" also list everything with X's aliases.
Mar
8
comment What kind of license to put a private project?
Ah yes, but those who stole it may hand it off to other people who may first assume that the thieves obtained it legally and who may, upon seeing the license, contact the original copyright holder? Having just the copyright in the code wouldn't do anything to raise alarm bells. Of course the thieves can take it out, but most thieves aren't very sophisticated and if you bury a notice in every source file...
Mar
7
comment How to represent an object with actions that can only be used in a specific situation?
@JDT, they don't mistake. They panic and just push one of them regardless. But... I get your point. Then again, I didn't say to just enforce constraints from the UI. I am dead set against that. Just like validation, the server should always validate / enforce constraints. Any UI validation/enforcing of constraints is only a UI-acceleration issue and cannot be trusted by the server. It may after all be accessed directly.
Mar
7
answered How to represent an object with actions that can only be used in a specific situation?
Mar
7
comment SQL - Design concepts - Relationships - Referential Integrity - Cascading
The basic trade off for an IsDeleted field: Having one means easy access of deleted records at the cost of burdening every single query with an extra "not IsDeleted" condition. Not having one means your "happy" cases don't have to worry about soft-deleted records (yay!) and having your "extra ordinary" cases (undelete) worry about archive tables/databases.
Mar
7
comment Reasons not to have flexible role management system
+10 for your last paragraph: business concerns always trump implementation concerns. And never assume that high development costs are prohibitive. The business may well be more than happy to pay the extra implementation cost. Developers often don't have enough information to figure out the actual cost/benefit of features. (They usually see only the costs.)
Mar
7
answered Should we factor time in for UAT fixes & deployments as part of a sprint?
Mar
7
comment Should we factor time in for UAT fixes & deployments as part of a sprint?
I like your KanBan approach especially with going down to function level before putting them "up" for development. Gave me some new ideas to try.
Feb
29
comment Web Application using only REST API
Moving all the static content to a CDN (Content Delivery Network) would decrease the number of requests significantly.
Feb
17
awarded  Guru