PeriodicallyPedantic
@PeriodicallyPedantic@lemmy.ca
- Comment on proportional reaction 18 hours ago:
Switch is good if you only need to compare equals when selecting a value.
Although some languages make it way more powerful, like pythonmatch
.
but I generally dislike python despite of this, and I generally dislikeswitch
because the syntax and formatting is just too unlike the rest of the languages.Generally I prefer the clear brevity of:
var foo= x>100 ? bar : x>50 ? baz : x>10 ? qux : quxx;
Over
var foo; if(x>100) { foo=bar; } else if(x>50) { foo=baz; } else if(x>10) { foo=qux; } else { foo=quxx }
Which doesn’t really get any better if you remove the optional (but recommended) braces.
Heck, I even prefer ternary over some variations ofswitch
for equals conditionals, like the one in Java:var foo; switch(x) { case 100: foo=bar; break; case 50: foo=baz; break; case 10: foo=qux; break; default: foo=quxx; }
But some languages do
switch
better than others (like python as previously mentioned), so there are certainly cases where that’d probably be preferable even to me. - Comment on proportional reaction 1 day ago:
Hey, when you gotta pick a value from a bunch of options, it’s either if/elseif/else, ternary, switch/case, or a map/dict.
Ternary generally has the easiest to read format of the options, unless you put it all on one line like a crazy person.
- Comment on proportional reaction 1 day ago:
Bah
Ternary is just a compressed if-elseif-else chain with a guaranteed assignment.
If you format it like a sane person, or like you would an if/else chain, then it’s way easier to read than if/else chains. - Comment on A conundrum 5 days ago:
Oh no, their own process that they made for being given a house is so expensive, I feel so bad for them!
Why are you defending them so hard? You just have to look at their quarterly financials. They’re making out like gangbusters.
- Comment on A conundrum 5 days ago:
But if you don’t pay, they get the house. There is no risk of loss, only risk of not maximizing profit.
- Comment on A conundrum 5 days ago:
That’s the impression I get too
But it’s plausibly deniable enough because you can still get decent credit score if you pay off your credit before you pay interest. It’s a numbers game for them, I expect, but still.
- Comment on A conundrum 6 days ago:
you need to pay us interest because we’re taking the risk. Also you need to give us a down payment to offset our risk.
- Comment on A conundrum 6 days ago:
you’re not gonna be able to afford this apartment after a few years of 10% rent increases, and we don’t want the inconvenience of evicting you when that time comes
- Comment on A conundrum 6 days ago:
The first time I applied for a loan, I didn’t have a credit card yet. And they were like:
How can we know you’re responsible with money?
Because I haven’t needed credit in the past and I’m still alive, idk? Having enough liquidity to not need credit would seem to suggest I’m good with money.
But maybe your parents are paying for everything
Ok? How does using a credit card change that?
- Comment on PSA 1 week ago:
Lest I checked, this was a free country
- Comment on Choose wisely lemmings 1 week ago:
ButtsMcFarts
- Comment on And they even get a seizure when you take their ipads away 2 weeks ago:
No, keep proudly displaying your ignorance. We’ve got time.
- Comment on And they even get a seizure when you take their ipads away 2 weeks ago:
It’s easy to judge from like 30 minutes in public, until you have an autistic kid and no support network.
- Comment on And they even get a seizure when you take their ipads away 2 weeks ago:
My child is autistic.
The only way to get him to be calm in a restaurant was to give him earphones and play something comfortingly familiar.Now that hes a bit older, it’s a bit better. But he still frequently needs something similar in those kinds of situations.
- Comment on And they even get a seizure when you take their ipads away 2 weeks ago:
But you also watched new grounds and shit like goatse
- Comment on don't trust cowboys or people doing cowboy voices 2 weeks ago:
Has Anyone Really Been Far Even as Decided to Use Even Go Want to do Look More Like?
- Comment on Laser 2 weeks ago:
A later touched me as a kid!
- Comment on Macaroni and cheese 2 weeks ago:
Taste? I’m talking about behaviour
- Comment on Macaroni and cheese 3 weeks ago:
Nope, it’s like fish.
- Comment on The average age of Disney princesses is 505y. 3 weeks ago:
Damn it, Princess Georg
- Comment on Ponder not the Demoncore 3 weeks ago:
Armed with my screwdriver
Life is never a bore
I study and research
Data galore
Nothing can stop me
Accolades and more
Now let me prop open
The Demon Core - Comment on Be Fast. Be Spontaneous. Don't Suck. Get Paid. 3 weeks ago:
This is a red, yellow, and green checkered flag.
- wants to chase down people
- is whimsical
- can’t make up his mind
- is controlling
- cares about fitness
- not a gym bro
- Comment on Post your homescreen 3 weeks ago:
I’m kinda surprised that people are so offended by a homescreen that they’re downvoting.
Do you not like my arrangement? Or is there something about live tiles themselves (what? They’re just like widgets)? What is it that has you downvoting over something so benign?
- Comment on Post your homescreen 3 weeks ago:
Windows phone for life
- Comment on Or at least I will when I find another FWB 😅 3 weeks ago:
I should have known
- Comment on Companies be like 4 weeks ago:
Product managers everywhere looking at a text inputs in their products and going 🤑
- Comment on Lemmy be like 4 weeks ago:
No, the general public doesn’t know what LLMs are.
we know what it is so we can have a conversation with the more specific terms.
But not only is this comic probably geared towards a larger audience, this is probably one of the things they’re joking about.I personally don’t give a rats ass that openAI and other scum are trying to appropriate the term AI for themselves.
What bothers me about them is that their marketing anthropomorphizes their products, making it almost impossible for people to have rational discussions about the tech without emotion coming into play. - Comment on Lemmy be like 4 weeks ago:
Your clearly didn’t actually read the nuanced take, which is why I didn’t provide a nuanced take in the first place.
I didn’t expect you to read between the lines.
I’m shocked that you expect people raising the alarm about something to also promote all the good features of the harmful thing, in the same breath.Watch out! The Ford Pinto may explode while you’re driving it! But wow, what a bargain! You’ll burn to death, but you’ll look chic in that fantastic modern styling, and the fuel economy is great! Take yours home today for only $8000!
Like can you imagine?
- Comment on Lemmy be like 4 weeks ago:
A slur is still a word.
I know youre trying to trap me in some stupid gotcha, but idk what you think that’d prove.What would you consider “linguistically correct” if not “follows grammar rules and conveys the intended meaning”?
If I say something absolutely heinous about your mother, does it stop being valid English just because it is morally reprehensible and fallacious? Of course not.
- Comment on Lemmy be like 4 weeks ago:
That is beyond pedantry.
That is how language works. Word definitions are literally just informal consensus agreement. Dictionaries are just descriptions of observed usage. Not literally everyone needs to agree on it.
This isn’t some kind of independent conclusion I came to on my own; I used to think like you appear to, but then I watched some explanations from authors and from professional linguists, and they changed my mind about language prescriptivism.If you say “AI” in most contexts, more people will know what you mean than if you say “LLM”. If your goal is communication, then by that measure “AI” is “more correct” (but again, correctness isn’t even applicable here)