3min chapter

Good Day, Sir! Show, a Salesforce Podcast cover image

Managing the Decline

Good Day, Sir! Show, a Salesforce Podcast

CHAPTER

Why Do You Declare Variables at the Top of the Scope?

John: There are things you do as a program or out of habit, out of i mean, there's probably no reason to do it any more. But i always declared my variables at the top of every at thetop of any scope i was in and i ordered them by type. And so you would never see me declare a variable other than the top of the scope. Why is that not a good idea? Nowadays, s compilers do it for you. Well, they don't necessarily do it foryou, unless you're they don't rything we do is vilan.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode