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

Software developer and science fiction fan.


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!
May
20
comment Why is C++ preferred over C for commercial applications?
@Klaim Wait, I'm trolling because I said C++ was not adopted on technical merit alone? Wow. I mean, WOW. Someone is sensitive...
May
20
comment Why is C++ preferred over C for commercial applications?
@Klaim No, I'm giving Ken Thompson's opinion of what C++ (not C++11!) was at the time Stroustrup was lobbying for its adoption. Note I quoted Ken Thompson saying C++ "wasn't cleanly designed" because "Stroustrup wouldn't say 'no' to anyone". How is that my opinion? ;) That C++ wasn't adopted merely on technical merit is supported by the above quotes.
May
19
comment Why is C++ preferred over C for commercial applications?
@Klaim, Blrfl - sure. All the marketing in the world won't make good engineers use a language that just plain doesn't work. So it wasn't the only factor. But the anecdotes are still there: that Stroustrup pushed hard for C++ adoption (that's a political/marketing aspect, not a technical one) and that he couldn't say "no", making C++ a hodgepodge language (that's a technical aspect, in the bad sense). And these aren't bloggers badmouthing Stroutstrup, but colleagues who are arguably better programmers than he ever was. Note I didn't include Linus' flamebait here :) So the OP was right.
May
19
revised Why is C++ preferred over C for commercial applications?
Removed assertions of "ugliness", while keeping the author's intent
May
19
comment Why is C++ preferred over C for commercial applications?
@RobertHarvey Agreed. Please see my proposed edit, which removes some loaded words.
May
19
suggested approved edit on Why is C++ preferred over C for commercial applications?