2,870 reputation
1330
bio website
location Argentina
age 38
visits member for 4 years, 3 months
seen 1 hour ago

Software developer and science fiction fan.


May
31
comment Making Simple IF Statements Shorter
Aaargh! A boolean expression is not "clever"; it's programming 101! Here, an even clearer longer form for you: if (cond == true) { return true == true; } else if (cond == false) { return true == false; } else { return FILE_NOT_FOUND; }. It's longer, so it must be clearer!
May
31
comment Making Simple IF Statements Shorter
People confused by boolean expressions should be educated. If after being taught about them they are still confused, they have no right to be programmers. But no, the needlessly verbose if is never the right answer. (Likewise, you shouldn't stop writing for each in Java simply because some inexperienced programmer is still unfamiliar with them).
May
31
comment Making Simple IF Statements Shorter
+1000 to this answer (if I could). It indeed indicates lack of understanding of boolean expressions. Also, the longer form is never "clearer". No amount of {, } or ; will make a simple boolean expression "clearer". Everyone: please stop equating clarity with needless verbosity.
May
30
comment Does Turing-complete implies possibility of malware?
@Mathematician82 But here on stackexchange anyone can edit text anyway. Seriously, do your work. Show some effort.
May
30
comment Phonetic programming language?
possible duplicate of Is programming language that is non-visual … possible?
May
29
comment I don't understand how TDD helps me get a good design if I need a design to start testing it
@Giorgo, RobertHarvey: +1000 to RobertHarvey from me as well. Unfortunately, that misconception is common enough that some "expert" TDD/Agile practitioners believe it to be true. Like for example, they pretend you can "evolve" a sudoku solver out of TDD, without domain knowledge or analysis of any kind. I wonder if Ron Jeffries ever published a follow-up on the limitations of TDD or explained why he suddenly stopped his experiment without any conclusions or lessons learned.
May
29
comment Do I infringe copyright if I turn a book into a program?
Note your code isn't "republishing" the copyrighted book, which would be illegal. You are merely using the book's results in order to model some physics formula in your code. If this weren't possible, you'd have to check every copyrighted book you read and every piece of code you wrote to make sure no ideas from any book ever inspired any code you wrote.
May
29
comment Do I infringe copyright if I turn a book into a program?
I don't think you can copyright physic formulas. If it's a useful formula that accurately describes some portion of the physical universe, and someone accuses it of "stealing it", just say you have physicist friends who rediscovered the formula on their own. However, it'd be common courtesy to just cite the text you got the idea from. If they didn't want someone else "using their concepts and formulas", they wouldn't have published the article in the first place.
May
28
comment Does tweeting 9 to 5 hurt job applicants?
"Twitter can be a useful resource to programmers in particular"? That's news to me. Google, StackOverflow, Wikipedia -- sure. But Twitter?
May
26
comment What did Rich Hickey mean when he said, “All that specificity [of interfaces/classes/types] kills your reuse!”
@AmyBlankenship I found the "Imperial Clothing Crisis" linked above to be insightful. The author considers "reuse" a false idol (something which hasn't been proven useful in practice, and also most people don't even understand it even though they use the word). He also doesn't consider libraries "reuse"; you use a library, you don't reuse it. He also considers designing something for reuse "a double-edged sword"; something that people usually consider a win-win situation but which really isn't: when you design something for reuse, it's always a compromise (e.g. you may lose in simplicity)
May
26
revised What did Rich Hickey mean when he said, “All that specificity [of interfaces/classes/types] kills your reuse!”
minor edit
May
26
revised What did Rich Hickey mean when he said, “All that specificity [of interfaces/classes/types] kills your reuse!”
added links to wikipedia, structural vs nominative typing
May
25
comment What did Rich Hickey mean when he said, “All that specificity [of interfaces/classes/types] kills your reuse!”
@MathewFoscarini Yeah, I don't necessarily agree with it, it's just my interpretation of what I think Hickey was saying :) I like types and static typing; I'm just starting to dislike Java. And my dislike is unrelated to interfaces but to the mess that is the typical Java project.
May
25
comment What did Rich Hickey mean when he said, “All that specificity [of interfaces/classes/types] kills your reuse!”
BTW, Jack Diederich's talk "Stop Writing Classes" seems unrelated to this topic, and is more about YAGNI and "don't write code until you need it, and then only write simple code".
May
25
answered What did Rich Hickey mean when he said, “All that specificity [of interfaces/classes/types] kills your reuse!”
May
25
comment What did Rich Hickey mean when he said, “All that specificity [of interfaces/classes/types] kills your reuse!”
Thanks for the links! I didn't find Jack Diederich's talk particularly illuminating (watch how he fails to answer the audience's genuine questions convincingly.. "uh, yeah, maybe in that case...". I did like he seems to be arguing for Functional Programming without even noticing it ;) ), but the "Imperial Clothing Crisis" is very good and insightful.
May
25
revised Help me understand how to index a pixel in an image
c++ code formatting
May
25
comment Languages & Their Licensing?
Are you planning to modify the JDK (i.e. make a commercial product that is an extension or modification of the JDK), or are you planning to sell something built with the JDK (but merely using it as a tool to build your product)? The implications are different!
May
25
comment Cold, neutral attitude to programming languages - sign of a pro developer or not
@JeroenDeDauw But if you talk to craftsmen, artists and engineers, you'll find out they do have their favorite pencils, brushes, paints, hammers and screwdrivers, and they care about them a great deal. I've never met an artist who wasn't quasi-religiously attached to certain brands of pencils, brushes or paints :) (Or digitizing tablets, these days :P )
May
25
suggested approved edit on Help me understand how to index a pixel in an image