Reputation
7,250
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 16 39
Newest
 Yearling
Impact
~339k people reached

Aug
19
comment Is it okay to return the “wrong” HTTP status code in order to show a more user-friendly error page?
yes, it's paranoid. Comes from working at places like banks, stock exchanges, and government agencies for nearly 20 years.
Aug
18
comment Is it okay to return the “wrong” HTTP status code in order to show a more user-friendly error page?
a 404 or 403 are also extremely useful tools for the person running automated intrusion probes, and for that reason you may not want to issue them. Issue your own pages instead, with a 200 series (or a 300 series at worst) code. The smarter intruder might notice and write his tools to detect them, but most are script kiddies who don't know how to modify their tools they downloaded from some p2p network.
Aug
18
comment Is there a need to keep tests for simple (self-contained) functions?
@Deduplicator we know that, but a lot of especially freshly university trained junior programmers are extremely zealous about blindly following mantras. And "magic numbers are evil" is one of those. Another is "anything used more than once must be refactored into a method" leading in extreme cases to a plethora of methods containing but a single statement (and then they wonder why performance suddenly dropped, they never learned about callstacks).
Aug
18
reviewed Leave Closed How to promote code review as an employee?
Aug
17
comment Purpose of encrypted product ID/key in shopping carts
and what makes you assume that product IDs are supposed to be numeric?
Aug
11
comment Why not just make non-parameterized queries return an error?
and how would the RDBMS detect whether to do this? It would overnight make it impossible to access the RDBMS using an interactive SQL prompt... You'd no longer be able to enter DDL or DML commands using any tool at all.
Aug
7
awarded  Nice Answer
Aug
7
answered How can I manage trash users?
Aug
7
comment How can I manage trash users?
"a court/law really, really urgently tell them to," and even then they often don't, just make the data inaccessible to the end users while retaining it for their own use...
Aug
6
reviewed No Action Needed What is the actual value of a consistent code style
Aug
6
reviewed Leave Closed Should updating to a newer library be done incrementally or in one big leap?
Aug
6
reviewed Leave Closed Why do programmers use `Acme` as a package, namespace or directory name
Aug
6
reviewed Leave Closed What can / should be done with regular expressions?
Aug
4
comment Is it ever overkill creating classes/objects?
int main() { cout << "Hello World!; } I'd not create a class for that. But anything much more complex, it's probably a good idea :)
Aug
3
reviewed Reviewed Is it bad to store data in JSON form or should I use mySQL?
Aug
3
comment Is it bad to store data in JSON form or should I use mySQL?
don't just give your opinion, it's useless without a reason why.
Aug
3
reviewed Reject Application layer vs domain layer?
Aug
3
comment How to make a large codebase easier to understand for new programmers
@RobertHarvey of course, you should have the initial business requirements laid out and a rough architecture. But the way DW describes it it reads like he wants an old fashioned architecture document laying out everything down to method and variable names.
Aug
2
comment How to make a large codebase easier to understand for new programmers
that's nice to understand what a specific source file does, but it doesn't tell you anything about how all the different source files fit and work together. It's also imperative that it gets properly maintained, changed with the source file. And in my experience THAT is where such comments fall, they tend to not be properly maintained because there's "no time for it", things get changed rapidly to meet changing requirements or bugfixes that need to go out NOW and all that happens is a note somewhere "TODO update documentation" which then never gets done.
Aug
2
comment How to make a large codebase easier to understand for new programmers
ah, the old waterfall method of writing a single, all encompassing, immutable, Truth before coding even starts and make it impossible to deviate in the implementation from said Truth.