Didn’t seem all that AI sloppy to me
- 0 Posts
- 40 Comments
Kache@lemmy.zipto
Programming@programming.dev•Cyclomatic caps: the limit is the lever, not the warning
7·17 days agoCyclomatic complexity is like trying to measure complexity of a mathematical formula by the counting penstrokes. Don’t mistake a metric’s ease of measurement for its correctness, see: productivity vs lines of code.
Every point under “Why?” is too optimistic about forced deconstructions being good, that all the small pieces will be cut along the right seams.
Breaking up a messy scribble in the wrong places just leaves you with the same messy knot, now as a shuffled jigsaw puzzle.
If the code is written for humans, then excercise human judgement and use a relaxed “complexity metric”. If the code is written for agents, then this metric matters even less. If forced to pick a number, I’d use something like 50+ to only alert on the truly excessive.
It’s Ruby. And yes, it could be simpler as a plain, pure function. There is nothing that warrants having the temporary objects, no tricky long-lived state, no leased/shared resource, etc
Kache@lemmy.zipto
Technology@beehaw.org•Logging In Was Never Supposed to Be This Complicated
4·2 months agoPasskeys are good at the fundamental level, but the practical implementation is lacking, despite their efforts.
IMO best way is /w a pw manager that’s also backed up, available, and synced everywhere you need it, but that’s a hurdle for most users.
I think the “intended way for normal ppl” is to set multiple keys, each on their trusted devices, like backup physical keys, but that’s kind of a pain to have for every service, too.
Kache@lemmy.zipto
Asklemmy@lemmy.ml•How come do we see neatly without correction under water?
7·3 months agoOP, have you always been using corrective goggles without knowing?
It’s satire
Kache@lemmy.zipto
Programming@programming.dev•How do you handle visual regression detection in production?
2·3 months agoDepends how much it matters. See if you can get the business to put it in dollar value terms or at least as opportunity costs against other eng work.
Would be sort of a spike project, but would be interested to see how well off-the-shelf VLMs could handle screenshot comparisons, and then a bit extra to see how to deploy them efficiently and effectively.
Kache@lemmy.zipto
Programming@programming.dev•Is it a good idea to replace PostgreSQL ILIKE search with Tantivy in Lemmy?
4·4 months agoway less work
Okay so do postgres tsvector then
Still an improvement
You probably still have other things you want to do, too
Also, the more advanced the feature is, reality is that the fewer users can make use of its full capability
But forget all that, if you feel like doing it anyway, then do it, this is FOSS
Kache@lemmy.zipto
Programming@programming.dev•Anyone else mass-renaming env variables and instantly regretting it?
1·4 months agoRefactor first
Engineering has to draw the line somewhere. Excuse my analogy, but if the order is “you are not allowed to clean up the construction site, only build”, and there’s so much crap around that it’s no longer safe, then the answer is, “no, I can’t work like this, find someone else to do it”
That said, there is an art to working in and managing tech debt. The amazing thing about software is how flexible and how twisted it can get behind the external interface
the GUIs people build aren’t good enough
Big agree
TUIs are inherently better than GUIs
Perhaps not inherently, but TUI users have much less tolerance for “lag”, so TUI apps are built to that expectation. That’s often not the case for GUIs.
Kache@lemmy.zipto
Games@sh.itjust.works•Box3D | A revolutionary new physics engine developed by Erin Catto in collaboration with a Valve devEnglish
2·4 months agoDidn’t watch whole demo, but one thing: rotational gyroscopic torque
He showed Box3D correctly modelling: https://www.youtube.com/watch?v=1VPfZ_XzisU
And compared it to a game in Unreal when a spinning rifle had an unnatural perpetual motion spinning quality to it
Check out out: https://box2d.org/posts/2026/06/announcing-box3d/
Why is right-to-left for WHOLE PARAGRAPHS possible for Arabic languages, but not for CJK nor the Latin alphabet?
Kache@lemmy.zipto
Technology@beehaw.org•Amazon employees are "tokenmaxxing" due to pressure to use AI tools
24·6 months ago“Hi, agent. Launch two additional agent instances. Prompt them with this message.”
Kache@lemmy.zipto
Programming@programming.dev•The "Negative split" software engineering effect
1·6 months agoAbsolutely silly premise. Continuing the author’s analogy, how would pacing oneself in one marathon improve performance in the race tomorrow? What about next week (a race of indeterminate length)? Or next month (turns out will be a triathlon, but you don’t know it yet)?
It doesn’t, and the “races” that engineering teams run are more like those latter examples than they are like performance during a single marathon.
Kache@lemmy.zipto
Asklemmy@lemmy.ml•Why did solar panel blinds/curtains never take off?
12·6 months agoA solar panel that occasionally blocks a window would be completely useless the other part of the time.
A window permanently blocked by a solar panel is better known as a wall with a solar panel on it.
A vertical wall with a solar panel will not be as effective as one angled towards the sun, such as one on a roof might be.
Kache@lemmy.zipto
Asklemmy@lemmy.ml•How to explain to a tech illiterate how Mastodon works?
5·7 months agoIt’s like Twitter, but anybody is free to spin up their own instance, and they’re all inter-compatible, so any one can view content from any other.
That freedom and openness gives users choice. If one instance owner turns out to be a real dick, the community is able to move off of and blacklist it.
Email is an oft used example. Leaving Gmail doesn’t lock you out of email because you can switch to a different provider or (with enough effort) even run your own email.
“$0” just means they don’t charge a flat fee on top. You’d have to check the conversion rate they give you compared to market rate to really know.
It can be the case, even likely, that your card’s rate is better than local currency converters and atms targeting tourists, but point is they’re still not doing for free.
In the short term, a small amount of duplication to prevent bad abstraction spaghetti is worth it
In the medium term, true duplications are better extracted after the fact rather than correctly guessing future reusability.
In the long term, total extraction into separate vertical or external package, as suggested by the author.
Over time, this progression is natural and unforced. If you don’t need an abstraction to be de-deuplicated, then don’t. If you don’t need to promote an abstraction into its own vertical/package, then don’t.
Kache@lemmy.zipto
Asklemmy@lemmy.ml•What happens if someone refuses to work in a socialist economy?
5·7 months agoSet it up so those that don’t work also don’t get enough money to do those fun things.
Enough to not die, but not enough to live.

This is merely one instance/example of a deeper principle: avoid mixing layers of abstraction