Results 1 to 8 of 8

Thread: The beauty of the Pascal language

  1. #1
    Στωικισμός Member Bijo's Avatar
    Join Date
    Dec 2006
    Location
    Η Γη / Κόλαση
    Posts
    1,844

    Default The beauty of the Pascal language

    For those programmers around here.


    I was thinking about the downfall of Pascal, and the mainstream activity of C (and C++). Obviously C and C++ have good support, libraries and so on, but if we purely look at the design of the language...

    In the past I learnt Pascal, and later had a go at C, and then C++ (though there were many languages I had a play with at least). And now, after all these years that I finally reread stuff on Pascal, and compare the design, the syntax, with that of C++'s (or C's), I am amazed to see how, well... "ugly" C's is, if that's the proper word.

    Pascal's syntax is so elegant, clear, and more natural than C-likes'. It is also more difficult to make mistakes in it than it is to in C-likes' languages. It looks more structured and generally more pleasant to the eye -- though it might be subjective -- and I bet even people who absolutely know NOTHING of programming can make sense out of it when they see sample code, especially due to it being more descriptive with words instead of cryptic and symbolic signs.

    Then there was Delphi at some point. It went down. People now generally either use C, C++, C#, Java, or of course those even higher languages and such.

    It's a shame Pascal got pushed away, as I think it's not only a good language for teaching, but programming in general. Not that I'm an expert, but surely Pascal can be used for many good a thing as well just as C (and later when Pascal got more developed it could be the dominant mainstream language today)?



    What is it really? Was/Is C (and later C++) really more powerful than Pascal? Why did Delphi get pushed away -- better corporate backing? In those older days, was it some kind of masochistic or "cool" thing for programmers to use C and/or C++?

    Looking at the game industry, would or could Pascal have been a good language today?

    Looking at systems programming, would or could Pascal have been a good language today?

    Was Pascal's low-level access less good compared to C's?

    Are there any other things noteworthy about the comparison between Pascal and C, C++?
    Emotion, passions, and desires are, thus peace is not.
    Emotion: you have it or it has you.

    ---

    Pay heed to my story named The Thief in the Mead Hall.
    No.

    ---

    Check out some of my music.

  2. #2
    Iron Fist Senior Member Husar's Avatar
    Join Date
    Jan 2003
    Location
    Germany
    Posts
    15,617

    Default Re: The beauty of the Pascal language

    I don't know any of the Cs but like you, I liked the descriptive style of Pascal, to some degree, it's even easier to type, because there is no need to type special signs all the time. Currently we use Java at uni(had Pascal at school and that helped a lot when learning the basics of Java).

    About the low-level access etc I don't know either since we never used such things until now.


    "Topic is tired and needs a nap." - Tosa Inu

  3. #3
    zombologist Senior Member doc_bean's Avatar
    Join Date
    Oct 2004
    Location
    Riding Shai-Hulud
    Posts
    5,346

    Default Re: The beauty of the Pascal language

    Pascal was the first language I learned, it's a very good starting point, but it misses the sheer flexibility and performance of C++.
    Last edited by doc_bean; 05-30-2007 at 13:27.
    Yes, Iraq is peaceful. Go to sleep now. - Adrian II

  4. #4
    The very model of a modern Moderator Xiahou's Avatar
    Join Date
    Aug 2002
    Location
    in the cloud.
    Posts
    9,007

    Default Re: The beauty of the Pascal language

    Quote Originally Posted by doc_bean
    Pascal was the first language I leaned, it's a very good starting point, but it misses the sheer flexibility and performance of C++.
    I took Pascal in highschool- before that, I had very limited BASIC experience. Learning Pascal in HS was a good jumpstart on the 3 semesters of C++ that I took at college.

    Of course, I don't use any of that anymore... My major was in DataComm/Networking. I think they just made us take programming to try to make us feel for you programmers.
    "Don't believe everything you read online."
    -Abraham Lincoln

  5. #5
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326

    Default Re: The beauty of the Pascal language

    My first encounter with programming language was Basic in highschool. If that wasn't 'educative' enough, we had to retype several lines of gibberish and behold something happens. Add PC's to that which had no HD to store the file, a nifty timed powerfailure and voila.

    I learned nothing from it, except for an ill advised aversion of PC's.

    I liked Pascal and appreciated C++ even more.

    I don't know at all whether it would be possible, but I regret the re-invention of wheels, renaming, waste of resources, stress and confusion. That's evolution though, I doubt we can channel that.
    Ja mata

    TosaInu

  6. #6
    It was a trap, after all. Member DukeofSerbia's Avatar
    Join Date
    Feb 2005
    Location
    Sombor, Serbia (one day again Kingdom)
    Posts
    1,001

    Default bla bla bla

    I learned in elementary school Basic.

    In Gymnasium I learned Pascal. I liked him in the beginning [and I was very skilled], but later it became boring and learned just for tests.
    Watching
    EURO 2008 & Mobile Suit Gundam 00

    Waiting for: Wimbledon 2008.

  7. #7
    Jillian & Allison's Daddy Senior Member Don Corleone's Avatar
    Join Date
    Mar 2004
    Location
    Athens, GA
    Posts
    7,588

    Default Re: The beauty of the Pascal language

    I'm not a software engineer, but I have some experience with Pascal and C from my university days. Now, if I need to code something up, I almost always use C.

    Pascal is very structured, and you're right, it's harder to make mistakes, but it has such strong syntax. That's because it's a teaching language, based on C. C is a mid-level language... it stands somewhere between the pure abstraction of high-level languages such as Pascal and BASIC and the low-level languages (assembly code).

    Pascal doesn't offer very much in the way of flexibility. Again, I'm an electronics guy, not a software guy, but AFAIK, you cannot define your own data structures in Pascal (or if you can, it's a rather tedious process).

    Sure, Pascal is great in terms of how well defined everything is. But compare how many lines of code it takes you to write a function in Pascal. Then look at how many lines you can do the same function in C. No comparison.
    "A man who doesn't spend time with his family can never be a real man."
    Don Vito Corleone: The Godfather, Part 1.

    "Then wait for them and swear to God in heaven that if they spew that bull to you or your family again you will cave there heads in with a sledgehammer"
    Strike for the South

  8. #8
    Στωικισμός Member Bijo's Avatar
    Join Date
    Dec 2006
    Location
    Η Γη / Κόλαση
    Posts
    1,844

    Default Re: The beauty of the Pascal language

    Quote Originally Posted by Don Corleone
    Pascal is very structured, and you're right, it's harder to make mistakes, but it has such strong syntax. That's because it's a teaching language, based on C. C is a mid-level language... it stands somewhere between the pure abstraction of high-level languages such as Pascal and BASIC and the low-level languages (assembly code).
    Pascal based on C? I thought it was based on ALGOL, and that C came shortly after Pascal.
    Emotion, passions, and desires are, thus peace is not.
    Emotion: you have it or it has you.

    ---

    Pay heed to my story named The Thief in the Mead Hall.
    No.

    ---

    Check out some of my music.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO