News for hackers. Stuff that matters.
Re:I told my 2nd year CS students to create a programming la... by kodablah on Monday May 14, 2012 @06:02PM (#3973587)
"I think it happened because they wrote just C code until now (they will meet PHP next semester)."

This surprises me. Of the higher-level languages you (or your school) could choose, why PHP? I understand for beginners, but why for students coming from a C background?

Re:I told my 2nd year CS students to create a programming la... by dovyski on Monday May 14, 2012 @08:05PM (#3974071)
When I arrived, PHP was already chosen. I think PHP was chosen because it is very similar to C and it lowers the learning curve for the students.

I know PHP sucks sometimes, but it's still a cool language to play with.

Re:I told my 2nd year CS students to create a programming la... by Udo on Tuesday May 15, 2012 @03:44AM (#3975474)
PHP hate is often a knee-jerk reaction here on HN. It's a language that has both some very cool features and some legacy baggage it carries around - and it's absolutely possible to use it for good (and to use it well). I think PHP's image problem comes from the perception that there is some very low-quality code out there, but it's definitely mainly an in-group coolness issue.

It's one of those things that (negatively) surprised me about Hacker News, actually. People go around and unproductively bash each other's programming languages when they could use their energy to elaborate on the stuff they actually like. The group consensus seems to be that Lisp is the best thing a language can hope to be; and since very few people actually develop in Lisp-likes, they fall over each other to claim the next-best place in the All-Time Universal Programming Language Hierarchy(tm).

I believe the origin of this behavior might be a somewhat mistaken PG essay[1] implying that all non-Lisp languages are "Blub", which is a synonym for "sucky, powerless, inferior language".

[1] http://www.paulgraham.com/avg.html

Re:I told my 2nd year CS students to create a programming la... by dovyski on Tuesday May 15, 2012 @07:46AM (#3976092)
I totally agree with you! I think every language has its own benefits/problems, the programmer is the one that makes the difference.

I'm sure I can find crappy Ruby/Lisp/whatever code and excellent PHP code out there. If you are a bad programmer, you write bad code. Of couse there are languages that try to prevent that forcing you to follow certain patterns, but it will not stop bad programmers.

Re:I told my 2nd year CS students to create a programming la... by jayaram on Monday May 14, 2012 @06:18PM (#3973654)
yea I thought the same.. why PHP!! there are a lot of other languages to learn, Java, ruby, python etc etc