MVC Frameworks and dynamic languages

less than 1 minute read

Warning! just figure out a mistake that can happen to every other programmer, and even brogrammers.

I defined a method on my model that has the same name as one of the field of the model, because I used a dynamic language (ruby on rails) it was pretty hard to understand this issue (took me more than 1 hour).

So a little tip:

When thinking about names of actions and fields of your model, work with conventions and guidelines like:
Don't name your fields after action names!!!


that's it.

Leave a Comment