Topic: Naming attribute the same as the Class?
Is that a bad idea? Lets say I have a table for name. The attribute would be name as well.
Would this cause problems in forms? Nesting the Name table under User, etc? Or does it not matter at all?
You are not logged in. Please login or register.
Rails Forum - Ruby on Rails Help and Discussion Forum » Application Theory & Strategy » Naming attribute the same as the Class?
Is that a bad idea? Lets say I have a table for name. The attribute would be name as well.
Would this cause problems in forms? Nesting the Name table under User, etc? Or does it not matter at all?
Doesn't matter really other than it's just bad practice and goes against entity modelling design, can lead to ambiguity and shows a lack of creativity ![]()
What's in a name? Everything - Remember you are going to have to read your code a year down the line and understand it!
Hosting provided by aTech Media