AlmightySnoo 🐢🇮🇱🇺🇦

Yoko, Shinobu ni, eto… 🤔

  • 22 Posts
  • 54 Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle













  • Pascal is so incredibly good and simple that I was writing programs (sort of, half of the time it was gibberish) in it when I was 7 years old and what helped a lot was that at the time Turbo Pascal came with lots of cool examples/tutorials, so you could just play around with code snippets until you figure it out on your own. Those who witnessed how programming can be taught today to 7~10 year olds using JS or Python might relate, Pascal was just that simple and clean.

    Delphi was also amazing, it had the same simplicity of Visual Basic to make GUI apps while featuring a much better and more rigourous language.









  • A simple if (false) will get optimized out by any modern C or C++ compiler with optimizations on, but the problem is that the compiler will still parse and spend time on what’s inside the if-block and it has to be legal code, whereas with the #if 0 trick the whole thing gets yeeted away by the preprocessor before even the compiler gets to look at it regardless of whether that block contains errors or not, it’s literally just a string manipulation.