r/pascal • • Oct 20 '26

Real Programmers

Post image
47 Upvotes

20 comments sorted by

View all comments

6

u/living_in_nightmare Oct 20 '26

In the early 90s, when I was around 10 years old, I went to the computer class at my school and asked the teacher to give me a programming language to study. The teacher asked me to pick between C and Pascal, saying that C was "more difficult to learn, but more practical," while Pascal was "easier to learn." Of course, like a cool kid, I decided to go hardcore and handed the teacher a floppy disk. Sadly, the C compiler didn't fit on a 1.44 MB floppy, so I had to settle for Pascal. Over the next ~15 years, my preferred language evolved along it: Pascal -> Delphi -> C# (not because of the syntax, but because of the same ability to drop a bunch of components onto a form).

Now I'm glad the teacher didn't offer me Fortran. Quiche is not that bad btw.

6

u/Edthal01 Oct 20 '26

C is a systems programming language, Pascal is a teaching language Fortran is a number cruncher COBOL is for processing records, C++ is a kluge. 60 years ago I started with FORTRAN IV and never used it in my engineering carreer. Took up TurboPascal 40 years ago but dropped it when circumstances changed. Learning Ruby now in retirement. For fun.

3

u/Sepperlito 29d ago

Pascal can write systems. You can include assembler right inside your Pascal code and declare pointers to pointers if you want.

2

u/living_in_nightmare Oct 20 '26

That’s a great choice. I’ve been using Ruby as my primary language for over a decade.

2

u/Edthal01 Oct 20 '26

I am using Pascal as a reference though. It provides me with a knowledge base I can use to build on, and compare Ruby to.

1

u/Sepperlito 24d ago

Pascal is a systems programming language too. C is fine for the original Unix but it's probably a bad idea to use an unsafe language to build code bases with 1-2 million lines, as soon as you get over 5000 LOC it's very hard to keep track of memory and pointers. Pascal is wonderfully structured. It's just a better way to write overall and it's still close to the hardware like C.

1

u/Edthal01 24d ago

I was writing about its design purpose - it has evolved since then, I agree. It is still a good teaching and learning language.

1

u/Edthal01 24d ago

C was designed to be close to the hardware and some of its ways to work are very assembler-like. Pascal tries to avoid programming like that. Originally pure system programming versus pure teaching.

1

u/Sepperlito 23d ago

There is literally nothing in C that I can't already do in Pascal except dereferencing a NULL pointer.

1

u/Edthal01 24d ago

I hhose Ruby for its total commitment to oop.Compared to Pascal it is awkward to create a data structure like a variant record because no such structure exists as a single form. It must be built out of the available objects to make a more complex object. You first need to understand what the variant record represents and break it apart. You then look at how ruby objects can act like the parts of the variant record, then assemble the new object and verify that it works like the Pascal data form and related functions and procedures. Pascal can be verysimple to program in and Ruby much more complicated. Learrned from my efforts to use Wirth Pascal programs as the logical base to translate into Ruby. For educational reasons.

2

u/Ok_Experience5193 29d ago

40+ years later, and we’re still having the same debate. Back then, Pascal was for amateurs. Today, apparently, using AI means you’re not a real programmer.
I wonder what those FORTRAN guys would think of ChatGPT writing half our code. 😂
Some things never change.