DEV Community

Discussion on: What Leads to Coding Mistakes?

Collapse
 
programcrafter profile image
ProgramCrafter

Let me continue with fairly more complex, but yet not uncommon reasons!

  • Overcertainty that input will have certain properties (often coupled with not having project structure in mind);
  • Trying to change existing code to do similar, but another, thing;
  • Writing functions with large amount of parameters of one type, then accidentally swapping them;
  • Separating logically connected variables into separate objects, then expecting them to be consistent.