The Grep Test
- The main idea is that function, class or variable should be searchable by its name
- "Smart" methods of declaring methods via string concatenation breaks this rule
Article has a great catchy title, but is too focused on string concatenation case and grepping. I prefer to use "grep test" in a more broad sense like Code searchability (yep, sound not that great, but may be a bit more understandable).
Meta
Created: 2021-10-03
References:
- Original post: http://jamie-wong.com/2013/07/12/grep-test/