Re: Nothing wrong with BASIC (line nos)
What's wrong with putting __FILE__ and __LINE__ in fprintf(stderr,...) statements, or equivalent in other languages? I'm glad I got into this stuff before BASIC became popular, by which time I had moved on from FORTRAN taught in a 1 semester course at uni in '69, to Coral 66, PL/1, Pascal and even played with BCPL. It's funny, though, how playing with lots of languages pays dividends. I found I could easily hack on the ancient FORTRAN code in the NEC2 electromagnetic modelling program, and more recently some amateur radio stuff where the author probably uses FORTRAN because he used it all his career.
I've seen some funny code in my time, but the one that takes the biscuit is some C code (no names, no pack drill) that, if possible, is even more convoluted than a BASIC program and no, it's not a submission to IOCCC . Virtually no indentation (though that can be fixed with astyle), and too many gotos without reason. Perhaps the guy started with BASIC & never really escaped the mindset.
I do confess, however, that I've never really got to grips with functional languages and that programming style.