Lemminary
Compulsive comment editor, all in good faith.
#Sorry not sorry for the edit
- 14 Posts
- 1.87K Comments
Not wrong, but funnily enough, it’s a linting rule win. I’d go nuts if I didn’t have my type checks and my linters. My current L, though, is setting up the projects initially and dealing with the configuration files if I raw dog it, but that’s a problem with ESLint configs and the ecosystem as a whole having to deal with those headaches. So in the end, the JS devs got clever and shifted the blame to the tooling. 😅
Lemminary@lemmy.worldto
Programmer Humor@programming.dev•Been there, done that, would not recommend
2·1 year agoThere are dozens of us! But also, I have a masochistic tendency to update my old code to use the new language features and make it somewhat readable.
Same here. My brain interprets them as one long run-on sentence and throws a parsing error.
Explanation for nerds
The reason is the JS compiler removes whitespace and introduces semicolons only “where necessary”.
So writing
function myFn() { return true; }Is not the same as
function myFn() { return true; }Because the compiler will see that and make it:
function myFn() { return; true; }You big ol’ nerd. Tee-hee.
That’s TypeScript. I can tell by the pixels defining a type above.
Lemminary@lemmy.worldtoHacker News@lemmy.bestiver.se•Did California's Fast Food Minimum Wage Reduce Employment?English
2·1 year agoTo summarize the summary, California’s $20 fast food minimum wage, enacted in September 2023 and effective April 2024, led to a 3.2% employment decline after adjusting for pre-AB 1228 trends, amounting to an estimated loss of 18,000 fast food jobs.
Sounds great for such a dramatic increase in wages! The Y Combinator comments generally find this a good thing while a minority clutches their pearls over corporate wellbeing. Won’t someone think of the corporations?? D:
I once asked Canva to make me a UI and got candid pictures of people in parties and such. It was so left field and unrelated to what I asked that it caught me off guard.
Lemminary@lemmy.worldto
Science@mander.xyz•Muscles made from cow cells could make lab-grown burgers better
2·1 year agoThe title is still off.
The breakthrough is about using a “three-molecule cocktail” to grow functional cow muscle with thick fibers whereas previous methods could only grow thin fibers. The lab can grow meat that more closely resemble regular beef because the cells differentiate better, producing other necessary proteins that allows it to contract using those fibers for support.
Crazy that this finding comes from basic research into muscle diseases in rats.
Lemminary@lemmy.worldto
Technology@lemmy.zip•Zuckerberg says people without AI glasses will be at a disadvantage in the futureEnglish
5·1 year agoIs not being shoved ads in my face a disadvantage?
Lemminary@lemmy.worldtoHacker News@lemmy.bestiver.se•Psilocybin produces substantial sustained decreases in depression and anxietyEnglish
2·1 year agoIt’s anecdotal, but I tried psilocybin before moving countries. I thought it was the change of setting but it may have been a combination of the two. Highly recommended.
s[^1]
Ohh wow, I’ve been learning it casually for years, and I didn’t know that existed in C#. I guess I should go back and hit the books some more.
It’s simple. The only problem is that your code sucks!
Yeah, but did your dad work at Blizzard??
And then promptly get yourself familiar with how the language actually works. https://github.com/getify/You-Dont-Know-JS
People who complain about JS often assume it has features of other languages and fail to realize it has its own architecture and winding history.
You’re probably preaching to the choir here. lol
His engineers swear by it! To his face, at least.














Erm, yes? Been programing for 15 years, I think I know my way around. 😅