Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/szepeviktor/uninformative-words
Variable names you should avoid 👺
https://github.com/szepeviktor/uninformative-words
meaningless non-informative uninformative variable variable-names
Last synced: about 1 month ago
JSON representation
Variable names you should avoid 👺
- Host: GitHub
- URL: https://github.com/szepeviktor/uninformative-words
- Owner: szepeviktor
- License: unlicense
- Created: 2023-03-18T01:54:13.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-01T18:06:42.000Z (about 1 year ago)
- Last Synced: 2024-10-09T10:11:18.147Z (about 1 month ago)
- Topics: meaningless, non-informative, uninformative, variable, variable-names
- Homepage: https://github.com/stars/szepeviktor/lists/theory
- Size: 14.6 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Uninformative words
[![theories](https://img.shields.io/badge/more-theories-purple)](https://github.com/stars/szepeviktor/lists/theory)
Variable names you should avoid.
- `i` 👺
- any one or two letter name except `id`
- `arr`
- `bool`
- `boolean`
- `cnt`
- `col`
- `coll`
- `custom`
- `detail`
- `data` 👺
- `double`
- `elem`
- `err`
- `extra`
- `float`
- `impl`
- `ind`
- `info`
- `int`
- `integer`
- `item`
- `iter`
- `key`
- `len`
- `more`
- `other`
- `proc`
- `req`
- `res`
- `ret`
- `return`
- `str`
- `value` 👺
- `var`
- `vdata`## Implementations
Please see the PHPCS rule in my
[useful frankenstein](https://github.com/szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset/blob/c75f1e20f1361ae7600829788dbe44d3969b84b8/PSR12NeutronRuleset/ruleset.xml#L243-L283)## Contributing
📢 Come on! [Add a word](https://github.com/szepeviktor/uninformative-words/edit/master/README.md).
Pull Requests are free.