Readit News logoReadit News
BoppreH commented on Using Python for Scripting   hypirion.com/musings/use-... · Posted by u/birdculture
sevensor · 2 days ago
The Python stdlib does not get enough credit. People complain about things like how its http client is dated and slow, but it’s pretty amazing that it’s just right there if you need it, no external dependencies needed. And it’s sitting right next to difflib, graphlib, pathlib, struct, glob, tkinter, and dozens of others. Sure, every one of these is limited individually, but those limitations are stable and well understood!
BoppreH · 13 hours ago
Absolutely agree, but it's funny that you mentioned graphlib. It has a single algorithm (topological sort)!

The sqlite, tkinter, and shelve modules are the ones I find most impressive.

BoppreH commented on Programmers and software developers lost the plot on naming their tools   larr.net/p/namings.html... · Posted by u/todsacerdoti
themafia · 3 days ago
> but its engine is the memorably named V8.

You're misremembering. It's the "Windsor V8." Or more specifically the "4.8L Windsor Ford V8."

BoppreH · 3 days ago
Thanks, I'm not a car guy. I double checked with Wikipedia, but clearly I don't even know where I'm supposed to look.
BoppreH commented on Programmers and software developers lost the plot on naming their tools   larr.net/p/namings.html... · Posted by u/todsacerdoti
leipert · 3 days ago
Also the author misses how elements, species and astronomical objects are named. After random places, people, games, fictional characters, etc.

Names are just names. It’s nice if they are kind of unique and have no collisions.

BoppreH · 3 days ago
Elements are numbered, species are messy categories to begin with and too numerous, and astronomical objects do have sensible naming[1].

But to me it's still unclear what a good naming culture would look like for programmers.

[1] https://en.wikipedia.org/wiki/Astronomical_naming_convention...

BoppreH commented on Programmers and software developers lost the plot on naming their tools   larr.net/p/namings.html... · Posted by u/todsacerdoti
munificent · 3 days ago
> This would be career suicide in virtually any other technical field.

This article would certainly disagree with you:

https://en.wikipedia.org/wiki/List_of_U.S._Department_of_Def...

> the Golden Gate Bridge tells you it spans the Golden Gate strait.

Is that even a meaningful distinction? Does anyone think, "Gee, I'd really like to cross the Golden Gate strait?" or do they think "I want to get to Napa?".

> The Hoover Dam is a dam, named after the president who commissioned it, not “Project Thunderfall” or “AquaHold.”

It was actually called the "Boulder Canyon Project" while being built, referred to as "Hoover Dam" even though finished during the Roosevelt administration, officially called "Boulder Dam", and only later officially renamed to "Hoover Dam".

The fact that Herbert Hoover initiated the project tells you nothing meaningful about it. Would "Reitzlib" be a better name than "Requests"?

> If you wrote 100 CLIs, you will never counter with a cobra.

But out in the real world, you could encounter a Shelby Cobra sports car, Bell AH-1 Cobra chopper, USS Cobra (SP-626) patrol boat, Colt Cobra handgun, etc.

> No chemist wakes up and decides to call it “Steve” because Steve is a funny name and they think it’ll make their paper more approachable.

When you open your medicine cabinet, do you look for a jar labeled "acetylsalicylic acid", "2-propylvaleric acid", or "N-acetyl-para-aminophenol"? Probably not.

It's a bad sign when all of the examples in an article don't even agree with the author's point.

BoppreH · 3 days ago
I think the author makes a hard distinction between consumer products and infrastructure/engineering products. The Shelby Cobra has a funny name, but its engine is the memorably named V8. The Hoover Dam is a dam, and the Golden Gate Bridge is a bridge.

We can argue about namespace pollution and overly long names, but I think there's a point there. When I look at other profession's jargon, I never have the impression they are catching Pokemon like programmers do.

Except for the ones with Latin and Greek names, but old mistakes die hard and they're not bragging about their intelligibility.

BoppreH commented on GPT-5.2   openai.com/index/introduc... · Posted by u/atgctg
tedsanders · 3 days ago
Yep, the point we wanted to make here is that GPT-5.2's vision is better, not perfect. Cherrypicking a perfect output would actually mislead readers, and that wasn't our intent.
BoppreH · 3 days ago
That would be a laudable goal, but I feel like it's contradicted by the text:

> Even on a low-quality image, GPT‑5.2 identifies the main regions and places boxes that roughly match the true locations of each component

I would not consider it to have "identified the main regions" or to have "roughly matched the true locations" when ~1/3 of the boxes have incorrect labels. The remark "even on a low-quality image" is not helping either.

Edit: credit where credit is due, the recently-added disclaimer is nice:

> Both models make clear mistakes, but GPT‑5.2 shows better comprehension of the image.

BoppreH commented on Australia begins enforcing world-first teen social media ban   reuters.com/legal/litigat... · Posted by u/chirau
yladiz · 4 days ago
In the EU you don’t need to upload your ID anywhere, the service can use the government’s portal for ID verification. In the case of age verification they can get a yes/no response if the age is above some threshold. This is opaque to the service so they wouldn’t get any additional ID details.
BoppreH · 4 days ago
That's a very good technical solution, but socially it can be foiled by an official-looking alert saying "failed to scan card, please do X instead".

