Live data from Hacker News

Ask HN: What's your go-to back end for simple projects?

news.ycombinator.com

51–60 of 65 posts

Re: Ask HN: What's your go-to back end for simple projects?

#51
post #18

Flask! It's Pythonic and good. Once you've done a couple of Flask projects, you can spin up a new microservice in a couple of hours. It's much lighter weight than Django, so it forces you to keep fewer moving parts in your head while hacking. http://flask.pocoo.org/ Lately, I've been using Flask on the back-end, and React on the front-end.

I keep thinking I'll learn Django, but I hate Django, why would I want to build a skill that I'm then forced to use, as well as proliferating the market for Django products? I work on Flask stuff on purpose, because it means in the future I'll have more Flask work... Flask is much more pythonic than django. In fact, go look at Django's website/documentation, they don't have a hello world or a quickstart, they have li…

You could write Hello World the same way in Django with nothing more than one route and one view. However, the Django tutorial is longer, I think 6 pages, because it provides so much more out of the box. The Flask tutorial would be the same length if it covered topics like a variety of views, templates, serialization, SQLAlchemy, migrations, model design, etc.

Flask actually has a tutorial just like this in the docs [1].

I think you should give Django a chance to be able to compare the two frameworks in these kinds of aspects.

[1]: http://flask.pocoo.org/docs/0.11/tutorial/

Re: Ask HN: What's your go-to back end for simple projects?

#56
ASP.NET deploying to Azure, if you're into the ecosystem it can't get much simpler than that (a web page up an running in minutes).

It's now cross-platform and there's an Azure free tier.

Of course, other people can get similar productivity within their own most familiar stacks :) (someone mentioned an hour for a similar setup with Rails)

Re: Ask HN: What's your go-to back end for simple projects?

#57
post #18

Flask! It's Pythonic and good. Once you've done a couple of Flask projects, you can spin up a new microservice in a couple of hours. It's much lighter weight than Django, so it forces you to keep fewer moving parts in your head while hacking. http://flask.pocoo.org/ Lately, I've been using Flask on the back-end, and React on the front-end.

I love Flask. I'm not a professional but for hobby projects I find it very easy to use. I have a template now and I can get a basic backend going in 30 mins.

For more serious projects, we use Flask for big commercial products and work and it's very good. Unlike some other tools, what I like about it is that it's very easy to look at the code in a Flask project and immediately understand what is going on.

Re: Ask HN: What's your go-to back end for simple projects?

#60
post #28

I guess I'm old school. For simple projects I still use Perl with CGI.pm and a flat file database that stores data in CGI.pm's "name=value" format in a text file. If I need templates I'll add "HTML:Template", for email I'll add "Mail::Sendmail", et cetera, to my perl cgi script.

Nice to see more Perl here.

I too use Perl for most applications. These days I mostly use CGI::Application, which is great, although I've started to experiment with using Dancer (which is kinda like Ruby's sinatra framework) with success.

Post reply on HN