I've been interested in programming for a few years now, and have been bouncing around a few ideas for some web apps the past few months. Mostly things to teach myself that would hopefully become useful to others. I've been reading HN for a little more than a year but have never really contributed. I've been doing a lot of reading lately here in regards to language/framework choice, bootstrapping, and startup stuff in general. It's definitely something I want to try.
A little about me: I'm very unhappy in my current field of computer & network support and need a change. I'm 24 and hate what I do. I'd like to eventually generate some passive income/break even and then grow from there if this seems like a good fit for me. I've dabbled in c++ a couple years ago and created simple LAMP based intranet site. Recently I've started working on the website of the company I currently work for, mostly some basic PHP. I'm ok in HTML and CSS.
Choosing a language and/or framework has been difficult. I've narrowed it down to either PHP or Flask. PHP because that's what I have the most experience with. I have a couple development books on it. Flask because it looks like a minimal framework and something I'd be able to understand in a shorter amount of time compared to something like Django. There are some useful looking plugins to get myself started and between Python and RoR, Python seems more attractive to me. I have a little experience in MySQL so would probably go with that to start with.
Am I on the right track? Between PHP or Flask, would one be better suited than the other to start with? I'm afraid of doing the majority of my learning ahead in a language or framework that could be damaging in the long term of a possible development career. I don't want this to be a lang vs lang post but I value the experience of the HN community and would love to hear your opinions and experience. Email is visible in my profile if you'd prefer that.
To come close you would probably end up using a framework written in PHP. At that point the language doesn't matter all that much.
I'm helping a friend writing a simple wiki-like application and due to him having to explain every part of the program we decided to write as much ourselves as possible and only use external libraries when absolutely necessary. Me trying him to explain what Django does and why it would help him didn't end well.
I'm not the absolute master of Python web frameworks, but I know enough to come by. But I tell you, writing clean, understandable, side-effect free and secure code in PHP is much harder in comparison than I expected.
There are thousands of tutorials on the web. But a lot of them show things done wrong, deprecated or blatantly insecure. The language is quite a mess and you can do the same thing 10 different ways, 8 of which are deprecated and maybe 1 that works with unicode. Not that you would know it's deprecated, the original mysql API is still not officially called deprecated, but it sucks big time.
I reckon knowing how to use Flask and Django makes it harder for me to write code the hard way. I'm replicating a lot of functionalty in PHP. But at the same time I know that I'm not good enough to do so. And doing so costs time anyway. I would have probably finished his application in a quarter of the time using Django, heck, even Flask. And it might even hold up to industry standards. My PHP code not so much. Somebody would probably end up dead.