I’ve written some of those. And every time, I test everything I write as I go, so that at every stage from the word go I have a working program. The big bang method, of writing everything first, then running it, never works.
The “big bang” sometimes happens to me when I write in Haskell. After I fix all the compiler errors, of course. I just wish there were a language with a type system that can detect almost as many errors as Haskell’s without having quite such a restrictive, bondage-fetish feel to it.
But yeah, in general, only trivial programs work the first time you run them. That’s a good definition of trivial, actually.
I’ve written some of those. And every time, I test everything I write as I go, so that at every stage from the word go I have a working program. The big bang method, of writing everything first, then running it, never works.
The “big bang” sometimes happens to me when I write in Haskell. After I fix all the compiler errors, of course. I just wish there were a language with a type system that can detect almost as many errors as Haskell’s without having quite such a restrictive, bondage-fetish feel to it.
But yeah, in general, only trivial programs work the first time you run them. That’s a good definition of trivial, actually.