Reputation
1,078
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 17
Newest
 Nice Answer
Impact
~33k people reached

Apr
22
awarded  Nice Answer
Apr
6
answered Is it ok to have a class that only has boolean properties?
Apr
6
comment Easily accessible setup files for installation
See also: programmers.stackexchange.com/questions/187652/…
Mar
4
comment Is returning a json object instead an array via REST good or bad style?
It depends on who consumes the api and how - if it's an OO language (say java), the first one will require a more complex object model whereas the second will be straightforward to parse into objects.
Feb
26
comment How to find the closest vector to a given vector?
stackoverflow.com/questions/3740657/…
Feb
21
comment Should I use import java.util.* for bringing in just one class?
stackoverflow.com/questions/147454/…
Feb
16
awarded  Yearling
Jan
17
comment How to deal with Classes having the same name (different packages)
If it's occasional it probably does not matter - if it is a recurring pattern I would probably name the classes more precisely to prevent it from becoming a mess.
Nov
27
comment Using BSD licensed source code in a product under a new license and a hypothetical scenario
It is generally not recommended to cross post questions across sites. You could flag your question (flag link below question), select "in need of moderator intervention" and ask if your question can be migrated. The fact that is has a bounty may delay that migration... Or you could ask on meta what the right course of action is.
Nov
27
comment Using BSD licensed source code in a product under a new license and a hypothetical scenario
You could also have asked here: opensource.stackexchange.com
Nov
19
comment Do I need to use an interface when only one class will ever implement it?
@Jules It depends on your mocking framework - with jmockit for example, you can just write new Mockup<YourClass>() {} and the whole class, including its constructors, are mocked, whether it's an interface, abstract class or concrete class. You can also "override" the constructor behaviour if you wish to do so. I suppose there are equivalent ways in Mockito or Powermock.
Nov
19
revised When NOT to apply Dependency Inversion?
removed duplicate item, improved formatting
Nov
19
suggested approved edit on When NOT to apply Dependency Inversion?
Nov
19
comment Do I need to use an interface when only one class will ever implement it?
@Jules You can mock a concrete class including its constructor in Java.
Aug
26
awarded  Custodian
Aug
26
reviewed Edit Why did Java make package access default?
Aug
26
revised Why did Java make package access default?
Correcting broken link with the Wayback Machine (unfortunately the link points to a zip file and not a PDF directly)
Jul
1
answered Java: using final keyword only on method parameters that expect immutable objects?
Jun
27
comment How to use Guice for an effective API Design?
You typically create the injector once, for example in your main, to setup the modules you want and then just use @Inject where you need...
Jun
14
comment Best way to handle blank dates
You should probably not use Optional<XX> as a field - it's really meant to be used as a return type from a method. So in this case I would have a private LocalDate dateOfBirth field that may be null - but getAge or getDateOfBirth could return an OptionalInt or Optional<LocalDate> respectively.