24
Pro tip: found a game-changing chrome extension for catching typos in code
I spent three hours last Tuesday debugging a stupid variable name typo in my JavaScript project. This free extension called Code Spell Checker caught it in like 2 seconds after I installed it. It highlights misspelled words right in your editor, even for camelCase stuff. Has anyone else used a linter or spell checker that saved them from a headache like that?
2 comments
Log in to join the discussion
Log In2 Comments
skyler_mitchell7d ago
Actually read something about this the other day on a coding blog. They said most spelling mistakes in variable names come from mixing up similar sounding words like "receive" and "recieve". The camelCase thing is huge too, normal spell checkers just give up on those. I run ESLint and it catches naming conventions for me but not actual spelling. Might have to grab this extension and see if it helps with my constant "defualt" vs "default" problem.
5
harperwright6d agoMost Upvoted
Hold up though, is it really that big of a deal? Most editors have autocomplete anyway and spellcheckers catch like half of these. I feel like spending time fixing minor typos in variable names is just procrastinating from actual coding. The code still works if you spell "default" wrong, just rename it later if it bugs you that much.
4