Choosing A Good Name - Deepstash

Choosing A Good Name

A good name must fit the natural language the variables are defined in. For example, since in English you would say “the maximum number of points”, it makes more sense to choose the name max_points over points_max.

Also, the aim should be to use 2-4 words per variable (apart from the common 1 word names).

147

986 reads

The idea is part of this collection:

The Halloween Collection

Learn more about books with this collection

Navigating and enjoying the thrill of horror and scare experiences

Historical knowledge of Halloween and its origins

Understanding and appreciating Halloween traditions worldwide

Related collections

Similar ideas to Choosing A Good Name

A Crowdsourced Language

Certain words having different vowel pronunciations went through natural, unchecked pronouncing or spelling mutations, establishing themselves in the vocabulary due to the number of people using them, something which came to be known as the great vowel shift.

Words, spellin...

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates