Reputation
7,038
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 15 39
Newest
 Nice Answer
Impact
~314k people reached

Aug
28
comment How can you build an effective team in a hot desk workplace
@RobertHarvey "hot desk" is another word for "flex work", one of those office environments where everyone is given a cellphone, a laptop, and a document bag, and there are no fixed project offices or assigned desks anywhere. Workable for people who don't need frequent face to face contact with coworkers, useless for people who do, yet organisations implementing it rarely consider that project groups have a requirement for a fixed space.
Aug
28
comment How can you build an effective team in a hot desk workplace
escalate the need for a dedicated room for the team to people who can overrule the crazy "flexible office" policy.
Aug
27
comment Is Java package level scope useful?
I never do it with methods, but it's a nice feature to use for injected dependencies. For example when testing EJBs, injected EntityManagers can be mocked by setting a package level EM with a Mock object where it'd at runtime be injected by the application server.
Aug
26
comment Using private vs company devices for development at work
"Your employer is generally expected to provide the resources you need for you to do your job. That help enables their claim to own the work that you produce. " Except ever more companies have clauses in their contracts stating that the employee is required to have certain items like a cellphone and a laptop. The company may reimburse the employee for his use of those for work purposes, but often that's assumed to be part of the salary.
Aug
20
comment Is it ok if a method returns a new instance of the class it's in?
@GilbertLeBlanc in Java clone() is defined as a deep copy. Maybe it's the same in C#?
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
comment An anti-piracy technique that locks software to a specific computer?
But you didn't reword the question itself. Sneaky...
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
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
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
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
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.
Jul
29
comment How to promote code review as an employee?
@user1273587 if you don't have a baseline to which to review, each review session will become a "I prefer it like this", "but I like this better" fight between hotheaded people, each with their own set in stone preferences. Say you like CamelCase, the other guy likes to_use_undescores, or even lpfsHungariannotation...
Jul
29
comment Is there any situation when there's no alternative to instanceof?
instanceof should not be avoided, it should rather be used wisely, iow only where appropriate. Just like everything else.
Jul
29
comment How do I convince my team that a requirements specification is unnecessary if we adopt user-stories?
and do write complete words and sentences...