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

Aug
31
comment Why do we need an instance of the Scanner Class to get an Input on Java?
String orgName = (new BufferedReader(new InputStreamReader(System.in))).readLine(); That's horribly convoluted compared to using a Scanner and also creates new instances of not one but two objects just to discard them right away.
Aug
28
comment How to *detect* if open source software is used in a commercial product?
This question might be more successful on opensource.stackexchange.com - but please take the comments you get serious and improve your question accordingly. The GPL does not forbid commercial use. It makes the pay-by-copy business model infeasible, but there are many other business models for software which work well or even better with a license like the GPL.
Aug
1
comment Expert advice needed for a NoSql Database
Please do not crosspost!
Jul
31
comment How is deploying a webpage on server for a group of people different from deployement on local machine?
Only a moderator can do that move. But considering that there are no answers yet, you could just delete the question and copy&paste it on another stackexchange site.
Jul
31
comment How is deploying a webpage on server for a group of people different from deployement on local machine?
This sounds more like a question for serverfault.com to me. Maybe there are also security aspects to consider, which would be a case for security.stackexchange.com.
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
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
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
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
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...