Hacker News new | ask | show | jobs
by morsch 5321 days ago
We programmed abstract data structures in Pascal. I think we implemented quicksort. I guess I was lucky?

Fun story: The first time I was truly speechless in CS in high school was when my teacher, looking at my code, told me that, for a boolean variable foo, it's not necessary or reasonable to write

  IF foo = TRUE THEN // whatever;  "=" is comparison in Pascal BTW
but rather you can just write

  IF foo THEN // whatever
It seems trivial, even stupid now, but at the time it was an eye-opener.