Marty Alchin recently posted about the “evils” of returning None (or nil or null depending on your language of choice). I think he has it basically right. Sure there are situations where returning nil1 is appropriate, but they are pretty rare. For example, if a method actually does what the client asked and there is [...]
About
My name is Peter Williams. I am a father and software developer. (I do a few other things, of course, but family and software are what I am most passionate about.) This blog is primarily a place where I can rant without scaring too many people, but occasionally I record things of interest to my family here.
more about »Projects
-
Recent Comments
- Peter Williams on Ruby Backtraces
Asher, Very cool. It is good to know that you can achi …
- Asher on Ruby Backtraces
I put together a gem to address this with Ruby >= 1.9 …
- Peter Williams on Vertical Slicing
Devon, I apply DRY at the semantic level, rather than …
- Devon Jones on Vertical Slicing
I quite agree. My only area of significant difference is that …
- Kevin Weller on Vertical Slicing
Nicely put. However, vertical and horizontal slicing are not …
- Peter Williams on Ruby Backtraces
People I know
