Martians, go home - by Frederick Brown
Posted on January 23rd, 2015
Notes on upgrading from Rails 4.1 to 4.2
Posted on January 21st, 2015
This one is a fairly easy upgrade although it was a little hard to discover all the issues. The main work was around removing Inherited Resources.
Here are more detailed notes:
- All calls to
.deliver
become.deliver_now
. Including in your tests and stubs. If you had any tests that depended on the code block to be executed, you have to call.deliver_now
as method...
Implementation Patterns - by Kent Beck
Posted on January 17th, 2015
Notes on upgrading from Rails 4.0 to 4.1
Posted on January 14th, 2015
This upgrade was fairly easy. The thing that will potentially give you more work are tests around ajax requests.
Here are the few detailed notes:
- ActiveModels now includes a
none
scope by default. So if you have somenone
scope defined, just remove their definitions. - The state machine gem has not been updated for Rails 4.1 yet. Rails 4.1 made private the
around_validation
method in ActiveModels. Since state machine uses this method to inject its own validations, you need an extension for it. I’ve created a file namedconfig/initializers/state_machine.rb
and added the following code:
module StateMachine::Integrations::ActiveModel; public :around_validation; end
- CFRS is also possible in AJAX request. Because of this AJAX requests are checked against it as well as of Rails 4.1. Therefore, in your tests,
get :whatever, :format => ‘js’
has to becomexhr :get, :whatever, :format => :js
Brazil's dance with the devil - by Dave Zirin
Posted on January 10th, 2015
Notes on upgrading Rails from 3.2 to 4.0
Posted on January 7th, 2015
The upgrade itself is not that hard. The main thing is the change from models protected from mass-assignment to strong parameters in the controllers. The rest is fairly quick and simple.
Here are more detailed notes:
- Strong parameters: Use the gem in 3.2 and move any attr_accessible out of your models. Ensure you added the
config.active_record.whitelist_attributes = false
to your...
The curious incident of the dog in the night-time - by Mark Haddon
Posted on January 2nd, 2015
ThoughtWorks Antology 2 - by various authors
Posted on December 26th, 2014
The [second of the ThoughtWorks anthology]:(http://www.amazon.com/ThoughtWorks-Anthology-Software-Technology-Innovation/dp/1937785009) about 4 years after the [first one]:(http://blog.hugocorbucci.com/thoughtworks-antology-various-authors). Like the previous one, this one balances between very narrow concrete subjects and more abstract ones which makes the book age very differently depending on the chapter.
The following notes detail each chapter:
Chapter 1: Introduction -...
In the valley of the kings - by Terrence Holt
Posted on December 20th, 2014
In this book composed of multiple short stories, Terrence Holt brings us to both the past and the future around self-discovery and death. Each story is independent and can be read in any order although it gets a little repetitive if reading from start to end in a day.
Here are notes on each story:
'O Aoyos:
Description of an epidemic disease related to seeing a word. This word...
Thoughtworks antology - by various authors
Posted on December 17th, 2014
This anthology marks the first of multiple anthologies that ThoughtWorks published.
Chapter 2: Last Mile - Roy Singham & Michael Robinson
Precursor for Continuous Delivery. Including non functional requirements at start of development cycle.
Doesn’t really provides ideas into how to avoid getting slow to release after growth. More into saying that just not...