News for hackers. Stuff that matters.
Re:Why I believe Rails is still relevant in 2019 by rememberlenny on Tuesday March 19, 2019 @01:46AM (#19428387)
As an individual developer, I don’t know a platform and framework that lets me do more with my time. I used rails recently for a new project to act both as the backend for an iOS app, an auth management system, a asynchronous worker manager, an upload manaager, and BI tool.

Combined with the mature gem ecosystem and clear mechanics for putting everything together, I was up and running immediately, and was able to continue adding features and refining without issues.

Re:Why I believe Rails is still relevant in 2019 by yedpodtrzitko on Tuesday March 19, 2019 @02:03AM (#19428445)
I replaced `rails` with `Django` in your statement (and maybe could do the same with Node.js), and it reads the same. Guess it's just about being familiar with a mature ecosystem you already know, and then you can achieve results.
Re:Why I believe Rails is still relevant in 2019 by nahtnam on Tuesday March 19, 2019 @02:41AM (#19428596)
You could also replace it with Laravel, or any other framework. What I've found is that if you want to be productive, stick with what you know. Don't try to solve problems you don't/probably won't have.
Re:Why I believe Rails is still relevant in 2019 by jypepin on Tuesday March 19, 2019 @03:33AM (#19428808)
Agreed. Although I do Rails and have no experience with Django I know Django is the same.

To my knowledge tho, I do believe those are the only 2 framework that offer so many plug-and-play, trustable component for everything, allowing you to be up and running so fast.

I've built similarly large systems both with rails, flask and nodejs. Nodejs environment was definitely the worst, on every front, and I coming back to something like Rails always feels like I have so much more power.

Re:Why I believe Rails is still relevant in 2019 by ramraj07 on Tuesday March 19, 2019 @07:13AM (#19429738)
As someone who's built a few apps in flask that have gotten quite big (but still maintenable), I am curious to get your perspective on how big a difference Rails gives - I have explored ASP.net and Django as options before for projects and immediately (probably out of naivete) concluded that even for simple apps I'll have to start modding the behavior of the components sufficiently enough that it will give me a headache.

Hence I have generally stuck to using Flask and just quickly building a custom version of any component that doesn't directly cause any security issues. Thoughts? Am I wasting my time ?

Re:Why I believe Rails is still relevant in 2019 by pmontra on Tuesday March 19, 2019 @07:54AM (#19429947)
Coming from Rails, I spent some time with Django and Flask applications in the last few years. There are noticeable differences between the two of them but both are much lower level than Rails. The developer has more choices and can make more mistakes. Projects can look totally different. On the other side all Rails projects look pretty much the same and this make onboarding much simpler.

To answer your question: you're probably wasting customer's money (unless you're the customer) by implementing your custom components. You should use as many existing components as you can find: they are probably better engineered (dozens of teams at work vs one person - that included bug reports), better documented and maintained and will live longer. Then you have to adapt much like we adapt buying stock cloths, furniture, etc. But it's cheaper, faster to deliver and usually good enough.

Re:Why I believe Rails is still relevant in 2019 by jypepin on Tuesday March 19, 2019 @09:08AM (#19430392)
basically less available gem/packages for Flask, and when available less quality or less plug and play.

The difference is felt especially when doing basic stuff that most web app needs such as auth, routings, request/response parsing/building, etc.

Even for things like user authentication system with session management, etc. in Rails with Devise you add Devise to your gem file (1 loc) then run `rails generate devise:install` and you basically have an auth system with sessions, login, etc. We are talking a few minutes and boom, your app has a fully auth system.

Re:Why I believe Rails is still relevant in 2019 by KurtMueller on Tuesday March 19, 2019 @10:53AM (#19431325)
> To my knowledge tho, I do believe those are the only 2 framework that offer so many plug-and-play, trustable component for everything, allowing you to be up and running so fast.

asp.net? I'm asking because I don't know.

Re:Why I believe Rails is still relevant in 2019 by danmaz74 on Tuesday March 19, 2019 @05:19AM (#19429239)
From my experience, it really wouldn't read the same with Node.js. Maybe some framework on top of Node could reach a similar level of productivity and maintainability, but for now we're far from that.

I suspect that the JS world being always in a state of flux doesn't help reaching that goal.

Re:Why I believe Rails is still relevant in 2019 by gumcreme on Tuesday March 19, 2019 @07:59AM (#19429971)
> a asynchronous worker manager

something you don't need anymore with a modern stack

> an upload manager, and BI tool

standard stuff every other ecosystem has

> mature gem ecosystem

missing essentials like stable http/2 and full of unmaintained gems

Re:Why I believe Rails is still relevant in 2019 by rememberlenny on Tuesday March 19, 2019 @02:00PM (#19433540)
Just to share for anyone interested in the Rails gems I'm using.

An asynchronous worker manager is helpful for handling cron jobs, mail tasks, and various batch processes that can be loaded into memory (mostly Redis) but processed later.

I use the gem Sidekiq which, as is, provides a UI and API that I rely heavily on. I might just not know the best practices, but I definitely find this valuable.

The BI tools are not something found in most ecosystems. Not to mention dead simple setup. I use two gems, Ahoy and Blazer, which together provide a simple API for event tracking and saving database queries.

[1]: https://sidekiq.org/

[2]: https://github.com/ankane/ahoy

[3]: https://github.com/ankane/blazer

Re:Why I believe Rails is still relevant in 2019 by gumcreme on Tuesday March 19, 2019 @02:32PM (#19433975)
I know what an async worker and what sidekiq is. But apparently you don't know that in modern stacks you don't need this anymore and it was an oddity because of RoR.

I am on mobile and don't have time to write down why, please just go to StackOverflow and ask people why something like Sidekiq is not needed in stack x.

Re:Why I believe Rails is still relevant in 2019 by qnsi on Tuesday March 19, 2019 @02:52PM (#19434262)
What stack would you recommend if not rails? Serious question with no malice
Re:Why I believe Rails is still relevant in 2019 by nitrogen on Wednesday March 20, 2019 @01:39AM (#19439322)
I'm currently working in the JVM and find myself wishing I had Sidekiq. Learn at least two stacks to some degree so you can contrast and know what you are missing when you inevitably have to learn a third and a fourth and a fifth.