News for hackers. Stuff that matters.
Re:Programming: Attitude Trumps Intelligence by calibraxis on Thursday May 27, 2010 @08:48PM (#1385359)
The author's work on fundamentally improving programming looks interesting: http://subtextual.org/
Re:Programming: Attitude Trumps Intelligence by anthonyb on Friday May 28, 2010 @10:30AM (#1386495)
Hmm, except that his first example is weird. He tries to rewrite all of his logic, instead of just putting an extra case at the top:

    if (b & c) {
        x = 3;
    elif (a) {
        ...
which according to his methodology is an "overlap", and thus bad - but seems a lot clearer to me than his program's simplification:

    if (a & (!b | !c)) {
        x = 1;
    } else if (!a & ((b & !c)|(!b & c))) {
        x = 2;
    } etc...
Ditto for the fibonacci stuff and his later examples. And they're pretty straightforward. For larger functions I can see it spiraling out of control.