6

Does anyone have an alternative web framework mostly for an API? Much appreciated if Graphql out of the box.

One "pillar" of Rails is that it's done to optimize programmer happiness. My experience with Rails turned out to be true in that sense.

I was wondering if there's an alternative that could emulate that experience.

Comments
  • 3
    Is there a particular reason as to the change from Rails? I mean, if you arr happy with it and you know it, why change?
  • 2
    May I ask you why does Rails give this kind of experience? It's not the first time I hear about this and I'm curious
  • 1
    @AleCx04 just a few reasons, not too many:

    * the throughput is kinda low
    * async in ruby is not as easy as in js
    * rails is server side MVC, which I'm not too interested in right now, since I can use server side vue.
  • 2
    @dmonkey I honestly don't know where to start.

    I guess I could say that Rails is the ultimate out of the box web MVC experience. And the API is one of the easiest to understand and yet powerful I've ever seen.
    There are little aspects of an MVC that it doesn't pull off in an awesome and simple way:

    * Code generation
    * db schema generation
    * Unit, integration and system tests
    * Sensible config defaults
    * Jesus christ, the rails helpers pretty much thought of any real use case possible.
    * The holy console that lets you mutate the data right from a terminal.
    * Translation ready to customize
    * The gems (think of node's npm) are simply AMAZING.

    Rails is written in Ruby, a language with the prettiest and featureful standard library I've seen.

    When you see Rails/Ruby you usually understand what methods do in glances, because ruby people tend to have high standards when it comes to writing code. They like their methods short and tested.
  • 0
    @erandria what does being able to use ssr have to do with an architecture pattern? Rails obviously has server side rendering as well. And since it has proper concurrency support you can use threads, which for Ruby they do not block web requests == performance.

    And you don't even need to use Rails, you can go for Padrino or Sinatra.

    If you are hell bent on using something else and you are already familiar with Javascript. Why not stick to a JS solution? Koa is really great, super minimalistic and easy to use. There is also Nest, which provides a more established solution with generators, it does; however, use Typescript for its dev language.
Add Comment