TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rails 4.2.0 beta1: Active Job, Deliver Later, Adequate Record, Web Console

322 pointsby jyunderwoodalmost 11 years ago

23 comments

r-salmost 11 years ago
Rails gets a bit of negative press these days, but its nice to see the framework moving forward. Rails is still a great choice for a large percent of web apps. There is a fairly big community even in smaller cities, a very complete framework, a large ecosystem of gems, open source and still improving.
评论 #8201166 未加载
j4pealmost 11 years ago
I&#x27;ve been working on a Django project for the last few months. In past gigs I&#x27;ve used Drupal, and even talked community with one of Drupal&#x27;s corporate overlords at Acquia. I enjoy working with Ember and follow its releases. But I&#x27;ve never grinned and cheered for new features the way I do with Rails.<p>It took me a long time to realize that Rails&#x27; greatness isn&#x27;t due to magical omakase magic - it&#x27;s the community DHH (and the core team) have built over the years, and the strong product focus they&#x27;ve applied. Really impressive. Did Torvalds work like this? Has anyone has studied or written about organizational behavior in the open-source community?
aaronbrethorstalmost 11 years ago
<p><pre><code> Support for real foreign keys! addforeignkey&#x2F;removeforeignkey are now available in migrations. </code></pre> Awesome! Despite the naysayers, I still feel incredibly productive in Rails, and am so happy it continues to improve.
评论 #8201007 未加载
评论 #8201330 未加载
评论 #8201774 未加载
resca79almost 11 years ago
Here a rails committer.<p>Rails is 10 years old and it has definitely changed the web development. But the unnecessary controversy always seem the same of its first year.<p>While in the last 10 years, many people talking Rails does not scale and ruby is slow, for many companies rails was and is a great &quot;tool&quot; to delivery great web apps.<p>Thanks Rails
neyaalmost 11 years ago
There was a time when I used to advocate my fellow folks here at HN (and possibly even reddit) to go for a framework built on faster languages like GoLang or Scala or even using platforms like Node.js and avoid slower ones like Rails. Now, it&#x27;s time for me to apologize to the community for giving you wrong advice [1]. Turns out I could never have been more wrong.<p>I wish I could write a long post describing each of the WHY&#x27;s, but I&#x27;ll be more succinct, this time:<p>1)If you can throw money at something at something and scale, then you&#x27;re as good as gold. Rails allows you to do this. Oh, and supportive statements from Pinterest guys on the same topic - [2].<p>2) The speed of a language has nothing to do with the success of your business. NOTHING. You can go with the world&#x27;s slowest language and still be successful. Best example of this is Basecamp itself.<p>As a matter of fact, even many of the popular sites (heck, even popular porn sites) still run on PHP (PHP was one of the slowest from the frameworks speed comparison conducted by Techempower - [3]).<p>3) The actual thing you want to be able to do is quickly iterate on your product and constantly have it evolve. This is only possible if you have a complete framework that doesn&#x27;t force you to re-invent the wheel. For example, when I wrote a framework by myself in GoLang, Scala, I found myself focusing too much on basic stuff like authentication, instead of focusing on the features that are needed for the actual product.<p>4) (P.S this is my personal opinion) I&#x27;ve tried all major frameworks out there and I&#x27;ve come back to Rails again. Why? Because its philosophy resonates with me (yes, now it does). For me, the three most important elements for a successful product are - Speed, Reliability, Consistency. Rails provides me with all these three. (And please try Puma, it&#x27;s pretty impressive!).<p>As for me, the ability to seamlessly integrate SASS, Compass and HAML (which help me divide my product development time multiple folds) makes Rails a clear winner for me. And now Active Job, Deliver Later, Adequate Record, Web Console now make Rails much more complete than ever. (Thank you DHH!)<p>In the last 6 months, I&#x27;ve written 4 complete products for 4 different people (one of them, being mine) that is well tested and works perfectly as intended. Compare this to something like last year where I spent 2-3 months writing just a single software product (for myself) while I was trying to use GoLang (&lt;- or insert another faster language here) (because I also had to take care of all the other things like Authentication, etc). The point is, ultimately you want to run a successful business. And if you&#x27;re worried if the slowness of your language will hinder it&#x27;s growth, then nope. That will not happen. I hope this helps someone.<p>Cheers.<p>[1] <a href="https://news.ycombinator.com/threads?id=neya&amp;next=6993616" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;threads?id=neya&amp;next=6993616</a><p>[2] <a href="http://highscalability.com/blog/2013/4/15/scaling-pinterest-from-0-to-10s-of-billions-of-page-views-a.html" rel="nofollow">http:&#x2F;&#x2F;highscalability.com&#x2F;blog&#x2F;2013&#x2F;4&#x2F;15&#x2F;scaling-pinterest-...</a><p>[3] <a href="http://www.techempower.com/benchmarks/#section=data-r8&amp;hw=i7&amp;test=json" rel="nofollow">http:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;#section=data-r8&amp;hw=i7...</a>
评论 #8202352 未加载
评论 #8201841 未加载
评论 #8201350 未加载
评论 #8201262 未加载
评论 #8217066 未加载
评论 #8202505 未加载
评论 #8207089 未加载
评论 #8206325 未加载
评论 #8203287 未加载
评论 #8254002 未加载
评论 #8216925 未加载
评论 #8201495 未加载
cpursleyalmost 11 years ago
Truly impressive. I&#x27;d also like to see the Rails team focus on Rails-as-API for those of us who have moved on from the asset pipeline (splitting the server side from client side).<p>It would be nice to have a &quot;API only&quot; flag option when generating a new rails project. Something like: `rails new myapp -api`. This could keep Rails going for another 10 years.<p>I&#x27;m looking into using Napa, a Grape based API framework, for the purpose of Ruby server-side API apps: <a href="https://github.com/bellycard/napa" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bellycard&#x2F;napa</a><p>(Napa is to Grape as Padrino is to Sinatra)<p>Related reading: <a href="http://www.divshot.com/blog/opinion/every-web-app-is-two-apps" rel="nofollow">http:&#x2F;&#x2F;www.divshot.com&#x2F;blog&#x2F;opinion&#x2F;every-web-app-is-two-app...</a>
评论 #8202694 未加载
评论 #8202736 未加载
tvonalmost 11 years ago
So GlobalID means instead of doing `SomeJob.enqueue(instance.id)` (and then `Model.find(id)` in the job) you just do `SomeJob.enqueue(instance)`, and presumably reference something like `object` in the job?
评论 #8201053 未加载
评论 #8201233 未加载
评论 #8201048 未加载
评论 #8201044 未加载
评论 #8201327 未加载
gt565kalmost 11 years ago
My biggest gripe about Rails are the model validations and DB adapters.<p>As someone coming from Django, I hate that I have to explicitly define db related validations and catch exceptions thrown by postgres instead of it just being handled by AR with the DB adapter based on the database constraints.<p>I love how Django handles that and I hope this finds its way into Rails one day.
martijn_himselfalmost 11 years ago
Sorry to &#x27;hijack&#x27; the thread but I was wondering, as a newcomer to Ruby and Rails, what would be the best way to learn it? (without spending too much money).<p>It seems to me because it is such a mature framework there are a lot of Rails-specific techniques and components to learn, this seems quite daunting to me, am I correct?
评论 #8201690 未加载
评论 #8201699 未加载
评论 #8203428 未加载
评论 #8202539 未加载
bdcravensalmost 11 years ago
Nice to see some of the features from better_errors make it in - I always figured it&#x27;d just replace the standard exception page.
axxalmost 11 years ago
You don&#x27;t need to make everything scalable right from the start. If your business is profitable you should have enough money to think about scaling later.<p>To me, the possibility to iterate fast has a much higher priority than thinking about scaling if i have a few or not that many customers.<p>Thinking about performance problems when you start your first project&#x2F;startup is like thinking about what to buy IF you win the lottery.
urs2102almost 11 years ago
&lt;%= console %&gt; is a godsend
评论 #8201222 未加载
_mikzalmost 11 years ago
I&#x27;m quite surprised by removing `respond_with` to a gem.
评论 #8205024 未加载
VeejayRampayalmost 11 years ago
A big thank you to all the contributors who keep making Rails better and more polished at each release. Rails 4.x is great.
rudimkalmost 11 years ago
What&#x27;s the difference between the Web Console in this release, and the IRB console that comes with Better Errors?
评论 #8203602 未加载
评论 #8201175 未加载
boie0025almost 11 years ago
I&#x27;m excited for the ActiveJob abstraction layer. This means I can start building things out for background work before even deciding what I want to have handle them.
ffnalmost 11 years ago
Oh God yes, at last, 4.2. Real foreign keys, active jobs, deliver_later, etc. I guess it&#x27;s true, Overlord DHH really does hear our prayers.
andylalmost 11 years ago
Just saw this in the release notes:<p><pre><code> The PostgreSQL adapter now supports the JSONB datatype in PostgreSQL 9.4+. </code></pre> Indexable&#x2F;queryable JSON - so fantastic.
评论 #8201186 未加载
andylalmost 11 years ago
One of the things I like best is the pre-announcement that Rails 5 will be built for Ruby 2.2. I appreciate the role that DHH and Rails play in keeping the community moving forward.
评论 #8201050 未加载
shouldbeworkingalmost 11 years ago
will there be a 420 celebration when it comes out?
评论 #8202928 未加载
oliyoungalmost 11 years ago
I love Rails, it&#x27;s been my tool of choice for the last six years, but &quot;Support for real foreign keys!&quot; shouldn&#x27;t be a thing in a change-log in 2014.
评论 #8201812 未加载
jiggy2011almost 11 years ago
&quot;Adequate Record&quot; does not exactly fill one with confidence regarding rails. This says &quot;our last versions had inadequate performance,this one is just ok&quot;
评论 #8201364 未加载
评论 #8201159 未加载
评论 #8202846 未加载
评论 #8201173 未加载
j-kiddalmost 11 years ago
I feel rather underwhelmed by the performance improvement touted by adequate records. Perhaps someone from the rails community can do something like this: <a href="http://techspot.zzzeek.org/2010/12/12/a-tale-of-three-profiles/" rel="nofollow">http:&#x2F;&#x2F;techspot.zzzeek.org&#x2F;2010&#x2F;12&#x2F;12&#x2F;a-tale-of-three-profil...</a>
评论 #8201178 未加载