Live data from Hacker News

Ask HN: Fastest/easiest framework to build a web application in 2020?

news.ycombinator.com

61–70 of 93 posts

Re: Ask HN: Fastest/easiest framework to build a web application in 2020?

#61

A lot of answers suggest a Node.js stack. I’d like to say that the problem with Node is that there isn’t really a “batteries included” stack you can choose from, unlike other languages. You can indeed use Express.js for the HTTP part, but you’ll need to pick an ORM, a rest framework, etc and make sure they integrate properly which might include writing “glue” code to bring them together. Unless you’re knowledgeable a…

Check out Graphile Starter; it’s extremely batteries included! https://github.com/graphile/starter

Re: Ask HN: Fastest/easiest framework to build a web application in 2020?

#62

Django. Nothing has ever surpassed Django for me. It is soooo much faster to prototype with than anything I've ever used (especially when you know all the amazing shortcuts, but that's not a requirement as their docs are incredibly good). It can do anything you could possibly want to do with a standard web app and if you really want to do crazy Javascript things you can always just use it as an extremely powerful bac…

How is deploying Django? Is it easy to integrate with Nginx or Apache? I know PHP is super easy but wasn't sure how it was for Python frameworks?

You run collectstatic to get all of your static assets in one folder, use gunicorn (python package, there are other options as well such as uwsgi) to serve your wsgi server, and have nginx in front of gunicorn to intercept anything with /static/* to pull from your static assets folder. This is all 3 or 4 lines of config in nginx.

Your first try might take a couple of hours to get right. If you want HTTPS (you should) Caddy might be a better route than nginx. It's certainly easier.

Re: Ask HN: Fastest/easiest framework to build a web application in 2020?

#64
post #52

If I may, I have a related question I'd like to ask. I'm a front-end developer looking to get serious about practicing my back-end development skills. Any recommendations for a language/framework with static typing (outside of Node + TS)? Spring Boot and Kotlin? .NET Core? Go?

I am in a very similar situation to you, I'm a full stack developer (slightly stronger at frontend) that used to do a lot of Ruby on Rails work, but I've been looking for a statically typed backend framework to specialise in. Hopefully some of my research / bike shedding / procrastination will be helpful to you :) I've been trying different backends to find the 'perfect' stack that's statically typed (spoiler: no sta…

Hey, thanks for the detailed reply!

Last night, I went through a lot of research and bikeshedding myself, and a lot of my intuitions aligned with your experiences.

I was curious about Go, but it seemed while it was possible to do mostly everything you wanted to do, it wasn't necessarily a smooth experience.

I looked at Kotlin next. I'd used Spring Boot before with Java, and at the time I was fond of the annotations, but, like you said, I've heard that they can become a burden in larger projects. Thankfully, I saw that there were a number of other Kotlin web frameworks that had vocal support.

Finally, I spent the last bit of my time choosing between C# (.NET Core) and Kotlin with Ktor something else. I ended up finding this very helpful site[1] that showed examples from the two languages side by side. That had settled it for me; C# just looked more like what I wanted out of a programming language's syntax. Plus, LINQ looks really cool.

At some point in the future, I'd also like to gain more comfort with Python and Django. I can't stop hearing good things about those two.

[1]https://ttu.github.io/kotlin-is-like-csharp/

Re: Ask HN: Fastest/easiest framework to build a web application in 2020?

#65

A lot of answers suggest a Node.js stack. I’d like to say that the problem with Node is that there isn’t really a “batteries included” stack you can choose from, unlike other languages. You can indeed use Express.js for the HTTP part, but you’ll need to pick an ORM, a rest framework, etc and make sure they integrate properly which might include writing “glue” code to bring them together. Unless you’re knowledgeable a…

Check out Graphile Starter; it’s extremely batteries included! https://github.com/graphile/starter

It is a great job to create an "starter" project.

However I would expect at this time of the JS to have one single import that does all the work for me hiding all the configuration files. Making good/best decisions for the default configuration. Also deciding how to do things like database connection, transactions, HTTP server, SSL, UI, ...

Re: Ask HN: Fastest/easiest framework to build a web application in 2020?

#66

Django. Nothing has ever surpassed Django for me. It is soooo much faster to prototype with than anything I've ever used (especially when you know all the amazing shortcuts, but that's not a requirement as their docs are incredibly good). It can do anything you could possibly want to do with a standard web app and if you really want to do crazy Javascript things you can always just use it as an extremely powerful bac…

How do you feel about implementing social authentication with Django Rest Framework? What are the packages you'd normally use?

Re: Ask HN: Fastest/easiest framework to build a web application in 2020?

#67
post #2

Still Django. It's in a weird state where it's starting to show its age, but everything else is at least 10 years away from catching up. So still the best bet if you're starting something new today.

How do you feel about implementing social authentication with Django Rest Framework? What are the packages you'd normally use?

Re: Ask HN: Fastest/easiest framework to build a web application in 2020?

#68
post #2

Still Django. It's in a weird state where it's starting to show its age, but everything else is at least 10 years away from catching up. So still the best bet if you're starting something new today.

How do you feel about implementing social authentication with Django Rest Framework? What are the packages you'd normally use?

I don't like social auth so I haven't used any of them. But there are several packages for that.

Re: Ask HN: Fastest/easiest framework to build a web application in 2020?

#69

Django. Nothing has ever surpassed Django for me. It is soooo much faster to prototype with than anything I've ever used (especially when you know all the amazing shortcuts, but that's not a requirement as their docs are incredibly good). It can do anything you could possibly want to do with a standard web app and if you really want to do crazy Javascript things you can always just use it as an extremely powerful bac…

How do you feel about implementing social authentication with Django Rest Framework? What are the packages you'd normally use?

I just lost the whole explanation I was about to send because Android is really stupid sometimes, so here's the short version:

Most social auth uses OAuth2, which doesn't exactly make sense with REST, but you can still use it alongside a REST-based app.

I see 4 scenarios:

1. A JS web app that uses SessionAuthentication can just use python-social-auth's Django app directly. Since the session is shared, it should Just Work™.

2. A JS web app that uses tokens: django-rest-framework-social-oauth2 seems to be made for this, but you could also do it with plain python-social-auth (which the former uses internally) by generating a token on your /success URL and sticking it into localStorage.

3. A non-web app that uses tokens: like number 2, but in a WebView.

4. A non-web app that uses sessions: like number 1, but copy your cookies into a WebView, do authenticate in there, then copy the cookies back.

Post reply on HN