[OT] Sharp Regrets: Top 10 Worst C# Features
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Sat Aug 22 22:25:11 PDT 2015
On 8/22/2015 8:32 PM, H. S. Teoh via Digitalmars-d wrote:
> People who are more than casually interested in computers should
> have at least some idea of what the underlying hardware is like.
> Otherwise the programs they write will be pretty weird.
> -- D. Knuth
A good friend of mine in college decided to learn Fortran, having never
programmed before. Being a practical sort, he got a copy of the Fortran-10
reference manual, read it, and wrote a program. Being an amazingly smart man,
his program worked.
But it ran awfully slowly. He was quite mystified, and finally asked for help
from someone who knew Fortran. It was quickly discovered that the program wrote
a file by opening the file, appending a character, then closing the file, for
each byte in the file. (You can imagine how slow that is!)
My friend defended himself with the fact that the Fortran reference manual made
no mention about how to do file I/O for performance - knowledge of this sort of
thing was just assumed. He was quite right.
More information about the Digitalmars-d
mailing list