This is just something I had sitting on my laptop for a while and decided to share. After reading and watching some talks on the subject (listed on the references), and remembering college days, I felt inspired and decided to take advantage of Javascript’s arrow function syntax (lambas!). It was so much fun doing it that I thought others might feel inspired as well! I hope you enjoy!
Apart from being a great initiative, this is the closest to a RESTful client I’ve seen. Although Jason (the json format) is not standardized yet, it has a rich set of affordances. Android and web versions are on the works, keep an eye on https://github.com/Jasonette/
Nice article, although I don’t agree with the point it is trying to make. I think the mistake is here: “The only way to not cargo cult is to know everything. And nobody knows everything.” Of course you can’t know everything, but you should be educated about the technology you are working with. Also, style guidelines != cargo culting. The purpose of a style guide is to establish consistency. The actual style used doesn’t really matter that much, as long as everyone uses the same.
[Comment removed by author]
[Comment removed by author]
The author even makes this point in his paragraph about senior devs. There are so many different technologies with different levels of abstraction. Someone may be a senior developer but that doesn’t mean that they understand all of the nuances of all the technologies they use. That’s why we have designers, database engineers, and API designers.
[Comment removed by author]
Yep… It is important to not mistake cargo culting for copy/pasting!
One way to prevent spreading cargo culting is having some knowledge before “spreading” the knowledge. The classic example is the idea that any HTTP API that responds JSON is a “REST API”.
Here’s how to do dependency injection in javascript: http://vvgomes.com/javascript-dependency-injection/
Although the post focuses on javascript, the same approach can be used for other languages like ruby and python…