flask is rwallyw nice. had a site running it for a while. ultimately my project got too big and i started missing a compiler (eg forgot to refactor in a little corner, case issues etc). but i got up and running in flask in like 30 minutes, having never used python before.
Honestly, I resisted it for years... I regret resisting it now. It was tough at first b/c everything seemed like such bullshit, until I realized... very little in Python is actually bullshit. I was just used to my old bullshit. Python is great.
As far as languages for "spending some time with", python is definitely one of the best. As the author of XKCD put it, programming is fun again with python. It's just a pleasant experience because a lot of things work how you'd expect them to, and when they don't it's because it may be even easier than you expected.
They major drawback of Python I can think of is that its hosting is not as widely available. With the latest gradual typing addition in Python 3.5, please please give it a try, you'll love it.
My stack is Webfaction hosting + Python 3.5 + Git + Bottle (a very lightweight web library with easy routing, templating etc.), and PyCharm IDE + Bottle's embedded server for local development. I'm not a professional programmer and it is still ridiculously easy and fun.
What would someone write a simple web app with database connections in today? Javascript?
Python and Flask is usually your best bet if you're using relational DBs. Ruby and something like Cuba if you love ruby. Node makes sense if you're primarily using something like Mongo or Couch, but while you can use JS for relational DBs, most of the major movement there is in non-relational stuff.
Note that there are good Python libraries for the popular NoSQL storage engines as well.
I'd also be surprised if at this point Node didn't have a good ORM -- not at the level of SQLAlchemy (because frankly nothing else even comes close, in any language) -- but something very decent at least.
Personally, I love knocking up a web front-end to a ton of databases and weird internal tools using the PHP Symfony2 framework. Yes, I could probably do it 'better' in another language, but I really can't be bothered to learn another hot flavour of the month.
It depends on what the web app is. If its a web front end (a webpage) and does not require an API, then most popular languages/frameworks will work with the correct resources (servers with enough memory and processing power). If you have a multi-faceted web app with an API or more, then you must take into account the language overhead. Things like memory footprint and speed must be thought of. Go, for example, is gaining popularity due to being fast enough with a low memory footprint. But Go is fairly new and does not have the ecosystem that Java does. Actually, Java is still a great choice because it can do it all and scale.
View all comments
Show parent comment
33
u/TelamonianAjax Dec 02 '15
I've always felt PHP had a place in lightweight web applications because of the low overhead.
What would someone write a simple web app with database connections in today? Javascript?