Quantcast
Channel: MadGlory Interactive » Books
Viewing all articles
Browse latest Browse all 3

Rails Antipatterns

$
0
0

railsStuck refactoring code in an unwieldy Rails project? Check out ‘Rails Antipatterns’ by Chad Pytel and Tammer Saleh. It contains real world examples of, and proven solutions for, code smells that may hint your code is heading down the wrong path.

From models, through controllers, and up to views it shows how you can both effectively avoid pitfalls in new projects and dig yourself out of holes that have made their way into legacy codebases.

One example of such a solution is pushing find methods into scopes contained in the model. This simple pattern doesn’t just help cleanup code by encapsulate functionality, but makes code more reusable and maintainable.

If you’re looking for a quick read with a great return, checkout ‘Rails Antipatterns’ today!


Viewing all articles
Browse latest Browse all 3

Trending Articles