Rspec book announced
So, after more than a year of voices about it, it looks that the pragmatic programmers finally announced a book about rspec. The title will be available on april of the next year and I don't know if there will be a beta version.
So, after more than a year of voices about it, it looks that the pragmatic programmers finally announced a book about rspec. The title will be available on april of the next year and I don't know if there will be a beta version.
I became more interested about mind maps after reading pragmatic thinking and learning, so i went to amazon to find a good book about mind mapping. I had enough luck to find The Mind Map Book: How to Use Radiant Thinking to Maximize Your Brain's Untapped Potential, which is written directly by Tony Buzan, the creator of modern mind maps techniques.
The book is divided in three major parts, the first part explain why the use of mind maps is efficient and how it reflect the structure of our mind in the act of learning and thinking. The second part introduces the effective way of producing a mind map, explaining the difference between various techniques and methods. The last part of the book explores different environments like family, work and learning where the use of mind mapping could dramatically improve the experience.
Conclusion: be sure to read this book as soon as possible if you haven't already, even if you think that you are not interested in map mapping.
The millionaire next door is a book written by Thomas J. Stanley and William D. Danko that is the result of many years of research about the lifestyle of the millionaires people in United States.
Rails 2.1 shipped with a very nice feature called named scope. If you not know what named scope are, please see this post or this screen-cast.
You will probably be aware of the use of lambda for creating dynamic finders, like this one:
named_scope :colors, lambda { |color| { :conditions => ['color = ?', color] } }
but what if you need to use a condition involving time, for instance:
named_scope :recents, :conditions => ['created_at < ?', 2.weeks.ago]
This code will not work, because named scopes are wrapped in a class method when you load the rails environment, and you will result in queries that will never change. The solution of course is the use of lambda. A lambda is a function that need to be evaluated all the times. Here's the correct example, re-written using lambda:
named_scope :recents, lambda { { :conditions => ['created_at < ?', 2.weeks.ago] } }
If you still are not convinced about this behavior, try out this code yourself:
class Foo
attr_accessor :container
def initialize
@container = []
end
end
f = Foo.new
f.container << Time.now
puts f.container[0] # => Sat Oct 18 19:51:40 -0700 2008
sleep 3;
puts f.container[0] # => Sat Oct 18 19:51:40 -0700 2008
f = Foo.new
f.container << lambda { Time.now }
puts f.container[1].call # => Sat Oct 18 19:51:43 -0700 2008
sleep 3;
puts f.container[1].call # => Sat Oct 18 19:51:46 -0700 2008
This is me in my hotel room in Seattle:
Via Obie Fernandez
1.Take a picture of yourself right now.
2. Don’t change your clothes, don’t fix your hair…just take a picture. (should be super-easy with Photobooth)
3. Post that picture with NO editing.
4 Post these instructions with your picture.
Yesterday I had the opportunity to go to seattle.rb, the weekly ruby brigade, where very cool guys share their knowledge about ruby and constantly work on new exciting projects.
I used that time to browse the source code of a few projects like ZenTest and to chat with someone, I plan to be there also the next week, so stay tuned.
I started to read business related books later this year, and I was lucky enough to start with a few excellent ones, including The richest man in Babylon by George S. Clason.

This book was originally written in 1920 and describes the financial situation in the ancient Babylon. You may wonder how it can help us in the 21st century where so many things are changed. It eventually turns out that things aren't really that changed when we talk about making money.
The most important lesson that i learned is that you need to save a little a little part of all your incoming if you want to became rich, and when you have enough money you can start to invest them.
Aside from the business advices included, I really enjoyed reading this book. The author found the right words for telling us a beautiful story about the ancient Babylon and moneys. A must read for everyone.
Recent Comments