Live data from Hacker News

Ask HN: What web framework do you use? Why did you choose it?

news.ycombinator.com

101–110 of 122 posts

Re: Ask HN: What web framework do you use? Why did you choose it?

#102

I'm pretty sure I'll be minority here, but I don't use any backend framework for page rendering. All my apps are pure SPAs. They render all the screen content themselves on the client and only query servers for data. I prefer this, because I can simply take any app and deploy it to server just by copying its files. I only need to scale API servers and I don't have think about app scaling, because just single instance…

#Baller

Re: Ask HN: What web framework do you use? Why did you choose it?

#103
post #37
post #29

Earlier quoted context omitted.

But you cant compare Wordpress with Django, Wordpress is not a web framework is just a CMS for blogs. Or am i wrong? PS... Django <3

I have done little Wordpress development (just some plugin for a prototype that my company wanted). But I don't see anything that prevented it from being used to develop a web application since the theme/plugin system seems to fulfill everything. Django also describes itself as a CMS platform on their website so I kind of thought they are comparable. Just wanted to make sure I know what I'm getting before I jumps in…

If you're tied to wordpress, I'd take a look at laravel it's built in php, has the largest community as far as PHP frameworks go, and you can literally build anything, and incorporate packages from packagist, etc... Wordpress is slow, has a HUGE codebase and you can't really control it as granularly as you can a fresh laravel app.

Re: Ask HN: What web framework do you use? Why did you choose it?

#104

I'm pretty sure I'll be minority here, but I don't use any backend framework for page rendering. All my apps are pure SPAs. They render all the screen content themselves on the client and only query servers for data. I prefer this, because I can simply take any app and deploy it to server just by copying its files. I only need to scale API servers and I don't have think about app scaling, because just single instance…

That API backend is often a Node, Python, RoR webapp. JSON output instead of HTML doesn't make much difference, only the views/templates (pick your framework's name) are different. The other code is the same.

But in some cases a SPA let's you go to a different route to Parse or Firebase backends, or Lambda/Functions. That's different.

Re: Ask HN: What web framework do you use? Why did you choose it?

#105

I have recently switched from flask + psycopg to sanic + asyncpg for my http APIs. I'm pretty happy with the results and the transition was pretty smooth, it only took a day each to switch out each and go from fully synchronis to fully asynchronous.

I'm considering switching from Flask to Sanic, but I worry about Sanic's ecosystem. For example, I'm using these Flask plugins: Flask-Cache, Flask-Compress, Flask-DebugToolbar, Flask-DebugToolbar-LineProfilerPanel, Flask-Login, Flask-WTF.

Re: Ask HN: What web framework do you use? Why did you choose it?

#106

I have recently switched from flask + psycopg to sanic + asyncpg for my http APIs. I'm pretty happy with the results and the transition was pretty smooth, it only took a day each to switch out each and go from fully synchronis to fully asynchronous.

I'm considering switching from Flask to Sanic, but I worry about Sanic's ecosystem. For example, I'm using these Flask plugins: ``` Flask-Cache Flask-Compress Flask-DebugToolbar Flask-DebugToolbar-LineProfilerPanel Flask-Login Flask-WTF ```

Re: Ask HN: What web framework do you use? Why did you choose it?

#108

Phoenix, for a lot of the same reasons I used to have for Rails including: * Fast development cycle * Conventional * Great community * Good ecosystem of libs to take advantage of * "Magic" (although Phoenix's magic is much different) And some of it's own like * Great concurrency (which feels like a free win over Rails) * Functional programming * How Ecto, the ORM works * How simple it is, even with the "magic" includ…

I'm starting a project in Phoenix in the next week or so and am excited. I have done little web work and what I have done was using ASP.NET MVC so it is different than what I'm used to.

Re: Ask HN: What web framework do you use? Why did you choose it?

#109
Flask. Mainly because I do a lot of different things with web frameworks. Sometimes I'm serving a straightforward web page, sometimes I'm querying a database and rendering a template, other times I'm wiring up a json API, and other times I might be doing some weird data analysis before sending results to a dashboard template. Some of my URLs require three lines of code, some require three hundred.

In Flask, an endpoint is just a Python function, and most importantly, the URL endpoint is right next to the function declaration, so you don't have to keep track of two or three things in two or three different files. (Though the template is a separate file, of course.) To do something new just add an endpoint and a function; and most IDEs let you collapse/hide the function's code when you don't want to look at it, so it's as "clean" as it is flexible, if not elegant.

Re: Ask HN: What web framework do you use? Why did you choose it?

#110
post #96
post #77

Earlier quoted context omitted.

Is using Javascript on the back end really a positive thing? There isn't really a choice on the front end.

This is the main criticism of Javascript on the backend. People didn't have choice on the frontend (and largely still don't unless you transpile), and for some reason people thought it was a good idea to bring this "language of necessity" to the backend. There are plenty of better solutions like PHP, Ruby or Perl.

I think the reason for bringing JS to the backend is that you have to learn it anyway for the front-end, so why not save developers from having to learn two languages. One language = easier learning curve. At least in theory, it sounds reasonable.
Post reply on HN