I'm using Free Pascal for my 3D game engine (recent-ish screenshot[0]). For me there is really two main simple reasons: 1. Lazarus. A game engine is -waaay- more than just a 3D engine with the tools being a very important aspect. Lazarus and LCL provide a rich and well featured WYSIWYG RAD IDE and framework for making desktop applications. As a bonus Lazarus as an IDE (even ignoring the LCL framework) is very fast. 2…
(continued) These are some of the annoyances with Free Pascal as the language, but there are others like how a unit (think module in other languages) has an "initialization" and "finalization" section that is executed on startup and shutdown respectively. This is good and useful thing, however the problem is that the initialization also has implicit code that zeroes out any global memory in that unit. This means that…
Why use Pascal?
301–310 of 516 posts
Re: Why use Pascal?
#302Earlier quoted context omitted.
I agree that triple equals is an abomination. It's one of the many things ensuring I use JavaScript as little as possible.
You can pretty much ignore mostly anyone most of the time who screeches at you to use triple equals (strict equality comparison) instead of regular ol' "==" (abstract equality comparison). It's one of modern programming's dumbest, least well-founded memes, resulting in such brilliant advice as insisting during code review that typeof(foo) == 'string' be changed to typeof(foo) === 'string' because the latter is "safer…
Re: Why use Pascal?
#303Re: Why use Pascal?
#304Re: Why use Pascal?
#305Earlier quoted context omitted.
Anyone can check out Oh! Pascal! [1] just like a library book. Even now, it's one of the best introductory programming books for any programming language. [1]: https://archive.org/details/ohpascal0000coop/mode/2up
I was interested to revisit the book, but when I tried, it says: DOWNLOAD OPTIONS download 1 file ENCRYPTED ADOBE PDF download High Quality Page Images In order to access your downloaded book you will need LCP-compliant or Adobe-compliant software on your device. The Internet Archive will administer this loan, but Adobe may also collect some information. That's a turnoff.
Re: Why use Pascal?
#306Earlier quoted context omitted.
No, the ones using Spark. Do keep up!
It's a bad sign if use of a language is tied to a singular framework such as Spark or Rails. The next fad is in, the language is out.
Re: Why use Pascal?
#307Earlier quoted context omitted.
You can pretty much ignore mostly anyone most of the time who screeches at you to use triple equals (strict equality comparison) instead of regular ol' "==" (abstract equality comparison). It's one of modern programming's dumbest, least well-founded memes, resulting in such brilliant advice as insisting during code review that typeof(foo) == 'string' be changed to typeof(foo) === 'string' because the latter is "safer…
A well designed language should not have an equals that results in a cargo cult
> JavaScript equals is an abomination, which to me seems like a larger issue, and people use it just fine.
... are your own words...
Re: Why use Pascal?
#308My first languaje after BASIC was Modula2, which looks a lot like Pascal. I studied OOP, algorithms and data structures with Pascal in college, so it's a languaje for which I have great memeories. Nice to see it's still around.
Modula-2 is a much better language than original Pascal, but if you want OO features Oberon-2 is the corresponding Wirth language.
Re: Why use Pascal?
#309Earlier quoted context omitted.
Modula-2 is a much better language than original Pascal, but if you want OO features Oberon-2 is the corresponding Wirth language.
And it's the fastest language in the benchmarks game, whilst also producing the smallest code. Not only better than Pascal or Go, but even better than C++.
https://benchmarksgame-team.pages.debian.net/benchmarksgame/