Reputation
10,915
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 20 40
Newest
 Nice Answer
Impact
~196k people reached

Jul
22
comment Can I remove the “above copyright notice…” section from the ISC license?
You should ask this question on the new opensource.stackexchange.com
Jul
22
comment How to write procedural code in an object oriented language?
@DavidArno When the question is "what is the correct way of writing such code in Object Oriented style", then answering with "do not use an Object Oriented style" is not an answer.
Jul
22
comment Who should write Unit Tests?
@ThomasOwens In my experience, trying to get sufficient test coverage for a large legacy codebase which wasn't designed to be properly testable by unit-tests is an exercise in futility.
Jul
22
comment How to write procedural code in an object oriented language?
I never said your answer was wrong. I upvoted it.
Jul
22
comment How to write procedural code in an object oriented language?
I was going to suggest to throw exceptions when the data is in an invalid state for the requested operation, but the problem is that this only checks for the correct order at runtime. It would be preferable to find a way to enforce the correct order at compile-time.
Jul
22
comment How to write procedural code in an object oriented language?
The way I understood the question, the requirement was to ensure that all the methods always get called in the correct order. Hiding the mistake would likely be counter-productive.
Jul
22
comment How to write procedural code in an object oriented language?
if(data.ReadyForSomething2) being false. Then DoSomething2(); never gets called.
Jul
22
comment How to write procedural code in an object oriented language?
But how do you handle the case where the data is not in the correct state?
Jul
22
comment How to write procedural code in an object oriented language?
@DavidArno What solution would you suggest instead?
Jul
22
revised How to write procedural code in an object oriented language?
added 504 characters in body
Jul
22
answered How to write procedural code in an object oriented language?
Jul
18
comment HashMap to replace Singletons?
For very small datasets, iterating an ArrayList can be faster than looking up in a HashMap. I am not sure though where the limit was. I think I read it somewhere on Stackoverflow, but I can't find the question right now.
Jul
13
comment Java 8: Good practice to pass Streams around in APIs for lazy operations?
Having interfaces which take and return streams really improves interoperability with the standard stream functionalities. It allows you to integrate calls to your interface into a stream pipeline.
Jul
13
awarded  Generalist
Jul
12
comment The Critical Functionality of an API has changed, what should I do?
@BasileStarynkevitch Why would you keep paying the hosting bills for something which doesn't generate revenue anymore?
Jul
12
revised The Critical Functionality of an API has changed, what should I do?
added 26 characters in body
Jul
12
comment The Critical Functionality of an API has changed, what should I do?
@MasonWheeler Google tends to stretch the definition of "not evil" quite a lot from time to time. But at least they usually give a warning in advance before they take down a service... usually...
Jul
12
revised The Critical Functionality of an API has changed, what should I do?
added 5 characters in body
Jul
12
revised The Critical Functionality of an API has changed, what should I do?
added 5 characters in body
Jul
12
awarded  Good Answer