Readit News logoReadit News
phanimahesh commented on Why can't a gear have less than 17 teeth   machinemfg.com/why-cant-t... · Posted by u/thunderbong
chrisjj · 4 days ago
> Gears are a common type of spare part used in various industries...

/Spare/?

The whole thing looks like "AI" mashup.

phanimahesh · 3 days ago
Definitely. Horrible formatting and explanations, bunch of facts mashed together without coherence, weird references to netizens. I wonder how bad the model and prompt must have been to arrive at this.
phanimahesh commented on Homeless people used as mobile Wi-Fi hotspots (2012)   nbcnews.com/id/wbna467147... · Posted by u/KomoD
thisislife2 · 4 days ago
Seems like an manufactured controversy - homeless people were given a temporary job and earned money. What's the difference in paying them to show a shop / company sign on the streets to asking them to roam around in a conference with a hotspot device?
phanimahesh · 4 days ago
20 a day is not a job worthy wage as I understand it.

The T shirts were also dehumanising. It wouldn't have taken much effort to go from "I'm Clarence a mobile Hotspot" to "I'm Clarence and I'm carrying a mobile Hotspot."

phanimahesh commented on Using TypeScript to obtain one of the rarest license plates   jack.bio/blog/licenseplat... · Posted by u/lafond
decimalenough · 6 days ago
Yup!

> Fees for room and board—yes, literally for a thin mattress or even a plastic “boat” bed in a hallway, a toilet that may not flush, and scant, awful tasting food—are typically charged at a “per diem rate for the length of incarceration.” It is not uncommon for these fees to reach $20 to $80 a day for the entire period of incarceration.

https://www.brennancenter.org/our-work/analysis-opinion/amer...

phanimahesh · 5 days ago
Holy hell I've read it's bad but this is horrible but very on brand for the capital of capitalism.
phanimahesh commented on Using TypeScript to obtain one of the rarest license plates   jack.bio/blog/licenseplat... · Posted by u/lafond
eudamoniac · 6 days ago
This is a mockery of the term "slavery". It is no more slavery to be coerced to work for a shorter sentence than it is slavery to be coerced to follow the law to avoid prison.

"Behave a certain way and you will be imprisoned for less/no amount of time" is not slavery unless the law is slavery. The full term imprisonment is just, and being able to shorten it is a privilege.

phanimahesh · 5 days ago
> The full term imprisonment is just

This is a contested assumption. Prisons and penal systems in US as I understand it are for profit.

phanimahesh commented on Control structures in programming languages: from goto to algebraic effects   xavierleroy.org/control-s... · Posted by u/SchwKatze
mabster · 2 months ago
I'm the opposite - I really like checked exceptions in Java because it's very easy to see how developers are handling errors and they also form part of the function signature.

Most functions will just pass on exceptions verbatim so it's better than error return values because with them the entire codebase has to be littered with error handling, compared to fewer try catch blocks.

setjmp, etc. are like unchecked exceptions, so I'm also not a fan, but I use this occasionally in C anyway.

phanimahesh · 2 months ago
Why would errors as return values have to propagate any farther in the codebase compared to errors as exceptions? If exceptions can be handled, so can the value based errors.
phanimahesh commented on Ultrasound is ushering a new era of surgery-free cancer treatment   bbc.com/future/article/20... · Posted by u/1659447091
fragmede · 2 months ago
Shit, you figured it out. It's not! That's whats been causing all the autism! Big ultrasound has been managing to keep this under wraps for decades!
phanimahesh · 2 months ago
Please don't be sarcastic for a possibility genuine question. It contributes to alienating the askers, not to mention the risk of some taking it quite literally.
phanimahesh commented on Everything that's wrong with Google Search in one image   bitbytebit.substack.com/p... · Posted by u/recroad
VladVladikoff · 3 months ago
Wondering if OP has malware that’s injecting results into the search.
phanimahesh · 3 months ago
We all have the malware injecting results into our searches. The ad networks graciously run part of the malware server side.
phanimahesh commented on Dear GitHub: no YAML anchors, please   blog.yossarian.net/2025/0... · Posted by u/woodruffw
TheDong · 3 months ago
Wanna DRY out your github actions yaml?

Generate it from Dhall, or cue, or python, or some real language that supports actual abstractions.

If your problem is you want to DRY out yaml, and you use more yaml features to do it, you now have more problems, not fewer.

phanimahesh · 3 months ago
This. So true. Yaml has always been an overly complicated format, with weird quirks ( like norway becoming false in a list of country codes ).

I find it an absolute shame that languages like Dhall did not become more popular earlier. Now everything in devops is yaml, and I think many developers pick yaml configs not out of good reasons but defaulting to its ubiquity as sufficient.

phanimahesh commented on The bloat of edge-case first libraries   43081j.com/2025/09/bloat-... · Posted by u/PaulHoule
_bent · 3 months ago
It's annoying, but not for the error handling. To the contrary, I think the error handling is actually improved by this pattern. If you manually convert beforehand you easily run into working with a Result<Result<T, E>, E>.

What I find annoying about the pattern is that it hinders API exploration through intellisense ("okay, it seems I need a XY, how do I get one of them"), because the TryFrom (sort of) obscures all the types that would be valid. This problem isn't exclusive to Rust though, very OO APIs that only have a base class in the signature, but really expect some concrete implementation are similarly annoying.

Of course you can look up "who implements X"; it's just an inconvenient extra step.

And there is merit to APIs designed like this - stuff like Axum in Rust would be much more significantly more annoying to use if you had to convert everything by hand. Though often this kind of design feels like a band aid for the lack of union types in the language.

phanimahesh · 3 months ago
The errors in the result might be different types and need different handling, so nested result might not be undesirable

u/phanimahesh

KarmaCake day251February 7, 2014
About
[ my public key: https://keybase.io/phanimahesh; my proof: https://keybase.io/phanimahesh/sigs/NadMajoHlBwZBT2PBlfdDwb-X1SgUSg6MuDYl7eU5-Q ]
View Original