
Sign up to save your podcasts
Or
The more you write code, the more you realize the importance of choosing good names for your functions and variables. In this episode I discuss a few best practices I’ve picked up so far.
As a newbie to writing code, it’s just about getting the darn code to work. Lots of questions take priority: What is a function? What is this var I keep seeing everywhere? Did I miss a semicolon AGAIN!? Thinking about how to name functions, variables, or elements takes a back seat.
But the more you read code, and especially the more you read your own code from the past, it’s easy to see just how important it is to name things well. It’s probably the most important thing you can do to make your code readable.
Here are some tips I’ve picked up so far about naming conventions:
Basically when reading through your code, the reader should be told a story: a sequence of actions that makes sense to human understanding.
To improve your own style of naming things I can recommend:
This episode was originally published 5 December, 2017.
5
33 ratings
The more you write code, the more you realize the importance of choosing good names for your functions and variables. In this episode I discuss a few best practices I’ve picked up so far.
As a newbie to writing code, it’s just about getting the darn code to work. Lots of questions take priority: What is a function? What is this var I keep seeing everywhere? Did I miss a semicolon AGAIN!? Thinking about how to name functions, variables, or elements takes a back seat.
But the more you read code, and especially the more you read your own code from the past, it’s easy to see just how important it is to name things well. It’s probably the most important thing you can do to make your code readable.
Here are some tips I’ve picked up so far about naming conventions:
Basically when reading through your code, the reader should be told a story: a sequence of actions that makes sense to human understanding.
To improve your own style of naming things I can recommend:
This episode was originally published 5 December, 2017.