News for hackers. Stuff that matters.
Re:Why Pascal is Not My Favorite Programming Language (1981) by kabdib on Wednesday September 03, 2014 @12:25AM (#8261504)
When I joined Apple in 1987 it was a Pascal shop that had just started moving to C. The Pascal they were using had been developed and was maintained in-house and had a number of extensions, and with the exception of a few things like different semantics for pointer arithmetic and the presence of nested procedures it felt in practice nearly the same as C, just with different keywords. I wrote a ton of code in it, and I really didn't think about the difference much.

But in college I had to use unextended Pascal, and it sucked pretty hard. Maybe that's the point of a teaching language; make it stink to the point that students are encouraged to move to better languages. Maybe the current vocational approach of teaching a "Real Language" -- ahem, Java -- to beginning programmers is flawed because they're less likely to get experience with other, better languages. [I'm not sure how serious I am about this. I know that I hate Java, at least how it was circa 2001].

Re:Why Pascal is Not My Favorite Programming Language (1981) by arnsholt on Wednesday September 03, 2014 @01:48AM (#8261672)
Another problem with teaching introductory programming in a Real Language, I think, is the temptation to also teach more software engineering-like things as well.

When you start measuring your experience with programming in decades rather than years, it's hard to remember learning how to program is actually kinda hard. Thus, adding things like version control and IDEs to the mix gives you less time on teaching what should be the core of an introductory programming class: how to solve problems in code. Anything else is fluff that can be ignored until the foundations have been laid.

An additional reason I think using something "weird" like Haskell or Scheme is that it's a very good equalizer (Haskell in particular). IME, this kind of class will have two kinds of student: those who already know how to program, and those who've never programmed. Those who already know how to program are mostly going to ignore the class, simply because it's known to them already; and this is a problem because the interactions between strong students and weaker ones is massively helpful, to both parties. Teaching things is, somewhat ironically, perhaps the very best way of focussing your knowledge of it. When you're explaining stuff to yourself (as it were), you can fudge the details you're a bit vague on (which is generally thue tricky bits), but if you're explaining it any vagueness is painfully obvious (I suspect this is also the reason simply explaining a problem to someone can be so helpful).

Re:Why Pascal is Not My Favorite Programming Language (1981) by mathattack on Wednesday September 03, 2014 @01:59AM (#8261689)
I think the move to safer languages for CS education is more to encourage people to think about the CS lessons at hand, rather than software engineering.

Learning about various list types is much easier if you don't have to worry about randomly crashing things. Learning about recursion is better in a language suited for it.

My CS education was founded around Scheme in part because it was a good language for showing how things worked. I thought the school went a little too far in that direction because outside of SQL, I had to teach myself every language I worked with thereafter. But... It did prepare me to learn those languages.

Re:Why Pascal is Not My Favorite Programming Language (1981) by abroncs on Wednesday September 03, 2014 @01:50AM (#8261677)
I learned programming with Pascal in high school, and it definitely didn't stink. It's way easier than C and lets you focus on the actual programming, not the idiosyncrasies of the language. It's very much like Python in this regard, but I think it's even better as a first languge. It's more explicit and to someone completely new to programming, that really pays off IMO.
Re:Why Pascal is Not My Favorite Programming Language (1981) by gshubert17 on Wednesday September 03, 2014 @09:41AM (#8262927)
I've taught beginning programming courses at the college level to adults for more than 20 years. In the early 1990s we used Pascal, specifically Turbo Pascal for Microsoft DOS and Windows. It worked very well for me as a language and environment for learning to program. After two courses in Pascal, students went on to C, C++, and Java.

My university has since changed the curriculum so that the first language of instruction is C++, leaving out objects and classes until after the first three courses. I experience and share the frustrations of beginning students wrestling with the minutiae of C++ coding, which leaves less time for seeing the "big picture" of programming. These struggles drain a lot of the energy which can be generated by making progress learning to program.

Some of the rationale for dropping Pascal, I think, was that "nobody" in the real world used it. This was untrue, of course, but the Pascal community didn't have the self-promotion and media buzz that Java did.

I find it curious that two languages deliberately designed for ease of instruction -- Pascal and Scheme -- should have such a bad reputation in some quarters.

Re:Why Pascal is Not My Favorite Programming Language (1981) by icelancer on Wednesday September 03, 2014 @02:00AM (#8261691)
Pascal was my 2nd language after Apple IIe BASIC. I also found it to be a great language to learn. I have some bad memories involving Delphi, though...
Re:Why Pascal is Not My Favorite Programming Language (1981) by xxs on Wednesday September 03, 2014 @04:06AM (#8261960)
Without a compiler BASIC was absolutely terrible performance wise, so assembler was kind of a must (at least to me).

When I was trying to learn object orient programming with Turbo Pascal, it felt rally hard till I saw the exact compiled code. But I liked Pascal very much... and Delphi even more. Actually I liked everything about Delphi, compared to Visual Basic it was absolutely amazing and it came with the source code of its libraries! What was your bad experience with?

Re:Why Pascal is Not My Favorite Programming Language (1981) by 72deluxe on Wednesday September 03, 2014 @04:43AM (#8262054)
Does anyone use Lazarus and Free Pascal for anything? I only tinkered with Delphi when it used to come on PC Plus cover CDs back in the day, before using C++ Builder at work. I know that C++ Builder lost significant (!) market share after the name changes to Inprise and being bought by Embercarado, although those things weren't necessarily the real reasons for this market share loss.

I was pleasantly surprised to come across Lazarus and Free Pascal and thought it might be a way for my brother to do some programming, instead of C++ (which I use, but he doesn't know).

Re:Why Pascal is Not My Favorite Programming Language (1981) by marktangotango on Wednesday September 03, 2014 @09:18AM (#8262823)
I studied TP many years ago, and have fond memories of it. I looked into using Free Pascal for a system level project involving networking, threading, and concurrency (here I mean things like synchronized collections). In particular the threading and concurrency libraries seemed to be limited, and not as 'nice' as alternatives in other languages (boost, or java concurrent utils). Also the language is sufficiently complex that I decided I may as well use c or c++.
Re:Why Pascal is Not My Favorite Programming Language (1981) by 72deluxe on Wednesday September 10, 2014 @08:52AM (#8296292)
I thought that Lazarus looked easy enough to get my brother started with programming, due to the easy nature of "controls" that you drag + drop from the palette, but such a hope hasn't materialised yet. Good to know someone else looked into it though.

I note that on Mac it is still built using Carbon; not sure if Cocoa is in the works?

Re:Why Pascal is Not My Favorite Programming Language (1981) by dubya on Wednesday September 03, 2014 @04:15PM (#8265209)
I really didn't like Pascal in high school, but this was ~1990 and we were using Apple IIe's, so no Turbo Pascal. I remember strings and printing being a nuisance. Later we got to use Logo and that was much more satisfying.