3,896 reputation
634
bio website
location
age
visits member for 2 years
seen 2 hours ago

Jan
3
comment Win loss code that does not make 1-0 record better than someone like 20-3
If you want to see the quality of a player, it's about what players he beats, not about total amount of wins/losses. A 100/50 record against world class players would certainly be better then a 1000/0 record against beginners.
Jan
2
answered Where to store the private key?
Jan
2
answered Complexity in nested loops
Dec
23
comment How to design application with rollback capability
Most Databases offer rollback with transaction mechanisms. If you could store all state in a DB you could use that.
Dec
20
comment Why do programmers use `Acme` as a package, namespace or directory name
The use of ACME as fictional companyname predates roadrunner. en.wikipedia.org/wiki/Acme_Corporation
Dec
20
comment Legitimate use of the Windows “Documents” folder in programs
The register was such a system and it didn't work out so well. I don't think the appdata approach where programs store files with their own settings is that bad.
Dec
19
comment Should methods that return boolean be named after a question or an assertion?
+1 for the note about how the term "assertion" not being the right term to use here because of possible confusion.
Dec
19
comment Should methods that return boolean be named after a question or an assertion?
don't all these things you call assertions become questions when adding a questionmark? Key_Exists?
Dec
19
comment Are `break` and `continue` bad programming practices?
@Mikhail sorry, I meant having them in the "while" condition, not where. while (primary_condition && (loop_count > 1000)&& time_exect > 3600) ) {
Dec
19
comment Stacking keywords on top of each other - poor style?
I like your first example but not your second.
Dec
16
comment Are `break` and `continue` bad programming practices?
I would definately change your second example to include the loop_count and time_exect to be inside the where-clause instead of having their own break.
Dec
16
comment What is the name of the following (anti) pattern? What are its advantages and disadvantages?
The antipattern here is to use the car-analogy antipattern, closely related to the animal-analogy antipattern. Most software doesn't have wheels or legs.
Dec
13
comment Is double password protection safe for admin authentication?
Double authentication can be good but not if always standard. I need a login and password to login to my bank account, but whenever I want to do a financial transaction I need an aditional unique authnetication number.
Dec
13
answered How to alter the code at runtime in an interpreter?
Dec
12
comment Why doesn't Java String have static string manipulation methods?
Static methods are more like functions. And for the use you want they shouldn't even be part of the string class rather be part of some utility class. Just like math class functions.
Dec
12
answered Why doesn't Java String have static string manipulation methods?
Dec
10
comment Why not free memory as soon as its reference counter hits zero
@Phoshi : The majority of computers sold ARE memory contrained: smartphone sales have already in 2011 overtaken traditional computer sales and tablets are projected to overtake traditional computer sales end of this year.
Dec
10
comment Why not free memory as soon as its reference counter hits zero
Answer could be very simple: "Yet they don't immediately free it after the reference counter hits zero" : there is no reference counter to hit 0.
Dec
6
comment Is a senior programmers advice about always using books a good idea?
One thing to remember is that some people just communicate different. Did he really call you stupid or did he call (or mean to call) the idea stupid. Having stupid ideas now and then doesn't make you stupid as a person. Remember, you wouldn't get these projects if he didn't think you couldn't handle them. For me, my chef commends me on my "stupid" ideas because his reasoning is: I really don't like thos 9 out of 10 stupid suggestions you come up with, but please keep em coming because that 10th idea made it worth dismissing the other 9.
Dec
6
comment Should I use one database per application or share a single database amongst multiple applications
@Falcon I've worked in government and have run into the emberassing case where peoples mail was sent to wrong adresses because of different software getting the same data from different sources.