…Dave Thomas as Don't Repeat Yourself (DRY) principle in "The Pragmatic Programmer" book. It states that: Every piece of knowledge must have a single, unambiguous, authoritative representation within a system. DRY principle is not about typing, but it is about not duplicating concepts and isolating change. If you have to change something in more than one place, then it's not DRY.
5. Open/Closed Principle ( OCP)
Software entities (classes, modules, …
…Code Kata is a term coined by Dave Thomas, co-author of the book The Pragmatic Programmer, in a nod to the Japanese concept of kata in the martial arts. A code kata is an exercise in programming which helps a programmer hone their skills through practice and repetition. The goal of our Python Kata is to get your mind wired into performance driven development, to reinforce your skills as a user of New Relic .
We unveiled the Python kata at our New Relic PyCon tutorial on …
…practice that have come to the fore in recent years. You could say that Adam reading The Pragmatic Programmer back in 2000 is one of the reasons we invite developers to come together for Waza, which happens tomorrow . And one of the reasons we share the talks freely online for those who cannot make it. Waza is all about technique, about personal improvement for developers, about, as the subtitle of The Pragmatic Programmer says, the journey from journeyman to master.
Programming Ruby 1.9 & 2.0 - The Pragmatic guys have updated the standard book on the subject too.
CoffeeScript 1.5.0 - New release including literate CoffeeScript .
# learnchef - Home for OpsCode Chef learning resources.
A Capybara Future - Some thoughts about where the Capybara API might go from here.
Ruby 1.9.3-p392 is released - And yeah, to stay secure you should upgrade.
…Pragmatic Programmers mentioned using a similar tool when writing The Pragmatic Programmer: From Journeyman to Master , so the idea has probably been around for a while.
Using doc-code-merge is easy. Start by writing some documentation such as:
Then, write some code such as:
Now, run doc_code_merge.dart:
This results in:
Easy peasy! doc-code-merge automatically handles things like indenting code blocks when generating Markdown and HTML escaping code when generating …
The Pragmatic Programmer now in DRM -free ebook, all formats for one price.
Raspberry Pi book now available in the Pragmatic exPress series
A month ago, I shared the news of the Pragmatic Programmers releasing 'The dRuby Book' by Masatoshi Seki. Here, its translator Makoto Inoue goes through some of the topics covered in the book and shows off some uses of DRb.
How to Serve Your Rails Assets Over Amazon S3 with asset_sync
User Authentication with Rails and Backbone.js
Backbone.js is a handy JavaScript framework for developing webapps and Rails is similarly handy on the …
And again, a mixture of travel, illness, and exhaustion have prevented me from my weekly updates on here (although Ruby Weekly is still going out on a weekly basis!) so here's a bumper update for all of the top Ruby and Rails news from March 2012.
Highlights include: Matz wins a prize, Ruby is approved by the ISO, some awesome jobs , Bundler 1.1, Vagrant 1.0, Rails 3.2.3, Avdi Grimm's Object on Rails book, the Pragmatic Programmers release …
The idea is far from new. The Pragmatic Programmer talked about blackboards, a similar mechanism, Cocoa has had something similar for ages, and now Rails has something like it too.
The basic idea is that you have a centralized repository where you can subscribe to events, for example to the event ActionController triggers when it process an action. Here's the code to extract the path that was requested by a user. ActionSupport::Notifications.subscribe('process_action.action_controller') …