Live data from Hacker News

Ask HN: Best web framework in 2018

news.ycombinator.com

11–20 of 41 posts

Re: Ask HN: Best web framework in 2018

#11
Same answer as the many years before: Rails, Django, or .NET.

Anything else and you're making serious tradeoffs on mindshare, features, or something else.

Of those 3, I know Rails has good realtime support via ActionCable.

Re: Ask HN: Best web framework in 2018

#12
I'm a Rails guy through and through, but I'll echo what many other commenters have said: stick with what you know. Trying out new frameworks, languagues, technology stacks, etc. is great for side projects. But if you're seriously trying to get a new startup product off the ground and to MVP status quickly, the last thing you need to worry about is the headache of dealing with all sorts of new technology puzzle pieces. At the end of the day, your users won't care if you coded the app in Ruby or Python or Javascript or Go. They'll care if the app is good and meets their needs.

Re: Ask HN: Best web framework in 2018

#14
To answer your NodeJS question, express is a popular framework for API development and many databases are supported, https://expressjs.com/en/guide/database-integration.html.

I use sailsJS in my day job which is built on top of expressJS, and it does everything you want out of the box for GET, POST, PUT and DELETE simply by adding a model file and configuring the MongoDB connection string. It also has standard functionality with it such as logging, session, authorization, BUT you have to spend time learning how it works with sailsJS. Therefore it is much easier to start at a lower level framework like express and add high quality functionality modules as you need it, such as expressJS and adding your favorite logging/apm module like New Relic.

I've done .NET, Python and now I'm doing Node at work. By far, Node is my favorite because it always just works. I develop on Windows 10 and deploy using Ubuntu 16 docker images. I use mssql node module and it has just worked in both OSs. The only cross platform issue, with Node, I've had was that file names are case sensitive in Linux but not Windows.

For UI development, that's another beast. I wrote an Angular 5 application recently but I don't like it. Vue and possibly React look simpler.

Re: Ask HN: Best web framework in 2018

#16
post #13

Unpopular opinion, but Rails with server side rendered ERB templates are quite quick to get started with. The convention over configuration philosophy gives a lot of things out of the box.

https://www.youtube.com/watch?v=SWEts0rlezA

if you haven't seen Sam Stephenson Turbolink talk from RailsConf 2016, you should give it a watch. What they did in a year with a small team is amazing.

Re: Ask HN: Best web framework in 2018

#17
post #10

There are many good frameworks out there that are a viable choice. The main reason should be the people you want to hire and how you structure your team. Also, you need to consider if you need high performance or data science Rails - good choice to start off. Fast to bootstrap a product. If you do not need high performance, you can get old with it otherwise, you will move. Java Spring - a lot of people know Java Pyth…

Iris has a lot of drama behind it, and the author seems to be slightly unstable (for lack of a better word). See https://www.reddit.com/r/golang/comments/57tmp1/why_you_shou...

I would recommend labstack/echo or go-gonic/gin as alternatives, chi if you're looking for something more minimal.

Re: Ask HN: Best web framework in 2018

#19
post #11

Same answer as the many years before: Rails, Django, or .NET. Anything else and you're making serious tradeoffs on mindshare, features, or something else. Of those 3, I know Rails has good realtime support via ActionCable.

I like Rails, but calling ActionCable good realtime support is being a bit generous, no?

I was under the impression that scaling ActionCable beyond 1k/users per server was pretty difficult.

Re: Ask HN: Best web framework in 2018

#20
I'd say rails because the nodejs + PHP codebases I've seen aged poorly, but the rails one are still clean. The problem with node is that things move too fast. What was beautiful in JS 4 years ago now looks like legacy mainframe fortran. Laravel (a popular php framework) is nice at one point in time, but even 0.x.0 migrations will break you application and force you to work for hours...
Post reply on HN