Reputation
10,574
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 20 38
Newest
 Generalist
Impact
~189k people reached

Jul
24
comment Help me design this use case
@MangatRaiModi What's a "column" and a "table"? Such things do not exist in MongoDB. Or do you mean field and collection? Like with every database system, each additional index reduces performance for inserts and for any updates which affect the indexed fields. Also, indexes require additional storage space. You might consider to turn those 100 fields into an array of objects where the field-name is the value of a key. Or not - it depends on how you query your data and how many datasets you expect per document.
Jul
23
revised Help me design this use case
deleted 1 character in body
Jul
23
answered Help me design this use case
Jul
23
comment Help me design this use case
1 Billion Users - seriously?
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