Reputation
907
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 10
Newest
 Yearling
Impact
~46k people reached

  • 0 posts edited
  • 0 helpful flags
  • 48 votes cast
Apr
26
comment Are new empty Java marker interfaces created to satisfy an existing method contract a code smell?
If you can modify both classes A and B, why don't you extract a real interface? You have to, to replace the one with the other. I think it would be easier to give an answer if you were more concrete about A and B.
Apr
25
comment Does CI servers allow maven to generate content outside target directory?
I don't think Jenkins is able to prevent that. In the end the process and thus maven runs with Jenkins' access rights.
Apr
22
comment How to best design a job queue with constraints?
What's the reason behind the restriction according the topic? Maybe you can change that.
Apr
22
comment Are there any reasons not to ever use classes or ids anymore?
Another pro for ids is automated testability - it may clutter your HTML a bit, but in some situations it's much easier and robust.
Apr
21
answered What Style is Better (Instance Variable vs. Return Value) in Java
Apr
19
comment HTTP Status Code for “Still Processing”
Isn't 1xx codes made exactly for that purpose?
Apr
15
answered Should we embed special cases into business logic/algorithm or leave it separate?
Nov
7
answered Is it bad practice to throw multiple custom exceptions in Java?
Oct
2
awarded  Yearling
Aug
1
awarded  Nice Answer
May
23
revised Is Visitor Pattern valid in this scenario?
edited body
May
22
comment Is Visitor Pattern valid in this scenario?
What article are you referring with that you disagree? However, interesting point of view on the domain model. Probably you can see it like that, though, people usually avoid mixing services into entities, because it will create a tight coupling very soon.
May
22
answered Is Visitor Pattern valid in this scenario?
Feb
23
comment My value checker function needs to return both a boolean and a message
'[..] check that the value is of the right format.' Shouldn't the name be FormatChecker, then?
Feb
9
awarded  Autobiographer
Dec
28
comment TDD with repository pattern
@Thaven: TDD says, start implementing a feature by writing a unit-test. A new feature is foremost about business functionality. You also don't test if variable assignment works, and usually it is useless to test CRUD operations - at all (and that includes TDD).
Dec
28
comment Are all magic numbers created the same?
+1 for @SamDufel's "it's also about reading the calculation". I usually tend to workaround such well known magic numbers by creating a method for it, e.g. {{getSizeAsHumanReadable()}}. An automatic quality-check will still be upset about it, but it puts the numbers in a small context, where it is easier for a reader to narrow down the meaning. And people who know what 1024 could mean are faster in checking if the calculation is correct. Finding a good name for that number is so hard, because someone may change the value to e.g. 1000, without changing the name...
Oct
2
awarded  Yearling
Sep
1
answered How 'child proof' should i write code as a solo programmer?
Jul
25
comment How much data should exceptions hold?
There are some kinds of errors/exceptions I can react on by following an alternate route. In my example the caller may adjust the timeout by 10% and tries again. Or it tries another server instance. Or it wants to write to a database, that a specific server is not available.