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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

DHH answers: What makes Rails a framework worth learning in 2017?

200 点作者 gavingmiller超过 8 年前

23 条评论

meesterdude超过 8 年前
This reinforces what I see a lot too - people creating yet another XYZ, but rarely I see someone go and create an integrated solution to streamline development processes or make things easier or clearer.<p>There are a lot of vocal people who make it seem like you should be doing everything in Go or Angular or what have you, but I want nothing to do with either, and do not have problems that those are meant to solve. I love ruby, and I love rails.<p>DHH regularly sounds the drum of rationality - in a community at large of idealists and extremists. He is the reason I got into programming, and constantly serves to remind me that what I&#x27;m doing is, in fact, perfectly fine; and that everyone else puts up with a lot of nonsense for no great reason.<p>There are other frameworks out there, but you&#x27;d be hard pressed to find one with a leader that has such a sense of direction and reason for why the framework does what it does, and does not.
评论 #13476631 未加载
评论 #13476891 未加载
评论 #13476468 未加载
评论 #13476951 未加载
vinhboy超过 8 年前
&gt; formalizing conventions, eliminating valueless choices, and offering a full-stack framework that provides great defaults for anyone who wants to create a complete application<p>Maybe I&#x27;ve drank the kool-aid too much, but I agree with this whole-heartedly.<p>It reminds me of when I want to paint a room. I can go to Home Depot and spend an hour picking out all the tools I need, or I can buy one of those pre-packed toolkit and get to the actual painting immediately.<p>Rails + Heroku = My product will be ready to demo by end of the week.<p>Obviously this mentality only applies to people like me who wants to get things done quickly. People who value craftsmanship and specificity should do what pleases them. (That&#x27;s not to say you can&#x27;t do quality work with pre-packed toolkits)
评论 #13476417 未加载
评论 #13477030 未加载
throwanem超过 8 年前
Rails showed us all that web development didn&#x27;t have to be PHP and Apache and constant headaches. Node and Phoenix and the modern paradigm in general wouldn&#x27;t have come into existence, or achieved the popularity they have, without an act like Rails to follow. That&#x27;s awesome, and I respect it for that.<p>But can it truly be said that Rails has a purpose today? Its default performance remains lousy with any kind of load. Its convention-first approach means Rails knowledge doesn&#x27;t easily generalize, as can be seen in this very comment thread from the experience of those who&#x27;ve approached the Node ecosystem as though it were &quot;Javascript on Rails&quot;. The &quot;history? what history?&quot; attitude of its BDFL and his clique makes cause for trepidation out of the prospect of maintaining a Rails app over a significant length of time. And even by comparison with ES5, Ruby is a hot mess.<p>I get that DHH has to defend it. It&#x27;s his baby, after all. But it&#x27;s been a long time indeed since Rails had anything unique to offer beyond an ideology which is, in its own way, every bit as much a straitjacket as RMS&#x27; - and Rails&#x27; inheritors have innovated in ways that straitjacket makes it very hard at best for Rails to match.
评论 #13477092 未加载
eranation超过 8 年前
I completely agree on one aspect, anywhere I go, the kitchen sink is missing. You want to compress responses? well, there is an npm &#x2F; jar &#x2F; pip library for that. Want to have ORM? just npm &#x2F; pip &#x2F; &quot;your package manager here&quot; and you are done.<p>You can say a lot about Rails but I like the idea that everything I commonly need as a web developer is most likely already in the framework, and there is usually a best practice way to do things. Options are great, but moving out of plumbing and into generating value to customers is still having a value.<p>If you don&#x27;t like opinionated, batteries included solutions then Rails is not for you.<p>However there are other solutions that kind-of cloned some aspects of Rails. Playframework (Scala has a lot more similarities to Ruby IMHO than to Java, at least in philosophy). Also Spring Boot or JHipster (Spring boot + Yeoman - super opinionated)
bobbytherobot超过 8 年前
Maybe Rails has changed from when I last used it five years ago, but I dealt with many of the issues DHH makes against other technology.<p>&gt; That people spent hours, if not days, just setting up the skeletons. The basic build configurations.<p>I spent hours everyday getting the asset pipeline to work, or it would break again, meaning I would have to fix it again.<p>&gt; The vast majority of activity today is for yet another option on the a la carte menu.<p>Every week the developers want to switch out some module for another module within Rails because it was the hot new thing.<p>Maybe I worked on a bad project. Maybe I didn&#x27;t get it. Maybe it was a growing pain that has passed. Rails was a pain in the ass to get to work. The ORM was cool, but did it save me time or mistakes from writing SQL - no.<p>I would love other people&#x27;s opinions who have stuck with Rails.
评论 #13477266 未加载
评论 #13477097 未加载
评论 #13476822 未加载
评论 #13477074 未加载
currywurst超过 8 年前
I admire the way DHH writes .. confident and persuasive.<p>However, I&#x27;d just like to point out that in the same span of time JavaEE has undergone significant simplification (omakase API standards, anyone ;)) and if you check out the work of Adam Bien, you&#x27;ll quickly find old myths of bloated memory consumption and fiddly XML configuration debunked.<p>Java is also lucky to have a parallel full-featured stack in the Spring ecosystem. Projects like JHipster do an opinionated take on how to wire things up and take you to quickly to orbit.<p>So basically, I disagree with DHH that there is &quot;Very little activity in integrated solutions.&quot;
评论 #13475914 未加载
评论 #13476380 未加载
评论 #13476586 未加载
评论 #13476945 未加载
newsat13超过 8 年前
So, I have seen rails code and I did not fall in love with the code. Instead what I saw just black magic and all sorts of conventions. Reminded me of perl. You have to invest a lot of time knowing all the magic stuff.
评论 #13475954 未加载
评论 #13477051 未加载
评论 #13475845 未加载
评论 #13476457 未加载
dharamgollapudi超过 8 年前
Its DHH, not DDH. Mods, please update the title.
评论 #13475945 未加载
cutler超过 8 年前
Maybe a more relevant question is whether Rails is worth learning if you&#x27;re looking for a job. Searching Indeed.com&#x27;s API by title, which removes duplicates, there are currently 133 Rails jobs in the USA compared with 763 PHP (excl. WP, Drupal etc.) and 467 Node.js. In the UK there are 104 Rails jobs compared with 1013 PHP (excl. WP, Drupal etc.) and 230 Node.js. However, if you deleve deeper it turns out that half of the Rails jobs are in London. Outside the capital there are 22 PHP jobs to every Rails job (35 including WP, Drupal etc.) and 3 Node.js jobs to every Rails job so it would appear that unless you have a particular preference for the Ruby language Rails is not a good bet in today&#x27;s job market.
评论 #13477509 未加载
评论 #13477494 未加载
评论 #13484164 未加载
elcapitan超过 8 年前
Rails has become so much more enjoyable since all the hipsters left for node.js. [What makes Rails a framwork worth learning in 2017]
mountaineer超过 8 年前
DHH also answers a few other questions about Ruby and Rails in the same Q&amp;A<p><a href="https:&#x2F;&#x2F;www.quora.com&#x2F;session&#x2F;David-Heinemeier-Hansson&#x2F;1?srid=pvwn&amp;amp;share=1" rel="nofollow">https:&#x2F;&#x2F;www.quora.com&#x2F;session&#x2F;David-Heinemeier-Hansson&#x2F;1?sri...</a>
mark_l_watson超过 8 年前
I have been thinking of rails lately. I used both Rails and Merb way back when, but for many years now I have just used Ruby + Sinatra.<p>I wish that I had a more complex web app to do because it would be fun to get reacquainted with Rails. That probably won&#x27;t happen since I have been going it the opposite direction, having updated a few Sinatra and PHP sites to be 100% static, and using cloud storage and CDNs.
评论 #13476936 未加载
horsecaptin超过 8 年前
Ember.js attempts to do what the front-end what Rails has done for server-side application development. Worth a look, if you&#x27;re trying to choose between React &#x2F; Angular &#x2F; something else.
Glyptodon超过 8 年前
The only thing I&#x27;d really take much issue with is the &quot;provides great defaults&quot; statement made in passing. There are several things that are defaulted more to what I&#x27;d call &quot;lowest common denominator&quot; than &quot;great.&quot; For example, sessions.
评论 #13477594 未加载
hhandoko超过 8 年前
&gt; You get to use Ruby, which [...] remains the most extraordinarily beautiful and luxurious language I’ve yet to encounter.<p>I&#x27;ve used Ruby sporadically as gap-fill in small projects, but I didn&#x27;t feel the language has any qualities that sets it apart from others.<p>Perhaps I missed something, any Ruby devs care to comment?
评论 #13477280 未加载
patsplat超过 8 年前
Each user today commands a personal fleet of many devices. &quot;You get to use Ruby&quot; is a weak justification for a monolithic architecture.
评论 #13476211 未加载
评论 #13476186 未加载
评论 #13476347 未加载
spoiledtechie超过 8 年前
This answer sounds a lot like what Microsoft&#x27;s answer to Java was. C#. Everything in this answer reminded me of c#.
rco8786超过 8 年前
What does Ruby have to do with immutability
评论 #13476734 未加载
评论 #13476585 未加载
blueside超过 8 年前
I think Rails is always worth learning, but is it worth learning right now if you want to find a job?
ahallock超过 8 年前
Here&#x27;s a reason: money. Rails is still very popular, so there&#x27;s plenty of work out there.
评论 #13477451 未加载
holydude超过 8 年前
What stack do you recommend if not rails for a person that dislikes JavaScript (well rather ecosystem than the language &#x2F; syntax itself) ? I love Rails and Ruby do not take me wrong but I am not sure if the sole existence of Rails can make Ruby relevant in 2017.<p>In terms of jobs prospects and similarity to Rails&#x2F;Ruby what do you guys recommend ? Java ?
vcryan超过 8 年前
It&#x27;s always important to study history :)
评论 #13476231 未加载
0xsnowcrash超过 8 年前
Rails, as any backend system such as Drupal or Symfony, is inevitably a dead end technology.<p>The web is increasingly moving frontend and the system of 2018 onwards will simply be the M in MVC.<p>Note, I&#x27;m not saying Rails is not worth learning. I&#x27;m just saying it&#x27;s now the Cobol of web technology.
评论 #13475830 未加载
评论 #13475915 未加载
评论 #13475777 未加载