Crafting Ruby
Crafting Ruby. A Ruby on Rails blog covering RoR features and solutions to uncommon problems..
Read Craftingruby.com news digest here: view the latest Crafting Ruby articles and content updates right away or get to their most visited pages. Craftingruby.com is not yet rated by Alexa and its traffic estimate is unavailable. It seems that Crafting Ruby content is notably popular in Japan. We haven’t detected security issues or inappropriate content on Craftingruby.com and thus you can safely use it. Craftingruby.com is hosted with GitHub, INC. (Netherlands) and its basic language is English.
- Content verdict: Safe
- Website availability: Live
- Language: English
- Last check:
-
N/A
Visitors daily -
N/A
Pageviews daily -
N/A
Google PR -
N/A
Alexa rank
Best pages on Craftingruby.com
-
A Ruby on Rails blog covering RoR features and solutions to uncommon problems.
-
Crafting Ruby http://craftingruby.com/ Sun, 24 Apr 2016 06:40:10 +0000 Cleaner RSpec examples and failure messages <p>RSpec offers an extensive, flexible DSL to write your tests. But due to its e...
-
Using Enumerable as testing abstraction
Enumerable is a very powerful Ruby module. Learn how it can be used for abstraction and simplifying tests as a result.
Craftingruby.com news digest
-
6 years
Flag arguments are a code smell
A flag argument is a boolean which causes the method to behave differently. It’s an indicator that the code is exercising multiple scenarios based on an external factor. A piece of code on a higher level decides with path to take through a lower level...
-
7 years
I'm not testing those stupid views!
Over the course of a Rails project, views that started out very simple can evolve into a complex mix of HTML with complicated nested Ruby conditionals. They become hard to understand, hard to read and hard to work with. Fixing an edge case in those views...
-
8 years
Cleaner RSpec examples and failure messages
RSpec offers an extensive, flexible DSL to write your tests. But due to its extensive arsenal of matchers, RSpec requires some more effort to use properly than some other testing frameworks like Minitest.
Have a look at the following spec:
It kind of gets the job done, but it’s not super easy to read. It doesn’t really feel like the RSpec way of doing it, especially not with those local variable assignments. Lastly, it forces a specific sorting order of line items in the last example.... -
8 years
Rails Anti-Pattern: Fat Decorator
Using decorators in Ruby on Rails has many benefits. Models become less fat, views less complicated, and using the procedural view helpers becomes a thing of the past.
When applying decorators to your Rails project, you might be tempted to maintain a 1:1 mapping between models and decorators. All the presentation logic of a Article would go into an ArticleDecorator. While the decorators are small, this may be a valid...
Domain history
Web host: | GitHub, INC. |
Registrar: | Gandi SAS |
Registrant: | REDACTED FOR PRIVACY |
Updated: | January 22, 2023 |
Expires: | February 13, 2024 |
Created: | February 13, 2013 |
Whois record
Safety scores
Trustworthiness
N/AChild safety
N/A