Slashdot Mirror


Old-School Coding Techniques You May Not Miss

CWmike writes "Despite its complexity, the software development process has gotten better over the years. 'Mature' programmers remember manual intervention and hand-tuning. Today's dev tools automatically perform complex functions that once had to be written explicitly. And most developers are glad of it. Yet, young whippersnappers may not even be aware that we old fogies had to do these things manually. Esther Schindler asked several longtime developers for their top old-school programming headaches and added many of her own to boot. Working with punch cards? Hungarian notation?"

12 of 731 comments (clear)

  1. Universal timeless programmer problem by MacColossus · · Score: 4, Funny

    Documentation!

  2. Re:Dirty old Fortran by techno-vampire · · Score: 3, Funny
    They used to say that real men programmed in Fortran (or should I say FORTRAN).

    Years ago I programmed with a true genius. His language of choice was PL/1, but sometimes he had to use FORTRAN to fit in with what other people were doing. Any fool could write FORTRAN code in any language they wanted, but he was the only man I ever saw write PL/1 in FORTRAN.

    --
    Good, inexpensive web hosting
  3. Old school coding problems... by greenguy · · Score: 2, Funny

    1. Writing on a slate. Man, did that compile slow!
    2. When you heard "stack," it meant firewood.
    3. The error message was a ruler across the knuckles.
    4. Memory overloads. My own memory, I mean.
    5. If you wanted to change your resolution, you had to wait until New Years.
    6. Try coding when you're drinking the original mountain dew.
    7. The rantings of code guru SFBM, the inventor of open Morse code.

    --
    What if I do the same thing, and I do get different results?
  4. Re:Hungarian Notation by Mad+Merlin · · Score: 3, Funny

    I don't get what the big deal is with Hungarian Notation. Why do people consider it a bad thing?

    The proper name is Hungarian Line Noise, which should answer your question.

  5. And more cargo-cultism by Moraelin · · Score: 5, Funny

    And a few more examples of cargo-cultism, from people who were untrained to understand what they're doing, but someone thought it was ok because the Java standard library does it for them anyway.

    1. The same Wally 1 from the previous story had written basically this method:

    public static void nuller(String x) {
        x = null;
    }

    Then he called it like this, to try to get around an immutable field in an object. Let's say we have an object called Name, which has an immutable String. So you create it with that string and can't change it afterwards. You have a getName() but not a setName() on it. So he tried to do essentially:

    Name name = new Name("John Doe");
    nuller(name.getName());

    I understand that he worked a week on trying to debug into why it doesn't work, until he asked for help.

    2. From Ted's aforementioned project:

    So they used the wrapper classes like Integer or Character all over the place instead of int or char. This was back in Java 1.3 times too, so there was no automatic boxing and unboxing. The whole code was a mess of getting the values boxed as parameters, unboxing them, doing some maths, boxing the result. Lather, rinse, repeat.

    I ask what that's all about.

    "Oh, that's a clever optimization Ted came up with. See, if you have the normal int as a parameter, Java copies the whole integer on the stack. But if you use Integer it only copies a pointer to it."

    AAARGH!

    --
    A polar bear is a cartesian bear after a coordinate transform.
  6. Re:Some, not all... by Anonymous Coward · · Score: 1, Funny

    I thought that people who understood the force were called Jedis...

  7. Re:True story by julesh · · Score: 3, Funny

    So Wally 1 keeps clicking and staring at the screen all week and spewing things like "Unbelievable!" every 5 minutes. My curiosity gets the better of me and I ask what's happening.

    Is it just me who would be_much_ more tempted to say, "You keep using that word. I don't think it means what you think it means."

    (Yes, I know it's a slight misquote, but it's close enough to be really tempting...)

  8. Re:The Story of Mel by dargaud · · Score: 2, Funny

    Now whatever happened to this guy ? Did he carry on to write Perl or something ?

    --
    Non-Linux Penguins ?
  9. Re:Some, not all... by axlGrease · · Score: 2, Funny

    On the other hand, yeah... fuck punch cards.

    Oh, that is so *not* the way to program punch cards ...

  10. Re:Ya I would compare it to long division by CrashandDie · · Score: 5, Funny

    I'd rather do it by hand. I'd love to see you divide a pizza in 6 using only your head.

  11. Re:Some, not all... by MadKeithV · · Score: 2, Funny

    What are these newfangled "maps" or "associative arrays"? Everything is a list, isn't it?


    </Lisp_FTW>

  12. Re:True story by MadKeithV · · Score: 2, Funny

    I think C++ templates are a compiler bug.