6,126 reputation
1333
bio website
location
age
visits member for 3 years, 1 month
seen 9 hours ago

9h
comment How another popular language would avoid having to use factory pattern while managing similar complexity as in Java/JEE?
@Philipp there's no fixed "do this" alternative. Use common sense, be pragmatic, use what's appropriate for the situation. Of course teaching that is far harder than teaching some locked down "methodology" with books written about it (probably by the teachers themselves) the sale of which provides more income still.
11h
awarded  Good Answer
1d
awarded  Nice Answer
1d
answered How another popular language would avoid having to use factory pattern while managing similar complexity as in Java/JEE?
2d
comment Is NoSQL a better choice when working with OOP?
15 years ago people said the OODBMS would replace the RDBMS within a few years because an RDBMS can't work within an object oriented system. Hasn't happened yet. NoSQL will go the same way. Both have their applications, neither is going to be the be all and end all of data storage.
2d
comment Is it common for the founder of a web app to lack technical expertise to scale it?
@Anh at some point the founder becomes the outside face of the company, being more a public spokesman, marketing figure, and visionary rather than handling specific detail topics. IOW he becomes a CEO :)
Apr
12
answered How to handle unexpected schema changes to production database
Apr
11
comment According to software engineering which method are too long?
@M.F05051985 you're assuming that there's a single fixed answer "x lines are too much, x-1 is good" even possible by approximation. I don't make that assumption. Same with code coverage. If 99% of your code is autogenerated, for example, you don't have to touch 99% of your code as long as the generation tools are trusted to produce correct results. If your organisation decides that single line getters and setters need no unit tests, they need not be covered (though they likely will be covered implicitly through other calls).
Apr
11
comment According to software engineering which method are too long?
@M.F05051985 impossible to tell, and different tools use different methods to calculate the number. E.g. one may count comment lines as uncovered (I've seen this), another lines with only white space as uncovered (I've seen that too), a third ignores all of those, yet another I've encountered counts lines with field definitions as uncovered (when there's no way to test those), etc. etc.
Apr
11
comment According to software engineering which method are too long?
@M.F05051985 it can be a problem. Worst case of it I've encountered is a loop doing an integer addition that was being iterated millions of times. There were dozens such loops in the application. Some overzealous fool had made a function (no kidding) int add(int a, int b){int c=a+b; return c;} and substituted calls to that for each addition in those loops. And no, you can't always cut something up in 5-10 line chunks and not lose readability. Far from it, quite often you lose readability.
Apr
11
answered According to software engineering which method are too long?
Apr
10
awarded  Quorum
Apr
10
comment Does Java development typically involve more subclassing than C#/.NET?
yes, in my experience having used both (including on mixed projects where the same people use both languages) people tend to prefer to use a larger number of smaller classes when coding Java, a smaller number of larger classes (trending towards god classes) when using C#. Having deliberately prototyping the same thing using the same style in both, you end up with a similar number of classes (using partial classes, you'd likely end up with more code files even when using C#).
Apr
10
answered Do commercial statistical calculators calculate with a high degree of arbitrary precision or just floating point precision?
Apr
10
comment Kibibtye or Kilobyte to represent 1024 bytes
@Javier not in computing it wasn't :) Computing mathematics has always been binary after all. It's a relatively recent phenomenon introduced by harddisk manufacterers to market products as billions of bytes and call that gigabytes in order to to get a seemingly higher number in their catalogues.
Apr
10
comment Are certifications worth for starting programmers?
It's not just mostly opinion based, but highly personal (for both the programmer and the recruiter) AND highly regional (in some places people determine your worth based almost exclusively on the number of diplomas on your wall, in other places they look at what you've done with that knowledge).
Apr
10
answered Write Java program that gets HTML source for two or more Web pages, parses sources to find price info, prints prices that are found
Apr
9
comment Why are there so many Java applications that are development-related, and so few Desktop applications?
Been using Java for 15 years, never once written a "desktop developer tool". Written a lot of things that you're never going to find on some open source repository because they're not open source.
Apr
9
comment What is better for opencv? C++ or Java?
everything has boundaries, with everything there's the potential of support ceasing at some point. So the best thing to do is create something yourself, from scratch, including all the hardware, and buy the factories making the hardware, the factories making the equipment used in those factories, the mines supplying the raw materials, the powerstations supplying the power, etc. etc. etc.. How else can you make sure you'll never find yourself in a situation where you can't get some spare part because its supplier has stopped carrying it?
Apr
7
comment Linked list clarification
you say Java passes values. THAT is wrong. Java passes a reference to an Object instance by value, NOT the Object instance itself as you're claiming.