Naming for developers

Published on October 18, 2023

← Back to tips

Undoubtedly, naming poses a significant challenge for developers when writing code. Coming up with suitable names, especially for similar things, is no easy task.

The Wasp blog (https://wasp-lang.dev/) offers valuable tips in an article that addresses this issue. Here’s a TLDR:

  • Avoid misleading, incomplete, or inaccurate names.

  • Choose names that reflect the purpose of the variable, function, or class.

  • Use consistent naming conventions throughout your codebase.

  • Use abbreviations and acronyms sparingly, and only if they are widely understood.

  • Choose names that are appropriate for the scope of the variable, function, or class.

  • Avoid using symbols and special characters in names, unless they are required by the programming language.

Original post: https://wasp-lang.dev/blog/2023/10/12/on-importance-of-naming-in-programming

🎉 Interested in Frontend or Indie-hacking?

I talk about the latest in frontend, along with my experience in building various (Indie) side-projects