Yes I'm not cool :P but when did I care about being cool...
Ask HN: What's your go-to back end for simple projects?
31–40 of 65 posts
Re: Ask HN: What's your go-to back end for simple projects?
#32apache2, php7.0, mysql-server, libapache2-mod-php7.0 and php7.0-mysql. Yes I'm not cool :P but when did I care about being cool...
Re: Ask HN: What's your go-to back end for simple projects?
#33Flask! 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 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 like a 10-page tutorial to build some frankenstein nonsense, Flask's homepage has a 5 line application! That's how Python is supposed to be.
The more flask in the world, the better.
edit: now I've read some other people here saying Django gets easier after you use it, or it's gotten simpler... Flask is easy the first time you use it, and it's always been simple. Pythonic. End rant.
Re: Ask HN: What's your go-to back end for simple projects?
#34Flask! 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.
Re: Ask HN: What's your go-to back end for simple projects?
#35Django Good solid base for quickly developing something quickly. Iterating on a database schema has never been easier since 1.7 the migration tools are built in and the ecosystem of plugins has lots of tools that make development of a prototype extremely easy. It just keeps on getting better, just the other day I found an plugin to automatically generate knockout.js powered AJAX forms without me having to write any o…
w..what plugin is that? I need that!
Re: Ask HN: What's your go-to back end for simple projects?
#36Re: Ask HN: What's your go-to back end for simple projects?
#37Nancyfx
Re: Ask HN: What's your go-to back end for simple projects?
#38When I'm prototyping, my data model is stored procs that return json structures to the templates. I use SQLAlchemy core to connect to the db and execute the procs.
A prototype like this is super fast to get running, it gives you a really clean app structure that you can hand off to pretty much anyone and have them work on features, if you're lucky enough to have a team. If not, it's pretty easy to keep it all in your head at once.
As things grow, you can replace components as you need to.
You start off rendering JSON anyway, so if you need a more advanced interface up front, you can use React or Angular or Ember to hook into the data model. Whatever you want, really.
If things get more complex on the backend first and you need more structure there, you can refactor the SQL (because it was probably really gross the first time you wrote those "dump everything" procs). If you end up with a really complicated data model, you may have to eat the performance hit and switch to Alchemy proper for maintainability. Either way, the choice is yours.
Sometimes the simple app is the one you need, and the biggest challenge is scaling quickly. That's easy too because the database handles transactions inside the procs. Run one instance of the app per core on your server and put them all behind nginx and repeat on as many machines as you need to cover your traffic needs behind HAProxy. Now you're maximizing multi-core performance per machine without having to write async/await code.
It's probably not for everyone, but I find it gives me an enormous amount of flexibility, scales well in every sense of the word, allows the app to develop organically, and has very few drawbacks.
Re: Ask HN: What's your go-to back end for simple projects?
#39Go with App Engine. There is a free tier and I've had projects running there for years.
Small hope/suggestion: I wish there was a free tier on Cloud SQL.
Re: Ask HN: What's your go-to back end for simple projects?
#40Google Firebase. As a front-end developer I just can't warrant the time setting up a backend, setting up a database, defining routes, handling authentication and the other nonsense that seemingly takes a solid day to get working. Firebase to me is the best choice for simple projects, I don't use anything else anymore.
Technical downside: backend processing and search & filtering are more involved.
Personal downside: Though I code in JavaScript, I'm no fan of it. Is there a good library in Go for it?