Reputation
418
Top tag
Next privilege 500 Rep.
Access review queues
Badges
4 8
Newest
 Yearling
Impact
~7k people reached

  • 0 posts edited
  • 0 helpful flags
  • 189 votes cast
Jan
6
revised Should I log errors on exception throwing constructors?
edited body
Jan
5
answered Should I log errors on exception throwing constructors?
Dec
1
comment Putting a password in a REST API call
By the way: Please be aware that many users re-use passwords for many different services. So if you don't protect your users passwords properly, and someone manages to retrieve a load of passwords of your users, he can do big harm to your users, even if your service isn't that sensitive.
Nov
27
awarded  Yearling
Oct
27
comment Dependency Injection: Field Injection vs Constructor Injection?
If you use, for instance, Mockito mockito.org , you don't need a DI/IoC framework even when using field injection, and can run test in parallel and so forth.
Aug
10
comment How to make a large codebase easier to understand for new programmers
DRY as a guideline for the documentation is a very good point! That automatically sets the focus right and forbids the famously obnoxious "// increment x by 1" comments.
Apr
14
comment Slicing up the Development Stack - diagonally?
If you don't succeed in convincing them of a vertical split, you might want to have Team A commit to handle Team B's requests with higher priority as their own requests. This could prevent blocking and bad blood, and seems a fair price to pay.
Jan
19
comment Is there some sort of systematic strategy for designing and implementing GUIs?
Can't you create the dynamic form with all possible buttons with a GUI editor, and just make things you don't need dynamically invisible? Sounds like much less work.
Dec
15
revised If immutable objects are good, why do people keep creating mutable objects?
added 4 characters in body
Dec
9
comment If immutable objects are good, why do people keep creating mutable objects?
@gnat Which of the previous answers makes the point that most mainstream languages do not decently support immutability? I think that point simply has not been made (I checked), but this is IMHO a quite important obstacle.
Dec
9
revised If immutable objects are good, why do people keep creating mutable objects?
added 132 characters in body
Dec
9
answered If immutable objects are good, why do people keep creating mutable objects?
Jul
1
revised Is template “metaprogramming” in Java a good idea?
added 60 characters in body
Jul
1
answered Is template “metaprogramming” in Java a good idea?
Jul
1
comment Which hashing algorithm is best for uniqueness and speed?
If you still choose this way of hashing for some reason, you could at least use a better prime like 92821 as a multiplicator. That reduces collisions much. stackoverflow.com/a/2816747/21499
May
25
awarded  Notable Question
Mar
5
comment What should I do when I've already waited too long between commits?
In my experience it is troublesome and fragile to rely on the version control comments to tell a story why the code is there (i.e. reasons 1 and 2). If you are using SVN with a branch, the commit history is lost on merge, anyway (you'll be better off with more modern stuff like git). So those are IMHO best served with comments.
Feb
11
answered Good idea to put bug numbers in a comment in the beginning of the source file?
Dec
2
comment Static factory vs factory as a singleton
How would you unittest classes using Foo, without depending on the implementation of Foo? If you inject a factory in such a class Baz, you could inject a mock for the factory that returns mock objects for Foo or IFoo. But what to do using this pattern?
Jul
16
comment When should we stop work and make tool?
Nice one! :-) But the time saved might also be on other tasks - either since the tool can be used for more than one purpose, or because of the knowledge you got when writing the tool.