paint-brush
Why You Should Always Avoid Encoding Type Into Namesby@crbefus
2,760 reads
2,760 reads

Why You Should Always Avoid Encoding Type Into Names

by Chad Befus4mFebruary 12th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The Rule: When naming a variable, don't encode it's type into its name, even in a dynamically typed language. Not encoding type into your names is actually a good rule for both Statically and Dynamically typed languages, but the reasons differ between them. In Statically Typed languages, we must declare the type of a variable when its defined. In Dynamically Typed Languages we can future proof our names by not encoding the type twice. In dynamically typed languages like python, we don't have to declare type when defining a variable.

Company Mentioned

Mention Thumbnail
featured image - Why You Should Always Avoid Encoding Type Into Names
Chad Befus HackerNoon profile picture
Chad Befus

Chad Befus

@crbefus

I'm a Software Engineer with 10+ Years of Experience. I believe quality leads to velocity.

About @crbefus
LEARN MORE ABOUT @CRBEFUS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Chad Befus HackerNoon profile picture
Chad Befus@crbefus
I'm a Software Engineer with 10+ Years of Experience. I believe quality leads to velocity.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite