Live data from Hacker News

Why I use Object Pascal

dubst3pp4.github.io

21–30 of 235 posts

Re: Why I use Object Pascal

#21
"You can also define your own types", "classes can also inherit other classes", "Pascal is modular"...

Not to say these are not valid reasons, or expectations one may have from a language, but - what exactly is Pascal being compared to? I mean, it's 2017.

Re: Why I use Object Pascal

#24

What caused pascal to lose out to C? Seems like it was a good language that had developer uptake.

1) The popularity of UNIX where C was the standard language 2) The fact that, much like BASIC, most implementations of the language didn't follow the standard. In practice, Turbo Pascal was more of a standard than the official one.

Re: Why I use Object Pascal

#25
I feel kind of sheepish to admit that "Why Pascal is not my favorite programming language" had a huge impact on me and caused me to avoid Pascal until I was forced to deal with it because a coworker quit and dropped maintenance of an in-house application in my lap.

I was happy to realize that most of the criticism in that essay no longer applies to relatively recent versions of the language/IDE (Delphi 7 in my case).

One huge advantage if Pascal is that it is very easy to read; the code does not look or feel pretty, but it is so easy to read I could get an idea of what was going on without any prior knowledge of Pascal within a few hours.

Keywords not being case-sensitive felt weird at first, but one gets used to it very quickly.

Re: Why I use Object Pascal

#26
Hopefully, it has changed but, when I was learning Pascal many years ago, an entire program had to be contained within a single file. No separate compilation files and no linker. For all but toy programs, this made for some very long files which, given the state of editors then, made maintenance a real problem.

Re: Why I use Object Pascal

#27
post #25

I feel kind of sheepish to admit that "Why Pascal is not my favorite programming language" had a huge impact on me and caused me to avoid Pascal until I was forced to deal with it because a coworker quit and dropped maintenance of an in-house application in my lap. I was happy to realize that most of the criticism in that essay no longer applies to relatively recent versions of the language/IDE (Delphi 7 in my case).…

Most of that criticism was already wrong when compared against Turbo Pascal 6.0 on MS-DOS (the 7.0 major improvement was DOS extender support).

Re: Why I use Object Pascal

#28

Hopefully, it has changed but, when I was learning Pascal many years ago, an entire program had to be contained within a single file. No separate compilation files and no linker. For all but toy programs, this made for some very long files which, given the state of editors then, made maintenance a real problem.

That was only true in toy Pascal compilers.

Any Pascal compiler for production code supported some kind of modules/units.

Re: Why I use Object Pascal

#29

Hopefully, it has changed but, when I was learning Pascal many years ago, an entire program had to be contained within a single file. No separate compilation files and no linker. For all but toy programs, this made for some very long files which, given the state of editors then, made maintenance a real problem.

yes, this changed around 30 years ago.

Re: Why I use Object Pascal

#30
I've lately been trying out FreePascal for building my indie games (which have in the past been in C, Python, Java, Objective-C, and finally JavaScript), and it's going well enough. There's certainly room for improvement, and the Lazarus IDE is not at all to my taste, but it's likely to be my next-ten-years language.

https://mdhughes.tech/2017/09/02/pascal/

and a couple of followup posts

https://mdhughes.tech/category/pascal/

Post reply on HN