Your example didn’t mention the use of the function keyword. Instead, it seemed to be questioning the placement of the return type - placing it after the argument list seems pretty common in newer languages.
- 11 Posts
- 846 Comments
sbv@sh.itjust.worksto Programmer Humor@programming.dev•Why make it complicated?English11·11 hours agoRust and TypeScript use the return-type-at-the-end convention as well.
sbv@sh.itjust.worksto Programmer Humor@programming.dev•Why make it complicated?English61·11 hours agoIn modern BASIC variants, DIM has become a backronym: “declare in memory”.
TIL. I always thought it was a backronym for
declare in (yo) momma
.
sbv@sh.itjust.worksto Programmer Humor@programming.dev•Why make it complicated?English34·11 hours agoonly the linter gives a hoot - the interpreter will happily leave that footgun for later
sbv@sh.itjust.worksto Ask Lemmy@lemmy.world•How do you think smartphone companies will comply with EU's *Easily Replacible Battery* Law? Removable Back cover? Simple Screws? Or EU-Specific models?English4·1 day agoI’m glad I didn’t have that experience. I think I had cases on those phones, so that might have been what made the difference.
sbv@sh.itjust.worksto Ask Lemmy@lemmy.world•How do you think smartphone companies will comply with EU's *Easily Replacible Battery* Law? Removable Back cover? Simple Screws? Or EU-Specific models?English29·2 days agoBack when removable batteries were a thing, the couple of phones I had both were removable without screws.
I have no strong feelings about what a removable battery should look like, but I love the idea of increasing a phone’s longevity easily.
sbv@sh.itjust.worksto Ask Lemmy@lemmy.world•Can you advocate for privacy by showing it? Does it work or will people never learn privacy in practice?English5·2 days agoWill people start caring for their privacy if most of the links posted were tracking free?
No. Most people won’t notice, and the sites they’re visiting have other tracking mechanisms.
I advocated for getting news from tracking free websites/ non-profits, people don’t seem to change.
Yes. Those sites fill a need/role. Non profits typically don’t have the same content factories that for-profit orgs do.
Will people on the long-term change or is it a lost cause?
Legislative change is the only way forward. You have a threat model that involves privacy, but most people don’t. Instead of trying to change everybody, focus on legislation that would improve privacy regulations for all.
sbv@sh.itjust.worksto RPGMemes @ttrpg.network•I've gotta look for players soon and I am W O R R I E DEnglish16·2 days agoBottom right.
sbv@sh.itjust.worksto Asklemmy@lemmy.ml•Should Lemmy (or a user) consider potentially adding a profanity counter bot similar to Reddit's u/profanitycounter?English1·5 days agoThe developers building Lemmy are very different from the folks building bots. I’ve got a half-assed repost bot working, but there’s no way I have the time or inclination to work on Lemmy itself.
Generally speaking, a bot needs to meet a much lower quality/reliability bar than the server does.
sbv@sh.itjust.worksto Asklemmy@lemmy.ml•Should Lemmy (or a user) consider potentially adding a profanity counter bot similar to Reddit's u/profanitycounter?English111·5 days agoI think I’m one of the few users that enjoyed Reddit’s random bots. Seeing the Accidental Haiku bot restructure a comment as haiku, or the Consecutive Number bot point out a number progression was fun.
As long as they’re polite, and respect community boundaries, I think they’re fun.
sbv@sh.itjust.worksto Asklemmy@lemmy.ml•Why are there so many people on youtube cheering on Trump's national garde and denouncing the protesters, but so few showing up on his military parade?English18·5 days agoPeople can post from anywhere, but need to be physically present to show up to a parade. And it’s easy for a single person to post multiple times. FWIW apparently the weather sucked too.
Weirdly, I haven’t seen news outlets provide estimates of the number of attendees. The closest I’ve seen is
attendance appeared to fall far short of early predictions that as many as 200,000 people would attend
from CBC. It sounds like it was low turnout, but I’m not clear how low.
Assuming the photos are legit, the No Kings protests clearly got a lot of people out.
I worry that training myself to be mean will bleed over into other parts of my life.
sbv@sh.itjust.worksto Space@mander.xyz•See the First-Ever Direct Images of the Sun's South Pole, Captured by the Solar Orbiter SpacecraftEnglish1·5 days agoHow you doin? Still got the dot?
sbv@sh.itjust.worksto Space@mander.xyz•See the First-Ever Direct Images of the Sun's South Pole, Captured by the Solar Orbiter SpacecraftEnglish21·5 days agoIs it orangey yellow? I bet it’s orangey yellow.
sbv@sh.itjust.worksto Today I Learned@lemmy.world•TIL: There is a demon named "Leonard". He's a three-horned goat in charge of orgies.English6·5 days agoFinally, I know who to complain to.
sbv@sh.itjust.worksto Ask Lemmy@lemmy.world•What game changing item*s can you buy for $100 or less?English105·5 days agoWhen are the bidet advocates gonna show up? This post has been up for like an hour!
EDIT: the bidet people have arrived. Thank goodness. I was starting to worry that my instance had been defederated.
sbv@sh.itjust.worksto Ask Lemmy@lemmy.world•Do you know of any course in programming that focuses on how data gets moved around thats more agnostic about language or platform?English7·5 days agoIt sounds like you’re asking about algorithms, which are (sort of) language-agnostic.
You’ll find some neat stuff if you search for bubble sort, Dijkstra’s algorithm, tree sort, hashing, complexity theory, and number theory. The last two are more theoretical.
To my knowledge, Introduction to Algorithms is the standard textbook used to teach university students about them. When I was in uni, it seemed to be the standard. Some people find it accessible. I did not.
sbv@sh.itjust.worksto Fediverse@lemmy.world•What happened to the fediverse stats here?English2·5 days agoHanlon’s Razor is all well and good as a heuristic, but tends to lead to people discounting malice much too often.
There’s definitely scenarios where that is the case.
Also, I really didn’t say we were “under attack”
I would describe a massive influx of spambots as an attack on a social media platform. It’s my characterization. I didn’t mean to imply that you said it.
AND MY AXE!