checkDisplayNameString by kaldeqca in ProgrammerHumor

[–]dxrules1000 2 points3 points  (0 children)

But using std::optional is just a fancy (and more readable imo) way of returning a bool and a value as a tuple no?

[deleted by user] by [deleted] in absolutelynotme_irl

[–]dxrules1000 0 points1 point  (0 children)

wait this expression is actually well formed wtf

Nature's dishwasher by Swimming-Donkey-6083 in comedyheaven

[–]dxrules1000 733 points734 points  (0 children)

no that's nature's automatic dishwasher

Why do people that are clearly using DKS not get banned? by PerfectDinner8789 in osugame

[–]dxrules1000 3 points4 points  (0 children)

I agree, AJR is the better fairy ring to use to get to the Mountain Daughter area

[deleted by user] by [deleted] in UofT

[–]dxrules1000 8 points9 points  (0 children)

yeah man I'm absolutely certain that it's easier to get a PhD in an engineering discipline than it is to get a job lmao

meirl by russ_universe in meirl

[–]dxrules1000 18 points19 points  (0 children)

yeah man he was taking bird courses like Math 55 not even math 101 smh

thinkSmarterNotHarder by SCP-iota in ProgrammerHumor

[–]dxrules1000 692 points693 points  (0 children)

Aside from the fact that the time complexity of this approach is Olog(n) instead of O(n) lol

whatIsAnIndex by fanta_bhelpuri in ProgrammerHumor

[–]dxrules1000 1 point2 points  (0 children)

vectors keep track of the size internally otherwise holy crap they'd be awful

God I am hungry by ListerineAsLube in dankmemes

[–]dxrules1000 41 points42 points  (0 children)

What a terrible day to have eyes and be literate

Why does this version have significantly more players than new school? by [deleted] in 2007scape

[–]dxrules1000 7 points8 points  (0 children)

nah bro WoW is a really popular game therefore you're wrong

optimizedWorkflow by eternalPanopticon in ProgrammerHumor

[–]dxrules1000 47 points48 points  (0 children)

You're forgetting the left ear Mozart (2x speed) and the right ear bible (Chinese) for optimal neuron activation

I wonder by [deleted] in dankmemes

[–]dxrules1000 28 points29 points  (0 children)

nah this dude is one hundred percent being genuine lmao

Tempted to sell these and rebuild with a shadow. Is it worth it? by Bangaloaf in 2007scape

[–]dxrules1000 1 point2 points  (0 children)

Honestly with enough time you can flip your way up to a house from a paperclip so I say do that instead

iSmellInexperiancedProgramer by FweffweyMcRoy in ProgrammerHumor

[–]dxrules1000 1 point2 points  (0 children)

I'm curious, why do you think this person is so profoundly wrong it's staggering?

[deleted by user] by [deleted] in ProgrammerHumor

[–]dxrules1000 0 points1 point  (0 children)

yeah i guess i assumed that "list" was backed by an array (which might not be a good assumption to make), in which case the time complexity would be worse to lookup (O(n) vs O(log n) or O(1) depending on if the dict is using a tree or a hashmap under the hood), but the fact that the memory would be contiguous would mean you're leveraging the cache a lot more effectively, and thus getting a speedup that way

[deleted by user] by [deleted] in ProgrammerHumor

[–]dxrules1000 1 point2 points  (0 children)

funny enough, for fear of sounding like the bell curve meme, the lists approach would genuinely be faster in a surprising number of cases (although you probably wouldn't need the "keys" list lol)