Reputation
714
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 9
Newest
 Yearling
Impact
~42k people reached

  • 0 posts edited
  • 0 helpful flags
  • 95 votes cast
Feb
2
comment What is it called when you test a microservice by mocking the dependencies?
Could be a Unittest if you consider the microservice to be a single unit including its own database. Could be an integration test if you consider integration of microservice and its database to be worth testing.
Nov
12
comment Maintain hundreds of customized branches over master branch
Which question of the joel test would have told you that the company is abusing branches?
Nov
6
comment Alternative to coding directly on server?
@dirkk There is nothing wrong with svn. Why shouldn't you use a tool if it fits for the job? I think that this answer does not just present an opinion on git, but reality as I have seen this too.
Oct
14
comment how to refactor many singletons
Most often when I see a singleton being implemented there isn't a need for having exactly one instance. For example it doesn't matter how many DAOs I have as long as they all do participate in the same transaction. That seems to be what many people don't realize when they implement - needing one instance is different than having at most one instance.
Sep
8
comment C++: Should class own or observe its dependencies?
@el.pescado There is also the same problem in Java, memory isn't the only resource. There is also files and connections for example. The usual way to solve this in Java is to have a container that manages the lifecycle of all its contained objects. Therefore you don't have to worry about it in the objects contained in a DI container. This could also work for c++ applications if there is a way for the DI container to know when to switch to which lifecycle phase.
Sep
2
awarded  Yearling
Aug
26
comment How do you approach transitive dependency conflicts that are only known at run-time?
That sounds a bit like osgi.
Apr
13
comment How do you unit-test code using graphs?
What you describe sounds more like integration testing and not like unit testing. Unit tests would make sure that a method is able to find the circles in a graph. Other unit tests would make sure that a specific circle of a specific graph is handled by the class under test.
Mar
20
comment What is the name of a function that takes no argument and returns nothing?
I think that the javadoc for Runnable is outdated at this point, because a Runnable is also used by other classes than Thread(Executor for example).
Feb
7
awarded  Nice Answer
Jan
30
comment How does one keep argument counts low and still keep third party dependencies separate?
related: What is an Anti-Corruption layer, and how is it used?
Dec
4
comment Securing sensitive data from developers
@ClintonBosch Then you haven't clearly separated the roles of admins and developers. Then also one more question you should ask yourself is: how do we make sure that the software that is released also gets actually deployed? You would need to sign on release and only allow deployment of signed packages on production. Also again automation is your friend. Migrations shouldn't require any manual steps.
Dec
4
answered Securing sensitive data from developers
Nov
26
comment Should I accept empty collections in my methods that iterate over them?
Are you sure your assumption "if somebody is calling this method, then they intend to pass data in" is correct? Maybe they are just passing what they got at hand to work with the result.
Oct
8
comment In domain driven design, how do I convert a database table with a primary key into a Value Object?
Making an email address a useable value object can be very difficult, because testing email addresses for equality is not that easy and probably testing postal addresses isn't either.
Sep
2
awarded  Yearling
Aug
15
comment How to implement a no-login authentication system
Thanks for letting me know this. Looks really nice.
Jun
30
answered Is it good practice to declare and set properties in abstract classes?
Nov
18
comment What is the benefit of switching on Strings in Java 7?
But then a Map in combination with the command pattern would even yield more readability with the same complexity because you have the extra type of the command
Nov
13
awarded  Necromancer