Creating a Great RESTful API

REST is a style of software architecture, often used in web. The design of Rails, for instance, is based a lot on REST. The idea behind this architecture is to have very similar interfaces to access all the resources in your system. Recently I had to create 2 APIs in 3 months so I had to learn all I could in a very short time. I’d like to share some conclusions but giving the fact that to develop an API people usually say you need 10 years of experience take them with caution. ...

Subversion and Files With @

If you have worked with Subversion and iOS you are probably aware of this problem. Whenever you are going to do something with a file that has an at sign in its name you can’t. For instance imagine you’ve just added a file for retina and try to add it to the repository (XCode can do this too): $ svn add [email protected] The message from Subversion will be: Skipped [email protected] That’s because Subversion uses the @ for other purposes. ...

. jose

Learning Vim - Introduction

I’ve started the great journal of learning Vim. I’ve heard a lot of good things about this editor and I’d like to learn how to use it effectively and share here all the things I’ll learn and my thoughts about every step of the way. As a novice I’ll make a lot of mistakes but I’ll try to search all the commands and tips to make sure they will be accurate enough to be shared. ...

Naming of Predicate Methods

A predicate method is tipically one that should return a boolean value (true or false). These methods are useful in a lot of scenarios, like when you have an class with a boolean attribute. ...

Too Short Routines?

I think as developers we tend to create complexity if we don’t think carefully about every line of code we are typing. Systems tend to be complex and managing that complexity is one of the main task we have. Routines are great, they are one of the best ways to encapsulate algorithms and make your code more readable. Sometimes we think routines are too short, but actually the usually are too long. Reading Clean Code I realized Uncle Bob creates very short routines and all of them have a meaningful name. ...