48
submitted 5 months ago* (last edited 5 months ago) by cheese_greater@lemmy.world to c/asklemmy@lemmy.world

switch statements

switch statements require you to exhaustively consider all relevant or possible inputs (if you don't rely on default).

Interestingly, the notion that switch statements can require a default is reflective of the truth to the idea that when the stakes get high, we all fall back to our default level of training or function. This has global applications to our functionality and, by extension, the inputs (things,people/their methods,contexts) in our lives as well

you are viewing a single comment's thread
view the rest of the comments
[-] sbv@sh.itjust.works 17 points 5 months ago

Do the important shit first.

I guess this may be more of a project management thing, but trying to figure out what the most important part of a task is, and getting that done first.

If I'm cleaning the bathroom, I do the sink, because if I have to stop, that's typically the grossest part.

When I'm doing my taxes, I do the stupid parts that I can't afford to get wrong first.

When I'm packing for a trip, I get the stuff I need day-to-day sorted out and in my carry-on.

I don't think these are great examples, but they mean something to me.

Please teach us how to have the sink be the grossest part of the bathroom.

[-] pdavis@lemmy.world 2 points 5 months ago

Fun fact, in a pinch the sink can be used as a urinal.

load more comments (4 replies)
load more comments (4 replies)
this post was submitted on 25 Jan 2024
48 points (94.4% liked)

Ask Lemmy

25224 readers
2778 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS