3. Avoid Global Code - Deepstash
3. Avoid Global Code

3. Avoid Global Code

Global variables and loops are a mess and can prove problematic when your application grows to millions of lines of code (which most do!). They may influence code elsewhere that is difficult to discern, or cause noisy naming clashes. Think twice before you pollute the global namespace with variables, functions, loops, etc. ๏ปฟALWAYS USE NAMESPACES.

41

296 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