For the whole of May, I will blog about weird things in Ruby over at Idiosyncratic Ruby – Don’t miss it!
Small Ruby CLI Improvements (Part 2): Wirb!
Many people use irb with wirble. I also did.
I’ve been quite happy with it, but sometimes I noted that some symbols were displayed as : without the symbol name (e.g. in method name arrays) and that the representation of regexes looked quite strange.
This is why I’ve looked at the wirble tokenizer, fixed some bugs, liked it, extended it and created Wirb. These are the improvements:
Small Ruby CLI Improvements (Part 1): Command-line Regex Debugging
This little method (now also available in zucker/debug) is useful for understanding and creating regexes:
Do you know the official Ruby interpreter "goruby"?
## ## ## ## ## ## #### ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ######### #### ## ## ######### #### ## #### ## ## ## ## ## ## ## ## ## #### #### ## ## ## #### ## ## ##
Introducing Ruby Zucker - a new syntactical sugar gem
Zucker is a collection of lightweight scripts (cubes) that make Ruby even more beautiful: rubyzucker.info
Organise your code comments with rake notes:todo!
Lots of IDEs (e.g. Netbeans) and some editors (e.g. gedit with plugins) have a nice feature: They show comments, which start with something like TODO or FIXME. Those annotations are quickly written and they make it harder to forget some things you wanted to (or have to) do.
I have just discovered that Rails has this feature already built-in!
Rack::NoTags
This is my submission for the CodeRack contest:
A middleware that removes < and > from all incoming requests.