Re:Use What Works: Prefixing Database Tables With 'tbl'
by DrJokepu on Wednesday October 10, 2012 @10:34AM
(#4636461)
adjHungarian nounNotation verbHurts detThe nounReadability prepOf possYour nounCode.
[ Parent
| on HN ]
Re:Use What Works: Prefixing Database Tables With 'tbl'
by Terretta on Wednesday October 10, 2012 @10:52AM
(#4636540)
Cute, but those words have meaning properties on their own. Your example is not code, and so doesn't necessarily provide insight into how prefixes may affect groking code.
He's talking about naming things (one of the two hard problems), where what the thing is becomes more readable to him with the prefix on the name.
Re:Use What Works: Prefixing Database Tables With 'tbl'
by stephengillie on Wednesday October 10, 2012 @11:39AM
(#4636796)
I've been a hungarianNotation hater for several years. I despise the codecademy sections which require variable names use this convention.
Re:Use What Works: Prefixing Database Tables With 'tbl'
by SQLRockstar on Wednesday October 10, 2012 @10:53AM
(#4636545)
Only when you don't use prefixes that are somewhat standard.
At the end of the day, however, consistency is key. For example, you used a capital letter to distinguish the start of a word, making it easier for me to understand what you were saying.
Re:Use What Works: Prefixing Database Tables With 'tbl'
by slurgfest on Wednesday October 10, 2012 @11:24AM
(#4636708)
I don't see how capitalizing all words makes it easier to understand English sentences (Can You Hear Me Now)?
Re:Use What Works: Prefixing Database Tables With 'tbl'
by usea on Wednesday October 10, 2012 @11:56AM
(#4636868)
Your parent comment is referring to the use of camelCase when smashing words together, not to capitalizing every word of a sentence.
Re:Use What Works: Prefixing Database Tables With 'tbl'
by kevinh on Wednesday October 10, 2012 @01:45PM
(#4637398)
I'd largely agree with you with regard to Systems Hungarian Notation, but Apps Hungarian Notation has made my job much easier when talking about whether data is sanitized/unsanitized (or other similar distinctions that fall under the same type) in the scope of a larger program. In that case, it can prevent programmers from mistakenly interpreting the state of the variable, which is much harder to easily glean than the type.