Learning programming via web apps
February 15, 2005 8:58 AM
Subscribe
Learning programming via web apps. [+]
I understand the mechanics of programming, like the various control structures and have a decent aptitude for algorithmic thinking. In the programming classes I've had since secondary school in (BASIC/C/Matlab), I've done very well. Now I wish to learn some real-world skills. The projects and assignments in those classes were mostly computational and didn't involve much I/O work, or working with APIs or libraries, data structures, or security..etc. In short, I didn't think I could do anything
useful besides the elementary accounting style apps.
Well, I got some webspace for real cheap via a promotional code. So that's given me the motivation to take it to the next step and learn some web apps programming.
I've two projects in mind.
1)Writing my own groupblog engine. Just for the heck of it.
2)Writing my own web-based notes/bookmarks/calender app.
I can run the usual PHP4, Perl5, Python2 apps with access to MySQL, as well as C/C++ binaries.
Which language should I pick? What's the best way for learning with respect to practical skills? From which resources?
Note: I haven't learnt much about OO programming.
posted by daksya to computers & internet (21 comments total)
For a starter I would get an O'Reilly book on PHP programming and start with the basics: Show a page on the web, show a page with variables that you get for the database, then build it out from there.
However, what you have to keep in mind is that if you start off with the basics and are trying to write a group-blog there is a very big chance you start off with writing an app now that you will have to rebuild from scratch later on if you want to extend it. The structure of the application is quite important and it can be very frustrating to notice that if you want to have an extra function in your tool you have to change 30-odd pages of PHP.
What I would not do is use an open source app and try to change it with you own code. Most of this code is really well written and you can learn from it, but it just doesn't give the same satisfaction as writing it yourself.
The other thing you might want to read up on is SQL. It may not be the most difficult language to learn in the world, but it will save you a lot of time and effort if you learn some SQL and know that you can order by, group by, make links and everything in SQL already without having to write some silly php subroutine.
As for all the practical problems you will encounter during programming an app (how do I use sessions, how do i set a cookie, do I send the plain password or use an md5 hash) use google a lot, as well as php.net. It's amazing, but I am refreshing my Java skills at the moment and I realised every question I have has already been asked and answered on some forum somewhere. I love the internet.
On review: I realize I am not really answering your question specifically. Sorry.
posted by sebas at 9:30 AM on February 15, 2005