Often times recruiters send emails to me or email lists that I am subscribed to about job opportunities. Some are decent requests about helping out a non-profit, others are start-ups asking if anyone has extra time to work with them, but once in a blue moon one comes across the outright outrageous job post spams.
Continue reading “Recruiter’s Disgrace”
Currying is used to transform a function with many parameters to a function with less parameters. This is accomplished by binding some arguments of the main function so it can be reused when the function is called again.
This technique is helpful when you want certain arguments to be fixed for a series of functions.
For example if you write a function that prints that a group of people are good at things. You can set it up like this:
Recently I picked up Sandi Metz’s Practical Objected Oriented Design in Ruby once more. It was great reading it again because as you become more experienced in programming you understand the why of many design techniques she elaborates on her book.
In this blog post, I would like to jot down my notes from chapter 3: Managing Dependencies. Once I got in to the habit of creating singly responsible classes and methods in Ruby, the consequence was that my objects became more interdependent (a natural consequence). Overdependency is perilous because as the application grows and accommodates changes it is prone to breaking. As Metz puts it, “If not managed carefully, these dependencies will strangle your application.”
Continue reading “Delegating Dependencies Among Ruby Objects”
Cucumber is a testing tool that runs acceptance tests. It was developed to ease the collaboration between non-coders and programmers as its syntax is written language.
For example, it would be more understandable if you showed your client or project manager that you are testing this scenario for a feature:
Continue reading “Starting With Cucumber”
Continue reading “Y U No Return My Ruby”