Easily build a great vocabulary without studying! Now on the App Store!
Click here for more info about the app
While writing software it's common to leave comments for your future self. For instance, if you have written some code but realize that it should be refactored to be more efficient, you may place something along the lines of "TODO: change active record find method and replace w/ a custom sql select finder ". With rails, if you follow this convention, you can get a list of your annotations with a rake task.
which will print out the file where the the todo was found along with the line number and the comment...
Rails defines several other annotation types for you
app/controllers/application_controller.rb: * [ 8] fix me
And you also may define your own
rake notes # Enumerate all annotations rake notes:fixme # Enumerate all FIXME annotations rake notes:optimize # Enumerate all OPTIMIZE annotations rake notes:todo # Enumerate all TODO annotations
you may find all instances of "SEAN" by running
SEAN: please rewrite this method to query only chunky bacon
rake notes:custom ANNOTATION=SEAN