(Part 2) Top products from r/rails
We found 22 product mentions on r/rails. We ranked the 49 resulting products by number of redditors who mentioned them. Here are the products ranked 21-40. You can also go back to the previous section.
22. Ruby for Rails: Ruby Techniques for Rails Developers
Sentiment score: 0
Number of reviews: 1
Used Book in Good Condition
23. Agile Web Development with Rails, Third Edition
Sentiment score: 1
Number of reviews: 1
Used Book in Good Condition
24. The RSpec Book: Behaviour Driven Development with RSpec, Cucumber, and Friends (Facets of Ruby)
Sentiment score: 1
Number of reviews: 1
ISBN13: 9781934356371Condition: NewNotes: BRAND NEW FROM PUBLISHER! 100% Satisfaction Guarantee. Tracking provided on most orders. Buy with Confidence! Millions of books sold!
25. Rails Test Prescriptions (Pragmatic Programmers)
Sentiment score: 1
Number of reviews: 1
Used Book in Good Condition
26. Beginning Ruby: From Novice to Professional (Beginning From Novice to Professional)
Sentiment score: 1
Number of reviews: 1
27. Domain-Driven Design: Tackling Complexity in the Heart of Software
Sentiment score: 1
Number of reviews: 1
28. The Data Warehouse ETL Toolkit: Practical Techniques for Extracting, Cleaning, Conforming, and Delivering Data
Sentiment score: 1
Number of reviews: 1
Wiley
29. The Art of Capacity Planning: Scaling Web Resources
Sentiment score: 1
Number of reviews: 1
30. Intellectual Property and Open Source: A Practical Guide to Protecting Code
Sentiment score: 0
Number of reviews: 1
Used Book in Good Condition
31. Secrets of the Rock Star Programmers: Riding the IT Crest
Sentiment score: 0
Number of reviews: 1
32. Clean Code: A Handbook of Agile Software Craftsmanship
Sentiment score: 0
Number of reviews: 1
Prentice Hall
33. Service-Oriented Design with Ruby and Rails (Addison-Wesley Professional Ruby)
Sentiment score: -1
Number of reviews: 1
NewMint ConditionDispatch same day for order received before 12 noonGuaranteed packagingNo quibbles returns
34. A Practical Guide to Linux Commands, Editors, and Shell Programming (3rd Edition)
Sentiment score: 1
Number of reviews: 1
35. Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation (Addison-Wesley Signature Series (Fowler))
Sentiment score: 1
Number of reviews: 1
Addison-Wesley Professional
36. The Rails 5 Way (Addison-Wesley Professional Ruby Series)
Sentiment score: 2
Number of reviews: 1
37. Ruby on Rails Tutorial: Learn Web Development with Rails (3rd Edition) (Addison-Wesley Professional Ruby)
Sentiment score: 0
Number of reviews: 1
38. Algorithms (4th Edition)
Sentiment score: 1
Number of reviews: 1
Addison-Wesley Professional
Hi and sorry for the late reply! The first thing I'll have to ask is what environment are you deploying into, a manually configured virtual machine/bare-metal machine, Heroku, Ninefold? Each of these environments have different (sometimes vastly different) considerations when it comes to deployment of any application. In general though, here's some things that will apply that will apply to any good deployment process (some of what's below echoes /u/codekitten's reply):
Rails.application.config.secret_key_base
, I will always use environment variables coupled with something like dotenv or direnv to also manage the configuration for my local development environment.rxsharp.herokuapp.com
) will respond to HTTPS, but it's up to you to ensure your user's will always use SSL. Rails has the force_ssl setting to do this automatically for you, which you should have turned on in all of your production and production-like environments, but you should also be using HSTS to ensure that your users always visit your site over SSL (force_ssl
performs a permanent redirect tohttps://rxsharp.herokuapp.com
but does not set the HSTS headers). The gem that I use most often to take care of setting these headers for me is secureheaders, which also helps you configure a number of other security headers like Content Security Policy headers.curl
to hit a status page on your site that returns the currently deployed revision, and rollback the deploy if it receives an error. It can also be as complex as running a suite of RSpec examples that utilize something like Serverspec to assert the state of each one of your application servers (obviously this one doesn't work as easily in environments like Heroku). In the end, the important things here is that you automate EVERYTHING when it comes to your deployments.cap production deploy:migrations
, notcap production deploy
. On Heroku, you need to run them manually after you deploy using something likeheroku run rake db:migrate
. One further topic here that I highly recommend you explore is that of zero-downtime migrations. A great introductory article on these is Rails Migrations with Zero Downtime over at Codeship.These things are all general items that belong near the top of any checklist for deployment (Rails or otherwise). Hope this helps!
Smaller business logic frameworks would be mutations and ActiveInteraction.
They would replace the operations (and parts of reform) of TB.
Personally, I wouldn't use either of them over TB, they still add complexity, but don't offer too much over self-written stuff. YMMV of course.
If you want to start simple: create POROs for your "operations" with 2 public methods - initialize and run (or call, execute, apply, process etc.). Put your logic in them, create / execute them in your controllers.
Call them services, workflows, procedures, operations, scenarios, whatever.
try to put no persistent state in them - let them do their thing, return some sort of result (
true
/false
, model / nil, small result object).This fulfills a number of your criteria: it shouldn't slow you down much at all, it's simple, fairly maintainable and easily unit testable.
If you would like to research a different approach, look into DDD. The Arkency book should make for a good start, with the original DDD book giving quite a bit more background information.
> I'm not coding SPAs, so I still need awesome logic for Views / Presenters.
If you liked the Cells from TB, you can use them without using the rest of TB.
If you want something simpler, use a decorator like draper with ERB or Slim.
It's hard to provide a full answer just based on available information, but roughly you have many different ways to achieve what you have in mind.
Some families of ways to handle this:
What's the most adequate way to do this depends on various factors:
Finally, here are some tools which can help:
If you are into this for the long term, it can be worth reading a book that I often mention, which is the ETL book by Ralph Kimball. While quite old, it provides interesting patterns.
Happy to detail this more if you provide more input!
My primary books were Beginning Ruby: From Novice to Professional and Beginning Rails 3. Not to say these are the best and only books you'll ever need, but they are what I wanted in a text book; thorough, step by step application build in each one, online updates, code examples available for download. Really a great resource to get me started and I felt confident in my abilities by the end. At the very least I could understand what was happening in a system and be knowledgeable enough to know how to ask for help from other developers.
Because I had strength in HTML, I dabbled in a php book (PHP Objects, Patterns, and Practice ) as well that helped me understand some other core programming concepts.
I don't think you need it explained from a Rails point of view. Ruby is an OO language, and Rails simply exploits that.
You need to learn proper design patterns in Ruby (which apply to most OO languages). Sandi Metz's Practical Object-Oriented Design in Ruby is pretty much the gold standard for Ruby and very readable.
It's based heavily off of Martin's Agile Software Development, Principles, Patterns, and Practices.
After that, you can look into SOLID but, in Ruby-land, I think the single responsibility principal coupled with the rules laid out in Metz's book (summarized here) is a good place to start.
Also, it's worth noting that if you have good test coverage it makes re-factoring much, much easier.
Good luck!
The best thing for you are old books from that time. And they're cheap.
You're just looking for books that are in the Rails 2.x range, as it'll be hard to be specific to 2.1, but Rails release notes will help you bridge the gap between specific point releases.
The third edition of Agile Web Development With Rails and the first edition of The Rails Way are both Rails 2.x books.
Here's also an old online Rails 2.1 tutorial to help you in the meantime, but don't try to just get by on the few old web tutorials that are still online. Order books today. They're much deeper and broader than a web tutorial and they'll be invaluable if you're going to be working on this project for any real period of time.
EDIT: Michael Hartl's fantastic railstutorial.org has the "pre-1st edition" version of his book, which covers Rails 2.3, still available for free PDF download. Definitely grab that.
Honestly, not really. I've got copies of both The Cucumber Book and The Rspec Book and both are alright, but both are more than likely pretty much out of date. If you're looking for syntax, I'd just suggest reading the documentation for the relevant libraries.
I've heard okay/good things about Rails Test Prescriptions but haven't personally read it.
I have a few blog posts that I enjoy:
I've personally learned a non-trivial amount of testing methodology/principles in Ruby from Avdi Grimm, particularly:
I really enjoyed the book The Rails 5 Way.
https://www.amazon.com/gp/product/B077D9X5NM/ref=dbs_a_def_rwt_hsch_vapi_taft_p1_i0
https://gorails.com/ is a great source as well
+1 for devops. Anyone looking for a reference manual for Linux should check out Mark Sobell's books. Really useful and doesn't become obsolete after a year (or even 10 years!). Just got his 3rd edition Linux manual for Christmas and I'm ecstatic.
Thanks for the advice. I don't really think Google is in my reach as a non-CS degree student, and I feel like I'd enjoy working in a startup/smaller company environment regardless. I'm thinking about going through Sedgewick's Algorithms 4th ed. book. It gives a high-level overview but also provides Java code as examples of implementation. I'll then try to adapt said Java into Ruby and tackle the exercise problems in Ruby as well. Does that sound like a solid plan to you?
You do not need to run nginx. Yes you can run haproxy -> unicorn directly.
Split your static content up and have it served by a pool of nginx servers. Then push all your app requests directly your your nginx servers.
The problem with haproxy -> nginx -> unicorn is queues.
Imagine you have a single load balancer that is managing incoming traffic to a pool (3 nodes) of nginx+unicorn. When a user session ends up in the connection queue of a nginx server not much can be done. That user session is going to sit there until the unicorn server behind it can process it.
Now, imagine that you had a single haproxy, sending {.gif,.jpg,.css} to your nginx pool. Also imagine that you have a api like '/api'. Now you can configure haproxy to do URI based routing and send traffic to a system that will process it fast. If a session sits on a unicorn server too long, it can be sent to a different server by haproxy (of course, it depends on your application supporting such actions).
John Allspaw wrote about this in The Art of Capacity Planning
My company uses RSpec. I was introduced using Chelimsky's The RSpec Book. It touches not only on RSpec but Cucumber and Behaviour Driven Development. It's a solid technical document and would probably serve you well!
How do you learn Rails in 2 weeks? I'd recommend this book: read it and follow along as fast as you can: https://smile.amazon.com/Agile-Web-Development-Rails-6/dp/1680506706/ref=sr_1_3?keywords=agile+web+development+with+rails&qid=1565537733&s=gateway&sr=8-3
March 6th: http://www.amazon.com/Ruby-Rails-Tutorial-Addison-Wesley-Professional/dp/0134077709/ref=sr_1_2?ie=UTF8&qid=1416414278&sr=8-2&keywords=michael+hartl
But if you want a decent Rails4 book try this one:
https://pragprog.com/book/rails4/agile-web-development-with-rails-4
All you need to know
http://www.amazon.com/Secrets-Rock-Star-Programmers-Riding/dp/0071490833
skip the pickaxe. read this instead.
peepcode.
Perhaps have a look at this book: Intellectual Property and Open Source: A Practical Guide to Protecting Code by Van Lindberg.
I'm disappointed he went there as he is a really knowledgable guy that many developers could learn a lot from (even if they don't agree with everything he advocates). Specifically I think Clean Code should be a pretty essential part of any developers library.
What about Service-Oriented Design with Ruby and Rails?
Also, a lot of people think that they really need 'large-scale' or 'enterpricy' rails apps before ever running into scaling problems. If you don't need to handle thousands of requests per second right now then just build your app like you normally would and worry about scaling problems when they really start to appear.