living open source

November 4, 2008 by pedro mota

… today a nice thing happened. In a developers tech chat room, someone made a question about Markaby. He was trying to perform an action in markaby that was crashing his MVC Camping app.

Apparently his code was clean. I tryied the same, and got the same error. So he said he was going to fill a bug in the Trac. But I wondered how could that be a bug… So, to check, what better then pay a visit to the library source code ?

$ locate markaby.rb\r\n/var/lib/gems/1.8/gems/markaby-0.5/lib/markaby.rb\r\n/var/lib/gems/1.8/gems/markaby-0.5/test/test_markaby.rb

Markaby are in fact 7 ruby files:

  • markaby.rb
  • markaby/builder.rb
  • markaby/cssproxy.rb
  • markaby/metaid.rb
  • markaby/rails.rb
  • markaby/tags.rb
  • markaby/template.rb

With a small search on Vim, i quicky realized the mistake he was doing. I tried the new solution and it worked. Went to the chat room, pasted the solution, he tested, “et voila”:“hey pedro, thanks, it works!!!”

If i had no access to the source code, i couldn’t be able to help him with such safety and precision. See, sometimes the best documentation is the code

© 2018 | Follow on Twitter | pedro mg & Hugo