Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 530 Bytes

bad_names.md

File metadata and controls

13 lines (10 loc) · 530 Bytes

Bad Names

name why it's bad alternative
attr_accessor "access" implies reading, not writing attribute
default block "default" is misleading anonymous block
default hash "default" is misleading automatic hash
case comprises many cases, not one case switch or compare
equal? compares identity (object_id), not equality identical?
attr_accessible
(Rails)
it's about setting, not accessing mass_assignable
yield implies thread/process swap call