Ch2. Meaningful Names - Deepstash

Ch2. Meaningful Names

  • Use intention revealing names (elapsedTimeInDays vs d)
  • Class names should contain nouns and not verbs. Avoid Manager, Processor, Data, Info in class names.
  • Method names should have verbs. Accessory, mutators and predicates should be named for their values and prefixed with get, set, is
  • Use searchable names
  • Make meaningful distinctions

4

9 reads

CURATED FROM

IDEAS CURATED BY

Clean code!

The idea is part of this collection:

Productivity Systems

Learn more about books with this collection

How to set achievable goals

How to create and stick to a schedule

How to break down large projects into smaller manageable tasks

Related collections

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