TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What lang and web stack is both popular and similar to Ruby and Rails?

26 点作者 philonoist超过 6 年前
By lang, I mean language.<p>I need that monk like enlightenment which Ruby and Rails have given me.<p>By popularity, I mean adoption at industry wide and scalable.

17 条评论

collyw超过 6 年前
Django &#x2F; Python sounds like the obvious answer. Almost every comparison between Rails and Django I have read seems to rate them fairly evenly.
评论 #18888643 未加载
评论 #18885630 未加载
mixedCase超过 6 年前
&gt; I need that monk like enlightenment which Ruby and Rails have given me.<p>Then I suggest you scratch both the &quot;popular&quot; and &quot;similar to Ruby and Rails&quot; requirements. When you do that, you have things available to you such as Elm and Reason (with ReasonReact) for the frontend and F#&#x2F;Haskell&#x2F;Scala on the backend.<p>Popular will tend to the lowest common denominator, and similar to what you already know means you won&#x27;t gain much if at all :)
评论 #18888603 未加载
评论 #18883690 未加载
mtmail超过 6 年前
<a href="https:&#x2F;&#x2F;laravel.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;laravel.com&#x2F;</a> (PHP) will remind you of Rails. Even the directory structure.
评论 #18885137 未加载
评论 #18884002 未加载
评论 #18885328 未加载
评论 #18886449 未加载
WorldMaker超过 6 年前
If you are looking for something that gives you a very similar feeling to something you already know&#x2F;love&#x2F;use, you are likely to find yourself disappointed. Or at the very least, without a good reason motivating you to leave Ruby&#x2F;Rails, you&#x27;ll just find yourself returning quickly.<p>It might be more interesting to ask &quot;what is nothing like Ruby and Rails?&quot; to push yourself to learn something new that&#x27;s entirely different, can give you new feelings.<p>If you are interested in exploring truly new things, there&#x27;s a lot of interesting stuff happening in Universal or Isomorphic JS space (both names are basically for the same thing, and about equally common in usage), some of which becomes <i>very</i> different from the traditional Rails approach to a web backend. (Also, there&#x27;s a lot of interesting variety in language options from transpiling ES2018 or ESNext to Typescript to increasingly more obscure transpiles to JS languages. I recommend Typescript as the best place to be, for what that is worth, but you&#x27;ll get a bunch of other opinions pretty easily.) It could be useful experiencing some of that, and get a very different experience from just &quot;Rails but in a another language&quot;. Server-side React seems to be getting increasingly popular, and the GraphQL approach to database work can be very different from a traditional ORM approach like ActiveRecord.
tylerpachal超过 6 年前
You should try Elixir and Phoenix.<p>Phoenix is similar enough to Rails that you won&#x27;t feel totally lost, while using Elixir will teach you about functional programming and actor systems.
1ba9115454超过 6 年前
<a href="https:&#x2F;&#x2F;luckyframework.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;luckyframework.org&#x2F;</a><p>Lucky uses crystal, you get all the benefits you are used to with rails, i.e. migrations, models views etc.<p>The main benefit is that crystal is a compiled language and is type safe. So you get to use all your ruby skills and the compiler adds a whole new level of safety to your code.<p><a href="https:&#x2F;&#x2F;crystal-lang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;crystal-lang.org&#x2F;</a>
评论 #18885109 未加载
didgeoridoo超过 6 年前
Scala&#x2F;Play<p>Python&#x2F;Django<p>Groovy&#x2F;Grails<p>Elixir&#x2F;Phoenix is far less popular, but very fun and gaining steam.
评论 #18884044 未加载
评论 #18890421 未加载
owaislone超过 6 年前
Most similar is Django&#x2F;Python. Nothing even comes close to RoR <i>and</i> Ruby in similarity than Django and Python. The languages are very very similar to one another. The framework less so in smaller ways but very similar overall.
quickthrower2超过 6 年前
Rails, or in other words Web MVC is the most copied paradigm I’ve seen. Pick almost any modern language and there will be an MVC web stack for it.<p>I’d pick Node JS given that most web devs end up having to use Node anyway even if just as a build pipeline. Knowing Node better will always be useful. Also the dynamic typing will feel at home for a Ruby dev, and if you want to use types then try Typescript. If you want to go functional there is Purescript, Reason etc. All compile to JS so you can use on Node.
jon-wood超过 6 年前
I’m not really sure what you’re aiming for here, but if you want something similar to Rails but with a different approach take a look at Phoenix on top of Elixir.
nik736超过 6 年前
Why do you want to switch? There are frameworks for other languages, but they are not really better.
评论 #18893099 未加载
评论 #18891493 未加载
chuckgreenman超过 6 年前
For writing APIs, Echo and Go are pretty great. Then write your site or app as a one pager in angular or react.<p>Many huge sites are running on rails though, so switching to a new framework isn&#x27;t going to give you automatic &quot;scale&quot;. I&#x27;d recommend reading this post which summarizes a re:Invent presentation about scaling to 10 million users on AWS <a href="http:&#x2F;&#x2F;highscalability.com&#x2F;blog&#x2F;2016&#x2F;1&#x2F;11&#x2F;a-beginners-guide-to-scaling-to-11-million-users-on-amazons.html" rel="nofollow">http:&#x2F;&#x2F;highscalability.com&#x2F;blog&#x2F;2016&#x2F;1&#x2F;11&#x2F;a-beginners-guide-...</a>
sparkling超过 6 年前
Python + Django<p>But i really don&#x27;t see the benefit of learning that stack when you already know Ruby+Rails. They are veryyy similar and unless your absolutely need some special Python library, it is simply a matter of personal preference.
评论 #18889721 未加载
davidjnelson超过 6 年前
I’ve been thinking about this too. React_on_rails makes react really nice with rails for universal rendering.<p>It seems a pretty great framework similar to rails could be assembled out of typescript, next.js, react, typeorm, webpack, ant design, terraform, postgres, cloudflare workers, cloudflare key value store, rds and by adding model and view generators, plus project and crud scaffolds.
vfclists超过 6 年前
Wouldn&#x27;t that be Elixir and Phoenix?<p>Not so popular, but a number of those who have made the switch swear by it.
apexkid超过 6 年前
So no java fans out here? I used Spring Boot in production. It is high performant, super configurable and with lot of community support.
tuesdayrain超过 6 年前
JavaScript&#x2F;Gatsby