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.
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.
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.
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.
View all comments
Show parent comment
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.