48
submitted 9 months ago* (last edited 9 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 9 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.

[-] sbv@sh.itjust.works 1 points 9 months ago

It's installed on a slight angle, so water pools in the soap holders and around the back of the faucet. If we don't keep it dry, pools fill with gunge.

[-] nikosey@lemmy.world 4 points 9 months ago

so the toilet isn't #1? is it #2?

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

Ask Lemmy

26753 readers
1523 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics. If you need to do this, try !politicaldiscussion@lemmy.world


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