And that's assuming the technical solution is deployed everywhere. I'm in the EU with one of those IDs, and I still had to upload photos of my passport and scan my face to open a bank account. The identification process even had its own app that I had to install.

BoppreH commented on Google confirms Android attacks; no fix for most Samsung users   forbes.com/sites/zakdoffm... · Posted by u/mohi-kalantari
JohnTHaller · 6 days ago
Google Pixel 7 and Pixel 7 Pro are still stuck on the October patches.
BoppreH · 6 days ago
You might be on a slow rollout group, I got the December patch on my Pixel 7.
BoppreH commented on The fuck off contact page   nicchan.me/blog/the-f-off... · Posted by u/OuterVale
BoppreH · 6 days ago
The most impressive "fuck off contact page" I've seen was from Trade Republic, an investment app. The support page has a QR code to the in-app FAQ and nothing else.

Turns out that a handful of FAQ answers have a chat widget (with a chatbot, of course) that can be coaxed into switching out to a human. But if your topic is not on the FAQ, the answer doesn't have a chat widget, or you don't randomly click around other topics, you'll never find a contact form.

Even the "complaints" email address found in their legally-mandated Impressum just auto-replies with instructions to use the app help. I've since closed my account, but I'm still amazed how a company holding people's money can shield itself so completely from customers.

BoppreH commented on Show HN: Network Monitor – a GUI to spot anomalous connections on your Linux    · Posted by u/grigio
simoncion · 14 days ago
> It's a bit sad that [we're parsing output] ... generated by a 6000-line C program[2] ...

> That's something I miss from Windows, at least PowerShell has built-in commands that give you structured output.

It sure is something to disparagingly point to the LoC of 'ss' in one sentence, then pine for both PowerShell and the Windows infrastructure that supports it in the next.

You mentioned processing the output with regexes. That's definitely a code smell, but this is one line of the data from the 'ss' command in question, with fancily-aligned header line included, but with vast tracts of whitespace removed. The regex you pointed out is processing the column whose comma-separated data is enclosed in parens:

  Netid State     Recv-Q Send-Q  Local Address:Port  Peer Address:Port Process                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
  tcp   LISTEN    0      666              [::]:22            [::]:*     users:(("sshd",pid=1337,fd=7)) ino:1338 sk:2024 cgroup:/openrc.sshd v6only:1 <->                         

They definitely didn't have to use a regex to process that, but chose to.

You could argue that a system that let you write client code that goes something like

    socket[i].process.users[0].cmd, socket[i].process.users[0].pid, socket[i].process.users[0].fd
is superior to one that requires writing something that makes use of the moral equivalent of 'cut'. I'd argue two things, one of them informed by my professional experience with PowerShell

1) What happens when the "structured" data you rely on changes shape? When that system that produces that "structured" data changes 'users' to 'user_list', 'cmd' to 'local_command', or deletes 'process' and moves 'users' up into its place, you're just as screwed as if 'ss' changed its output format in a way that wasn't backwards-compatible.

2) The core Microsoft tools might all produce "structured" data, but -in my professional experience- so, very, very little "community-provided" PowerShell code does. Why? I don't know for sure, but probably because it's notably more difficult to make a script or library produce that sort of data than it is to just emit regularly-formatted text.

BoppreH · 14 days ago
The problem of data changing shape can happen regardless, but with text you have the added danger of escaping characters and ambiguities. Not to mention there are ad-hoc text formats for each and every tool, which can change from one version to another.

And you're right, PowerShell is far from perfect. I miss some of its design goals, not the whole thing.

BoppreH commented on Show HN: Network Monitor – a GUI to spot anomalous connections on your Linux    · Posted by u/grigio
BoppreH · 15 days ago
Cool project, I wish we had more GUIs for these OS functions. How was your experience with GTK4 and Rust?

And it's a bit sad that in the year of our lord 2025, the best way to get such fundamental information is by using regexes to parse a table[1], generated by a 6000-line C program[2], which is verified by (I hope I'm wrong!) a tiny test suite[3]. OSQuery[4] is also pretty cool, but it builds upon this fragile stack.

That's something I miss from Windows, at least PowerShell has built-in commands that give you structured output.

[1] https://github.com/grigio/network-monitor/blob/9dc470553bfdd...

[2] https://github.com/iproute2/iproute2/blob/main/misc/ss.c

[3] https://github.com/iproute2/iproute2/blob/main/testsuite/tes...

[4] https://osquery.io/

u/BoppreH

KarmaCake day5984March 17, 2010
About
mailto:hn@boppreh.com

[ my public key: https://keybase.io/boppreh; my proof: https://keybase.io/boppreh/sigs/4-D6DKr53W1wW-qfMoBPO8F8WpjGzX3RrN7_Fd0Wr_0 ]

View Original