Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active October 26, 2024 18:47
Show Gist options
  • Select an option

  • Save wilmoore/aff5fbb192b857612e57c88a4558bef2 to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/aff5fbb192b857612e57c88a4558bef2 to your computer and use it in GitHub Desktop.
Personal Brand :: Social Media :: LinkedIn :: Post :: Naming Things in Code

Personal Brand :: Social Media :: LinkedIn :: Post :: Naming Things in Code

⪼ Made with 💜 by Polyglot.

reference
» Naming Things in Code «

I just watched a really good YouTube video titled "Naming Things in Code".

The video enumerates several practices that I already follow when naming things in source code.

Here is a list of the practices:

↳ Don’t abbreviate names
↳ Don’t put types in variable names
↳ Add units to variables unless the type tells you
↳ Don’t put types in your types (e.g. AbstractX, BaseX)
↳ Refactor if you find yourself naming code “Utils”

Țechśavvy CEO
Here's the link to the original video: https://youtu.be/-J3wNP6u5YU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment