Live data from Hacker News

Why I use Object Pascal

dubst3pp4.github.io

11–20 of 235 posts

Re: Why I use Object Pascal

#12
Yeah I've written compilers for Swift, C#, Java, JavaScript and Pascal and agree Pascal is the cleanest and nicest language, both on the parsing side and writing in.

Re: Why I use Object Pascal

#13
post #7
post #2

How do users of languages like Pascal get by without any/many libraries? Do they need to use the FFI to call out to C functions constantly? I mean, I certainly buy that $VINTAGE_LANGUAGE could still be great to develop in, but I'm curious the practicalities of working on modern systems without re-inventing every single wheel.

In my experience (talking FreePascal/Lazarus here, as I'm on Linux most of the time), the library situation is not that bad, actually. The standard lib has most of the mundane stuff, and a little github-searching can often find a working version of more specific stuff (like SSH2 which I needed recently). To the contrary, in some areas (like GUI tooling) it is far far beyond newer alternatives like Go. Also, I think t…

That's cool, this thread has definitely piqued my interest in Pascal!

Re: Why I use Object Pascal

#14
In my university (in Paris) we used to learn programming that way for the licence degree

1st year -> pascal only

2nd year -> c only

3d year -> java only

That was a very nice learning curve for the core course of programming.

Re: Why I use Object Pascal

#15
post #9

Turbo Pascal and Forth were my first languages past Assembly on C64. They were so much better then Basic and Assembly for a young teenagers. Delphi is now $1,200 to $4,400 a user!!! WOW more then the $75 in 1983 https://www.embarcadero.com/app-development-tools-store/delp...

Currently I'm learning Forth and I really like that language! It's a brain twist and that's reason enough to have a look at :-)

Re: Why I use Object Pascal

#16
post #14

In my university (in Paris) we used to learn programming that way for the licence degree 1st year -> pascal only 2nd year -> c only 3d year -> java only That was a very nice learning curve for the core course of programming.

This really funny or strange.

This is exactly how IT classes went in my high school.

Uni was really scattered though: Java, C++, C, Prolog, Python.

Re: Why I use Object Pascal

#17
post #2

How do users of languages like Pascal get by without any/many libraries? Do they need to use the FFI to call out to C functions constantly? I mean, I certainly buy that $VINTAGE_LANGUAGE could still be great to develop in, but I'm curious the practicalities of working on modern systems without re-inventing every single wheel.

At work, I maintain an in-house application written in Delphi/ObjectPascal.

In my case I do not need anything beyond what is supplied by the environment. The UI library is part of the environment, so is the database interface, ... basically, that is all the application needs.

Generally speaking, applications that basically are a UI on top of a relational database probably don't need any external libraries. And those are, uh, abundant.

Also, calling libraries written in C/C++ is possible, too.

Re: Why I use Object Pascal

#18
post #14

In my university (in Paris) we used to learn programming that way for the licence degree 1st year -> pascal only 2nd year -> c only 3d year -> java only That was a very nice learning curve for the core course of programming.

Pascal is definitely a very good language for teaching the basic of procedural/imperative programming. It has several good properties : it teaches you structured data (which helps to understand formalization), is strongly typed (which helps to reduce the uncertainty about the behavior of a program which in turn helps student to understand what they do precisely); you don't have to face pointers (which in my own experience are tough to understand); etc.

Re: Why I use Object Pascal

#19
post #14

In my university (in Paris) we used to learn programming that way for the licence degree 1st year -> pascal only 2nd year -> c only 3d year -> java only That was a very nice learning curve for the core course of programming.

yeah in Spain it was pretty much the same (almost 20 years ago), touching others just a bit (haskel, prolog, etc.)

Re: Why I use Object Pascal

#20
post #18
post #14

In my university (in Paris) we used to learn programming that way for the licence degree 1st year -> pascal only 2nd year -> c only 3d year -> java only That was a very nice learning curve for the core course of programming.

Pascal is definitely a very good language for teaching the basic of procedural/imperative programming. It has several good properties : it teaches you structured data (which helps to understand formalization), is strongly typed (which helps to reduce the uncertainty about the behavior of a program which in turn helps student to understand what they do precisely); you don't have to face pointers (which in my own exper…

But when you need them, pointers are there
Post reply on HN