4. Use Meaningful Names - Deepstash
4. Use Meaningful Names

4. Use Meaningful Names

Never use names like $k , $m , and $test for your variables. How do expect to read such code in the future? Good code should be meaningful in terms of variable names, function/method names, and class names. Some good examples of meaningful names are: $request , $dbResult , and $tempFile (depending on your coding style guidelines these may use underscores, camelCase, or PascalCase).

38

260 reads

CURATED FROM

IDEAS CURATED BY

genevra

hi I'm Gen 🪄 🔮 it was fated that we meet

The idea is part of this collection:

Machine Learning With Google

Learn more about computerscience with this collection

Understanding machine learning models

Improving data analysis and decision-making

How Google uses logic in machine learning

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