ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Naming Convention in Programming | What should you name your function?

Naming Convention in Programming

Naming in Coding

Naming Convention in Coding

Importance of naming in coding

what should I name my function?

naming variables

naming functions

naming classes

naming packages

choosing right names in coding

importance of naming in coding interviews

Автор: Sprint Master

Загружено: 2021-02-06

Просмотров: 959

Описание: Naming is everywhere in code. We use names for variables, functions, classes, packages and everywhere around the program. If we are using naming so much across the code, isn’t it important to name them right?

As a programmer, we often have to deal with the code which is written by somebody either to review it, or to debug it, to enhance the current functionality. Have you ever been in a situation where you have to make a one line change but in order to make that change, you had to go through a whole lot of struggle to understand the code around it?
I don’t know about you but I have been in such a situation.
Though such a situation can’t be completely avoided, we can definitely make it less frustrating by using a better naming convention.

When you are naming your variables, functions or classes, they should be revealing their Intention. For example, if you have a use case where you want to store numberOfSeconds in a minute in some variable, instead of naming it some random variable name, use the variable name to be something like “numberOfSecondsInMinute”. At a first look, you may not see the power of this change. But this enhances the readability of code, and reduces long term maintenance costs.

Everytime you name a variable, function or a class in your code, it should answer the big question of why the function exists, and what does the variables in it represent. I know it takes a little bit of extra effort for a good name for your variables and functions. But at the end you will thank yourself for doing that.

Subscribe to Sprint Master to get updates of our new videos
   / @sprintmaster  

More videos:
1. How to prepare for Amazon Interview?    • How I cracked my Amazon Coding Interview |...  
2. Which data structure should you use?    • Choosing a right data structure in Coding ...  

Preparing for coding Interviews? Check out this playlist
   • How I cracked my Amazon Coding Interview |...  

#NamingInCoding #CodingInterviews #SprintMaster #NamingConvention

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Naming Convention in Programming | What should you name your function?

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Naming Things in Code

Naming Things in Code

How to name things in programming?

How to name things in programming?

JavaScript Function - What's your Function?

JavaScript Function - What's your Function?

Choosing a right data structure in Coding Interviews

Choosing a right data structure in Coding Interviews

The Ultimate Guide to Writing Functions

The Ultimate Guide to Writing Functions

Я СДЕЛАЛ ИДЕАЛЬНЫЙ ШАР ИЗ ОБЫЧНОЙ ЗЕМЛИ - ДРЕВНЯЯ ЯПОНСКАЯ ТЕХНИКА

Я СДЕЛАЛ ИДЕАЛЬНЫЙ ШАР ИЗ ОБЫЧНОЙ ЗЕМЛИ - ДРЕВНЯЯ ЯПОНСКАЯ ТЕХНИКА

Best Practices for Interface Naming Conventions

Best Practices for Interface Naming Conventions

Naming Things in Code

Naming Things in Code

Write AWESOME Code With These 3 Functional Programming Concepts

Write AWESOME Code With These 3 Functional Programming Concepts

ВСЯ СЛОЖНОСТЬ АЛГОРИТМОВ ЗА 11 МИНУТ | ОСНОВЫ ПРОГРАММИРОВАНИЯ

ВСЯ СЛОЖНОСТЬ АЛГОРИТМОВ ЗА 11 МИНУТ | ОСНОВЫ ПРОГРАММИРОВАНИЯ

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]