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

Software developer and science fiction fan.


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
May
25
answered Help me understand how to index a pixel in an image
May
24
comment What did Rich Hickey mean when he said, “All that specificity [of interfaces/classes/types] kills your reuse!”
(On the other hand, I do agree that in Java-land, the explosion of classes, interfaces and frameworks is a nightmare. The simplest "enterprisey" solution in Java is a mess of code. So I do take a valuable lesson from this question & answer, without necessarily agreeing with the dynamic typing stuff)
May
24
comment What did Rich Hickey mean when he said, “All that specificity [of interfaces/classes/types] kills your reuse!”
@gnat "The wrong values simply do not get sent" is what I guess dynamic typing is all about. No surprise Hickey (and the Python guy) are dynamic-type-language guys... I much prefer some help from the compiler telling me "no, you cannot double that, it doesn't make sense".
May
23
comment What did Rich Hickey mean when he said, “All that specificity [of interfaces/classes/types] kills your reuse!”
Haven't watched/read the stuff (I've added "Stop Writing Classes" to my to-watch list :) ), but maybe they are arguing from a dynamic vs static typing angle? ...again?
May
23
awarded  Necromancer
May
23
comment Is there something which can write the function for me given the pattern?
@RobertHarvey Pretty sure there exist algorithms for automatic pattern inference (with constraints and limitations, of course), which is what this question seems to be about. A programmer can infer a rule, but that doesn't rule out the help of automated systems presenting likely candidates.
May
23
comment Is there something which can write the function for me given the pattern?
@psr That fulfills the letter but not the spirit of the question. I bet the trivial answer is not what the OP was asking for...
May
23
comment Is there something which can write the function for me given the pattern?
Downvoters: if the answer is "no, it's not possible", that's no reason to downvote. If the question needs additional constraints or info, please ask for it before downvoting. Don't just downvote because you, after 2 seconds of consideration, do not understand the question.
May
23
comment Is there something which can write the function for me given the pattern?
This solves this particular example, but the question was about a generalized solution.
May
23
comment Is there something which can write the function for me given the pattern?
This is an interesting question! Maybe there is some way to automatically infer a pattern based on a corpus of inputs and outputs. (Like others mentioned, additional constraints or domain knowledge is needed to narrow down valid functions).
May
22
comment Is Software Testing Really Needed?
@LorenPechtel I agree software testing alone wouldn't have solved the problem. But the causes for the problem were compound; there was not a single cause. There certainly were multiple serious software bugs, which would have been caught by testing. And I do think system integration tests would have been pretty damn useful.
May
21
comment Is Software Testing Really Needed?
@LorenPechtel Disagreed. While the failure was a mixture of multiple causes, at least parts of it could have been eliminated with testing. Some were clearly software defects, like this: "The software set a flag variable by incrementing it, rather than by setting it to a fixed non-zero value. Occasionally an arithmetic overflow occurred, causing the flag to return to zero and the software to bypass safety checks."
May
20
comment Why is C++ preferred over C for commercial applications?
@Klaim I disagree. The OP asked if C++ was popular on technical merit or due to luck or marketing. This answer stated marketing had nothing to do with it. I quoted well-known and respected colleagues of Stroustrup who claimed C++ wasn't a particularly good language at the time, but that Stroustrup's strong lobbying and willingness to include everything and the kitchen sink helped. That's marketing 101. Note I'm not talking about C++11 current merits, which is not what this question was about!