DEV Community

Discussion on: Explain Empty Returns Like I'm Five

Collapse
 
dance2die profile image
Sung M. Kim

You decided to go shopping for a gift(doSomething).
As you arrived at a train station, you got a push notification that all trains are canceled due to hurricane (somethingElseHappens()).
So you returned home without any gifts (return).
Or else you could've waited for hours for a train that will never show up.

Collapse
 
thejoezack profile image
Joe Zack

Great example!

Collapse
 
dance2die profile image
Sung M. Kim • Edited

😎 Thanks Joe~ 👊

Collapse
 
stevenbruno profile image
Steven Bruno

Woah, I listen to your podcast all the time - never thought I'd see your name pop up in the wild!

Collapse
 
jerodsanto profile image
Jerod Santo

That was a super useful push notification! ✨

Collapse
 
dance2die profile image
Sung M. Kim

I should've used FEMA Alert as an example 😄