|
|
|
Learning to Program: How Should I Start on This Project?
|
|
12 points
by lauraannmorris
5458 days ago
|
|
Hi HN,
I've come to the conclusion that I need to learn to program. (Know it's debatable whether bix/mkting folks should waste their time learning, but I want to learn anyway.) I have a pet project that I’d like to build, but could use your help determining which language is best for me to start with and what online resources I should prioritize. Should note that I’ve done some homework here: I took MIT’s Intro to Computer Programming (Python) class via Udemy and I completed the Rails for Zombies tutorial.But, while I can go through those exercises OK enough, I’m stuck when it comes to putting it all together and building something useful… that’s where I could use your help. I want to be able to build a form with multiple data entry types that automatically emails certain groups of people based on data submitted. Simple, yeah? (I hope.) Any recommendations on where to start with this project? Know Railscasts has a series of episodes all about forms … but is that better for this project than Python or some other language/set of resources? Thanks in advance for your help – know the “how do I learn to program” question gets asked quite a bit around here…
Laura |
|
From your post it's not easy to tell what you're exactly having trouble with, but I suspect it's a general feeling of being lost.
Be aware that for your project you probably need to read up a bit/learn a little of the following:
- Programming basics: Variables, types, expressions and statements, control flow (loops, if/else)
- Web development basics: HTML and CSS to build your pages, a little knowledge about HTTP can't hurt either (GET vs. POST for you form, maybe Basic-Authentication). PHP will take care of the gritty details here
- Not sure if you want to store your forms in a database. If you do, you'll have to look for a php/mysql tutorial. There should be plenty around the web.
- Finally you need to set up some kind of development environment. WAMPserver comes with everything you need. On Mac there's MAMP, which is easier in the beginning than setting it up on your own.
Don't expect this to go fast. There's a lot of reading and playing around involved. If you start enjoying this and feel comfortable in PHP, you should look for a different language though. While PHP is comfortable to learn and good for first steps, I think it's actually counterproductive to try to build anything bigger with it.
The PHP ecosystem is poised with mediocrity and bad code. While it's actually possible to write good code in PHP, it's hard to find examples of good programming and the languages horrible design makes it actually difficult (though not impossible) to express yourself well and write good code.