What are some fun simple languages to learn.

This is a discussion on What are some fun simple languages to learn. within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Originally Posted by CornedBee I'm talking about safe as in type safety, early error detection, all that stuff a compiler ...

  1. #31
    Cat Lover
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    109
    Quote Originally Posted by CornedBee
    I'm talking about safe as in type safety, early error detection, all that stuff a compiler can do for you.

    And yes, I have caused a server crash in PHP. (It was a bug in the engine, but still ...) And over time, dozens of buffer overflows have been detected (and fixed) in various PHP functions.

    I know it's easy. I know it's not safe: it encourages bad practices. Look at any PHP+MySQL tutorial out there, and you'll find that it probably uses string concatenation to build queries with data - an invitation to an SQL injection the moment magic quotes are switched off. And in some other circumstances.
    Ah, magic quotes. Source of many a stray backslash in text.
    Then there's register_globals and how simple it is to use uninitialized variables. Together, these are quite the killer.

    The success of PHP comes from its ease of installation, ease of learning (but it's far harder to learn it properly), great availability, and of course its huge built-in library. It's great for quickly doing something.

    But larger systems are, in the end, an abuse of PHP. Its lack of proper package management, hard-to-predict include paths, lack of namespaces and unit-local functions, all those work together to make large systems rather awkward.


    To me, PHP is a language to get work done in, just like Java. But it's not fun.
    Just as well this topic is about a language to learn for fun, rather than a serious language to use for large scale projects.

    As has been mentioned, it's easy, it's very much like C, it has inbuilt functions for most things you'll ever need to do, which make it an easy and relatively painless language to learn and use for small projects, like a small website, etc.

  2. #32
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    ...use for small projects, like a small website, etc.
    Or a HUGE website. Most HUGE sites in internet are made with PHP.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  3. #33
    Registered User
    Join Date
    Jul 2006
    Posts
    111
    Isn't php often used for databases (PHPBB, wikipedia, etc.)?

    Quote Originally Posted by maxorator
    Or a HUGE website. Most HUGE sites in internet are made with PHP.
    Not just PHP though. Often a site will be built around many different languages.

  4. #34
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    You can't say they're FOR databases, they USE databases.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  5. #35
    Registered User
    Join Date
    Jul 2006
    Posts
    111
    how about, PHP is used to manage databases? happier?

  6. #36
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    It wasn't that offensive...
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  7. #37
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    By Easy I meant the learning curve and simplicity of the syntax btw, not the implementation which is generally not something trivial. Something I can pick up and play with.

  8. #38
    Registered User
    Join Date
    Jul 2006
    Posts
    111
    and i did not mean to imply that I was offended...

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Am I too late to learn programming?
    By maccat in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 02-17-2009, 07:49 AM
  2. Why C Matters
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 136
    Last Post: 01-16-2008, 08:09 AM
  3. Simple Socialising Chat Bots
    By bengreenwood in forum C++ Programming
    Replies: 10
    Last Post: 11-28-2007, 07:42 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  5. Simple simple graphics
    By triplem in forum C Programming
    Replies: 2
    Last Post: 05-19-2003, 02:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21