5 ms·
As a teenager, I tried various "real" coding languages - C++, Java, VB (ugh) - but I was never able to get engaged in them. All I wanted to do was build somethi
by fuzzmeister 18y ago
As a teenager, I tried various "real" coding languages - C++, Java, VB (ugh) - but I was never able to get engaged in them. All I wanted to do was build something cool quickly, and none of these languages allowed that without a significant time investment. Then, I tried out PHP. Within a few days, I was building random tools left and right, and having a great time doing it. So, to get him interested, I recommend you choose a language that lets him get results fast.
- RossM 18y agoPHP's how I got into programming too. It's a relatively easy language to learn as it doesn't worry too much about typing and it's syntax leaves a nice bridge to C which could be just what you need.
- ericb 18y agoThis is good advice. I personally thought VB6 did a good job of letting you build something quickly in its day, in spite of its other faults.
- walesmd 18y agoSame here, I started with QBasic and VB but never really accomplished anything in them. PHP is when I really started to "do stuff." These days though, I would recommend teaching him Python or Ruby.
- Zak 18y agoSecond on the idea that it should be quick and easy to make useful stuff, but I have to disagree on PHP. Most of the example code out there is terrible, out of date or both. It's very easy to make a mess in PHP. Python seems to be the teaching language of choice these days, and it lets you do useful stuff without getting in the way. It's certainly not the only language to learn, but I'm inclined to say it should be the first.
- mmj 18y agoYeah, PHP isn't an excellent language but it does do one thing and do it well. Just 99% of examples or scripts you find are absolutley horrible. Seriously, I've seen blog posts on PHP from IBM which contain bad programming practices.
- bprater 18y agoLet's keep rehashing how a language creates terrible code and how none of it has anything to do with the guy sitting in the chair pushing buttons. Seriously, can we just nuke this argument?
- mechanical_fish 18y agoI'm not sure that this "please think of the children" argument -- the one which asserts that the sight of PHP will forever warp the minds of children and risk turning them into script kiddies, or Blub programmers, or crack addicts -- can be nuked. It's really old. People were apparently using it when I was thirteen -- except that the guilty party back then was not PHP, which was more than a decade in the future, but BASIC. And I obviously didn't know about the controversy at the time, because I was too busy using hunt-and-peck typing to rekey my BASIC apps over and over again. (At the time my school's brand-new Commodore 64s didn't have tape drives, let alone floppies.) And the kids were alright back then, and they are alright now. Applesoft BASIC makes PHP 5 look like Haskell (we're talking about a language with nothing but global scope, here), but the generation that built the Web grew up using it and it didn't hurt anyone. The smart kids just moved on to better things as they became aware of them. Teach the kid something fun. For a thirteen year old, that's very likely to be Javascript, Actionscript (i.e. Flash), or PHP, though I certainly might give Shoes or Hackety Hack a try, or maybe this Scratch thing: http://scratch.mit.edu http://scratch.mit.edu. Try several of these and see if any of them stick. But don't get hung up on the details. The guy is thirteen. There will be plenty of time for him to learn how ugly, fragile, insecure, opaque, and unmaintainable his code is. Try to let him have some fun and get hooked before he's forced to learn the truth. He won't sit still for it, otherwise.
- Zak 18y ago
- timdorr 18y agoThere's nothing wrong with PHP 5. As long as he's learning about all the latest stuff, it's a perfect language. It features functional aspects to get him started and then he can graduate to OOP concepts. Since he's learning from scratch, stuff like objects and public/protected/private members might be a little farther down the line. PHP lets you get the basics of variables, arrays, functions, etc. out of the way without having to switch languages or set up some construct you have to ignore until later, when you're more adept at the language.
- racyrick 18y agoPerhaps also you can stress which are languages that need APIs to do GUI and other useful stuff and which have the APIs built in.
- hello_moto 18y agoIt's easier to code and deploy using PHP than Python for web-app. It's easier to code and deply GUI app in VB (and .NET environment). For a beginner to start coding web-app in Python would be like a non-geek trying out Linux with just command-line.
- tlrobinson 18y agoIt's even easier to get started with JavaScript.
- orib 18y agoThen don't do web-apps. There's nothing wrong with starting doing GUI apps with PyGame or something
- deleted 18y ago[deleted]