Live data from Hacker News

I Miss Rails

chanind.github.io

61–70 of 522 posts

Re: I Miss Rails

#61
I recently started working with Django after not using it for almost 10 years. It's really wonderful how nice it is to get projects up and running so fast, and the Python community is stronger than ever. There are many integrations with modern tools like Cognito and Stripe, and it automatically turns my model definitions into an admin interface and REST API (with django-rest-framework). I think I'll be sticking with it for a while.

Re: I Miss Rails

#62

> if the modern equivalent of Rails already exists, please let me know! You're in luck. Rails 5.2.3 was released 20 hours ago. More seriously, I feel rails is still excellent and I'm happy to work with it every day. I'd be interested to hear more about what makes rails not modern? I find it a very productive framework. EDIT: If you're talking about missing a JS equivalent of rails, do you know about Loopback? https:/…

Speaking of JS, do you guys have a suggestion for good SQL querybuilder and maybe a migration tool for Node? I prefer to do everything else by hand or use smaller libraries.

Not that i don't know how to write SQL queries by hand, it's just raw SQL queries with conditions is just ugly.

Re: I Miss Rails

#63
I really have no horse in this race, but I would like to know what the argument FOR React+Redux+GraphQL is for developing apps in 2019.

Is it that we need to offer offline clients to meet user expectations?

Better raw performance on the front end?

Cheaper server costs or easier to deploy serverlessly?

For the progressive enhancement of your resume?

Re: I Miss Rails

#64
post #50

I'll take a mildly unpopular opinion and say that I really despise code-gen-style web frameworks, like Rails or ASP.NET MVC or Django, and would rather reinvent the wheel than use them. I definitely see the appeal of these frameworks, but I feel that a side effect of having them is that there's a metric ton of code generated and you really have no idea how it works. I remember spending almost 30 minutes digging throu…

I feel like as a collective set of industries across development and security we have been telling people for years not to reinvent the wheel because it's easier to stand on the shoulders of giants. Despite this, there seems to be an increasing push (from, for example, Go programmers) to go back to DIY. Is this not tearing away all the work we've done to stop people building their own auth, their own crypto, their own file read/write mechanisms and use ones that are battle-tested and safe?

Re: I Miss Rails

#65

> if the modern equivalent of Rails already exists, please let me know! You're in luck. Rails 5.2.3 was released 20 hours ago. More seriously, I feel rails is still excellent and I'm happy to work with it every day. I'd be interested to hear more about what makes rails not modern? I find it a very productive framework. EDIT: If you're talking about missing a JS equivalent of rails, do you know about Loopback? https:/…

Speaking of JS, do you guys have a suggestion for good SQL querybuilder and maybe a migration tool for Node? I prefer to do everything else by hand or use smaller libraries. Not that i don't know how to write SQL queries by hand, it's just raw SQL queries with conditions is just ugly.

I've been satisfied with Knex.js. It handles query building, transactions, connection pooling and migrations

https://knexjs.org/

Re: I Miss Rails

#66

> if the modern equivalent of Rails already exists, please let me know! You're in luck. Rails 5.2.3 was released 20 hours ago. More seriously, I feel rails is still excellent and I'm happy to work with it every day. I'd be interested to hear more about what makes rails not modern? I find it a very productive framework. EDIT: If you're talking about missing a JS equivalent of rails, do you know about Loopback? https:/…

Sails.js [1] is a good JS equivalent of rails.

https://sailsjs.com/

Re: I Miss Rails

#67
As a front-end developer I hated Rails, every day was a struggle working with the project, it was so slow. It was around 4 years ago and I was using top of the line Macbook Pro.

Our project wasn't badly written, it was just that slow. Is it better today?

I somehow ended up working with PHP-based back-ends but for smaller projects and I sometimes miss Rails, because Docker for Mac...

Re: I Miss Rails

#68
Here's how i replace Rails with the "modern stack":

- Compile Graphql schema into Typescript typings + Fragments for "Active Record"

- React Hooks as controllers action.

- React Suspense for HTML rendering.

- Apollo for graphql caching

- ExpressJS for middlewares.

- @reach/router for routing.

- @loadable/component for code splitting.

- Serverless for API.

I missed Rails, too. But i found that the "modern stack" is not bad at all. It just needs more time to investigate to find out the best way to reuse features.

Re: I Miss Rails

#69
> There’s no longer a standardized way to get user accounts with a login/signup, [...] so instead we need to spend days rewriting this functionality anew on each project

I don't think that ever existed "THE standard way" to build web applications. At the same time Rails was trend, for a lot of people the "standard way" to build web systems was write it from scratch in PHP.

Re: I Miss Rails

#70
post #66

> if the modern equivalent of Rails already exists, please let me know! You're in luck. Rails 5.2.3 was released 20 hours ago. More seriously, I feel rails is still excellent and I'm happy to work with it every day. I'd be interested to hear more about what makes rails not modern? I find it a very productive framework. EDIT: If you're talking about missing a JS equivalent of rails, do you know about Loopback? https:/…

Sails.js [1] is a good JS equivalent of rails. https://sailsjs.com/

Did you try it or maybe even use it? I tried Sails a year ago but the learning curve felt really steep and it wasn't super popular at that time :(
Post reply on HN