Live data from Hacker News

Ask HN: What web framework should I use nowadays?

news.ycombinator.com

11–20 of 50 posts

Re: Ask HN: What web framework should I use nowadays?

#11

Years ago I learned to code in PHP/MySQL, never really using a framework. I made some attempts to use CakePHP and Symfony but never liked them much. When I wanted to build my first big project, I looked for something like Rails in PHP but couldn't find anything. I did find Django, though, which looked cool. Since Python was more similar to PHP than Ruby, I learned Python and used Django. Eventually I found Django too…

I spent nearly 15 minutes on the parse website but still can't figure out what it does. All I see is that it's an open source version of the Parse API. But what is the Parse API? Since you've used it before, would you care to elaborate on what the Parse API does?

They were originally "backend as a service," basically a smart layer over mongo. They charged pretty obscene rates per request, but now it's all open source so no worries about that.

They provide a nice dashboard for creating Mongo collections (which they call Classes).

You write "cloud code" in JavaScript. You can write beforeSave and afterSave functions which are triggered before/after you save a document. You can also write "cloud functions" which execute within parse-server and interact with the database.

The result of this is that you can perform a lot of heavy lifting and consistency logic in one place, "the cloud." That way you can build clients in multiple languages (like an iOS app, Android app, web app) that only need to worry about their platform specific details.

Their original value prop was for building mobile apps, but since the ecosystem is pretty mature with a client in every language, I find the benefits extend to writing multiple clients for any purpose.

Re: Ask HN: What web framework should I use nowadays?

#12
post #8

Here is what I settled with for my website after trying a few things over the years. In the process I have discarded nodejs, JAX-RS, maven, Undertow, JQuery, bootstrap (partially) etc. Currently, pure java servlets serve json over REST-like API. The jar dependencies are servlet-api.jar, a couple of json-related jars and an sqlite jar. Multiple fine-grained sqlite files for data. Tomcat as the servlet container with n…

> A nodejs reverse proxy forks the API and static web requests between tomcat and another nodejs static webserver.

Just curious why you don't use nginx here. It will serve static files and proxy to the API. I'm sure the nodejs proxy was easy enough, but adding in gzipping files, rewrite rules, SSL, etc and it seems like nginx would even end up being more simple.

Re: Ask HN: What web framework should I use nowadays?

#13

Earlier quoted context omitted.

I spent nearly 15 minutes on the parse website but still can't figure out what it does. All I see is that it's an open source version of the Parse API. But what is the Parse API? Since you've used it before, would you care to elaborate on what the Parse API does?

They were originally "backend as a service," basically a smart layer over mongo. They charged pretty obscene rates per request, but now it's all open source so no worries about that. They provide a nice dashboard for creating Mongo collections (which they call Classes). You write "cloud code" in JavaScript. You can write beforeSave and afterSave functions which are triggered before/after you save a document. You can…

I'm curious: did you consider using Flask as a back-end, instead of parse-server? Is parse-server just easier than coding your own API back-end with Flask and whichever db you like?

Re: Ask HN: What web framework should I use nowadays?

#14
Your question would be easier to answer if you were to share something about your programming background, and your objectives.

e.g. how experienced are you, which languages do you use already, if any, and what do you want to do (get a job, build a particular thing, build multiple CRUD sites, ...)

Re: Ask HN: What web framework should I use nowadays?

#16

Earlier quoted context omitted.

They were originally "backend as a service," basically a smart layer over mongo. They charged pretty obscene rates per request, but now it's all open source so no worries about that. They provide a nice dashboard for creating Mongo collections (which they call Classes). You write "cloud code" in JavaScript. You can write beforeSave and afterSave functions which are triggered before/after you save a document. You can…

I'm curious: did you consider using Flask as a back-end, instead of parse-server? Is parse-server just easier than coding your own API back-end with Flask and whichever db you like?

No. That would effectively mean reimplementing all the logic of parse-server in flask. And when I was done doing that, I wouldn't have a client library in every language ready to interact with my backend.

Parse-server is definitely a faster way to start because it's already an API layer in front of the database.

Re: Ask HN: What web framework should I use nowadays?

#17
post #3

Which programming languages do you know? React is the most popular clients ide framework, Rails is still the most popular serverside.

Would be surprised if React was more popular than Angular 1.x, but it definitely has more traction than both 1.x and 2.

Re: Ask HN: What web framework should I use nowadays?

#19
post #8

Here is what I settled with for my website after trying a few things over the years. In the process I have discarded nodejs, JAX-RS, maven, Undertow, JQuery, bootstrap (partially) etc. Currently, pure java servlets serve json over REST-like API. The jar dependencies are servlet-api.jar, a couple of json-related jars and an sqlite jar. Multiple fine-grained sqlite files for data. Tomcat as the servlet container with n…

> A nodejs reverse proxy forks the API and static web requests between tomcat and another nodejs static webserver. Just curious why you don't use nginx here. It will serve static files and proxy to the API. I'm sure the nodejs proxy was easy enough, but adding in gzipping files, rewrite rules, SSL, etc and it seems like nginx would even end up being more simple.

NodeJS rev proxy allows custom logic after intercepting requests - all in javascript. Not sure if NGinx would allow that. But yes, I would probably move to Nginx in near future for its tomcat-like robustness.

Re: Ask HN: What web framework should I use nowadays?

#20
There is no best.

What I would recommend though is creating a webpage that is static and gets updated dynamically with angular/react/vue with a rest server like tomcat/flask/express with the database of your choise.

When i first found angular i loved it, I never really given react a fair chance and i have recently started to use vue.js which is great.

As a rest server i am using flask with flask-restplus because its simple and i like python.

As a database i use MongoDB because its easy to set up, i'm sure there's better alternatives but i don't runt anything on a bigger scale so I havn't put much thought into it.

Post reply on HN