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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Rails 6.1

396 点作者 jonathanhefner超过 4 年前

13 条评论

ksec超过 4 年前
&gt;Error Objects<p><i>Active Model’s errors are now objects with an interface that allows your application to more easily handle and interact with errors thrown by models. The feature was implemented by lulalala and includes a query interface, enables more precise testing, and access to error details.</i><p>This has been in the work since Rails 5.x and I believe Lulalala extracted it from his work on Gitlab. And it was lot of hard work.<p>Since both Github and Shopify now runs on Master, I dont think there are any other open source web framework that is more battle tested than Rails.<p>Still waiting for New Magic though.
评论 #25368067 未加载
评论 #25365304 未加载
评论 #25365610 未加载
mhoad超过 4 年前
It&#x27;s a really nice time to be a Ruby &#x2F; Rails developer. Rails itself has made some really nice improvements with this release and there is also the &quot;NEW MAGIC&quot; should be following in the next couple of days which is currently being sold as what Rails was to the back end, this will be to the front end.<p>Ruby 3 is also just a few days away which brings optional type checking to helps add some additional structure to larger code bases.<p>Then in the wider community you have projects like Hanami 2.0 looking to launch next year which aims to bring all of the structure of &quot;clean architecture&quot; approaches and best practices with the simplicity and expressiveness of Ruby.
评论 #25364989 未加载
评论 #25371377 未加载
评论 #25369303 未加载
评论 #25383673 未加载
评论 #25365034 未加载
评论 #25367781 未加载
sbuccini超过 4 年前
Lots of good stuff in here, including much more support for using UUIDs as PKs.<p>My favorite new feature is &quot;delegated type&quot; in ActiveRecord to offer a new way to map class hierarchies onto database tables. I wrote a blog post about it[0], but the actual PR is very readable as well[1].<p>[0] <a href="https:&#x2F;&#x2F;www.stevenbuccini.com&#x2F;how-to-use-delegate-types-in-rails-6-1" rel="nofollow">https:&#x2F;&#x2F;www.stevenbuccini.com&#x2F;how-to-use-delegate-types-in-r...</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;rails&#x2F;rails&#x2F;pull&#x2F;39341" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rails&#x2F;rails&#x2F;pull&#x2F;39341</a>
评论 #25365870 未加载
评论 #25364834 未加载
评论 #25364703 未加载
评论 #25365815 未加载
arthurcolle超过 4 年前
Hey, sorry for the aside - I am a Rails developer since Rails 4ish and we are running Rails 5 at work. I&#x27;m using Rails 6 for my own projects and in these side projects, I&#x27;ve been having a huge hell of a time trying to grok &quot;right ways&quot; to do things with webpacker&#x2F;webpack. I seem to encounter issues every single time with deploys to Heroku because of precompilation issues, or imports not running right. But tutorials get out of date so fast and I&#x27;m constantly trying to just remove stuff just to get my builds to work. Are there any Rails focused chatrooms or places where I can get into the nitty gritty of these things without needing to post GitHub issues and piss off maintainers all the time?<p>I just don&#x27;t really grok how to use modern Javascript I guess, but also integrating with Rails webpacker has been a source of constant frustration. I can&#x27;t even figure out how to properly package JS libs without just giving up and using jsdelivr instead. Would love any kind of pointers!
评论 #25369479 未加载
评论 #25371112 未加载
评论 #25368212 未加载
评论 #25368423 未加载
simonw超过 4 年前
&quot;rafaelfranca released this 1 hour ago · 324 commits to master since this release&quot;<p>That&#x27;s the sign of a very actively maintained project!<p>(To clarify: those 324 commits didn&#x27;t all happen in the past 60 minutes, but it does show that there&#x27;s a huge amount of development activity going on around Rails core)
评论 #25366251 未加载
kadabra9超过 4 年前
I did a bunch of work in rails prior to the 3.0 days ( probably around 2013 or so), but then switched domains to work more in data engineering.<p>When I came back to it to scratch an itch for some pet projects, I barely recognized it. I felt completely lost.<p>Life moved pretty fast, I guess. Are there any good resources out there for someone from the 2.x days to get back to speed?
评论 #25366052 未加载
评论 #25365010 未加载
评论 #25367110 未加载
onnnon超过 4 年前
Here&#x27;s the Railties diff if anyone needs:<p><a href="http:&#x2F;&#x2F;railsdiff.org&#x2F;6.0.3.4&#x2F;6.1.0" rel="nofollow">http:&#x2F;&#x2F;railsdiff.org&#x2F;6.0.3.4&#x2F;6.1.0</a>
_gtly超过 4 年前
The beginning of Horizontal Sharding support is great to see.<p>More refined release notes here: <a href="https:&#x2F;&#x2F;edgeguides.rubyonrails.org&#x2F;6_1_release_notes.html" rel="nofollow">https:&#x2F;&#x2F;edgeguides.rubyonrails.org&#x2F;6_1_release_notes.html</a><p>And yet more release notes: <a href="https:&#x2F;&#x2F;weblog.rubyonrails.org&#x2F;2020&#x2F;12&#x2F;9&#x2F;Rails-6-1-0-release&#x2F;" rel="nofollow">https:&#x2F;&#x2F;weblog.rubyonrails.org&#x2F;2020&#x2F;12&#x2F;9&#x2F;Rails-6-1-0-release...</a>
bleonard超过 4 年前
It&#x27;s cool to see &quot;DHH&quot; still in these changelogs.
Existenceblinks超过 4 年前
One of my favorite characteristic of Rails community is there is less to non-existence of superiority of paradigm nonsense. Since I switched to other languages&#x2F;frameworks, discussion around Slack&#x2F;forum is plenty of non-realworld usage .. great engineering (without user interaction). It&#x27;s painful when you want to ship, not only to play.<p>Rails is full of libs for building real business. Github and Shopify &#x27;s engineers are around, this contributes great sense of realword usage. Features extracted from that are battle-tested.<p>Bonus is DHH is still involving since he loves programming anyway, and he is a great communicator, spicy tweets on HTML CSS keeps the web sane .. from those madness.
评论 #25372534 未加载
评论 #25372448 未加载
asdf333超过 4 年前
I&#x27;m hoping for vuejs and rails tie together. As a previous rails developer I never loved backbone angular or react but felt at home with vuejs and am jealously watching the laravel community embrace vue
评论 #25371553 未加载
pupdogg超过 4 年前
It would be really nice if they gutted out webpack for something like snowpack! Asset compile times kill the overall deployment experience.
评论 #25403468 未加载
tistoon超过 4 年前
Rails is getting even more mature of its existing maturity. That’s great!