Readit News logoReadit News
Too commented on Go is still not good   blog.habets.se/2025/07/Go... · Posted by u/ustad
diarrhea · 2 days ago
Yes, Python is massively ahead there. The largest wart is that types can be out of sync with actual implementation, with things blowing up at runtime -- but so can Go with `any` and reflection.

Python, for a number of years at this point, has had structural (!) pattern matching with unpacking, type-checking baked in, with exhaustiveness checking (depending on the type checker you use). And all that works at "type-check time".

It can also facilitate type-state programming through class methods.

Libraries like Pydantic are fantastic in their combination of ergonomics and type safety.

The prime missing piece is sum types, which need language-level support to work well.

Go is simplistic in comparison.

Too · a day ago
This. Both Typescript and Python type systems are way far ahead, with structural typing, exhaustive checks and much more.
Too commented on Go is still not good   blog.habets.se/2025/07/Go... · Posted by u/ustad
hnlmorg · 2 days ago
Really? I find the opposite is true. If I need lexical scope then I’d just write, for example

  f.Close() // without defer 
The reason I might want function scope defer is because there might be a lot of different exit points from that function.

With lexical scope, there’s only three ways to safely jump the scope:

1. reaching the end of the procedure, in which case you don’t need a defer)

2. A ‘return’, in which case you’re also exiting the function scope

3. a ‘break’ or ‘continue’, which admittedly could see the benefit of a lexical scope defer but they’re also generally trivial to break into their own functions; and arguably should be if your code is getting complex enough that you’ve got enough branches to want a defer.

If Go had other control flows like try/catch, and so on and so forth, then there would be a stronger case for lexical defer. But it’s not really a problem for anyone aside those who are also looking for other features that Go also doesn’t support.

Too · a day ago
Skipping defer ignores panics, with problems explained in the tfa.
Too commented on Vendors that treat single sign-on as a luxury feature   sso.tax/... · Posted by u/vinnyglennon
haswell · 4 days ago
To add an anecdote from the other perspective, I was the PM for the authn/z capabilities of a big enterprise platform.

SSO was one of the greatest support burdens due to the numerous protocols we supported and the vast array of sometimes bizarre, often complex auth environments across the customer base.

The biggest hidden cost came from the complete lack of consistency in auth implementations from 3rd party vendors, i.e. it wasn’t enough to implement the SAML/OIDC/etc specs, because many of the systems our customers wanted to connect with had not implemented to spec.

This is all prior to dealing with 2FA which was definitely another major factor.

Too · 4 days ago
But with SSO you can offload all the 2FA handling to the IdP.
Too commented on Show HN: Edka – Kubernetes clusters on your own Hetzner account   edka.io... · Posted by u/camil
Too · 7 days ago
Why isn’t Hetzner providing a managed control plane themselves? Seems like a small investment to make for the return of converting massive amounts of customers stuck on GKE/EKS/AKS. That, plus a good IAM story, and they will be seen as a full cloud solution, not just a basement of servers. They have the infrastructure, it just need to be packaged.
Too commented on Good system design   seangoedecke.com/good-sys... · Posted by u/dondraper36
bob1029 · 8 days ago
This is a big part of what makes ORMs a problem.

Writing raw SQL views/queries per MVC view in SSR arrangements is one of the most elegant and performant ways to build complex web products. Let the RDBMS do the heavy lifting with the data. There are optimizations in play you can't even recall (because there's so many) if you're using something old and enterprisey like MSSQL or Oracle. The web server should be able to directly interpolate sql result sets into corresponding <table>s, etc. without having to round trip for each row or perform additional in memory join operations.

The typical ORM implementation is the exact opposite of this - one strict object model that must be used everywhere. It's about as inflexible as you can get.

Too · 8 days ago
With an ORM your application code is your views.

You can write reusable plain functions as abstractions, returning QuerySets that allow further filters being chained onto the query, before the actual SQL is materialized and sent to the database.

The result of this doesn’t have to match the original object models you defined, it’s still possible to be flexible with group bys resulting in dictionaries.

Too commented on The future of large files in Git is Git   tylercipriani.com/blog/20... · Posted by u/thcipriani
TZubiri · 8 days ago
"Will they remember to write the filter? Maybe, "

Nothing wrong with "forgetting" to write the filter, and then if it's taking more than 10 minutes, write the filter.

Too · 8 days ago
What? Why would you want to expose a beginner to waiting 10 minutes unnecessarily. How would they even know what they did wrong or what's a reasonable time to wait, ask chatgpt "why is my git clone taking 10 minutes"?!

Is this really the best we can do in terms of user experience? No. git need to step up.

Too commented on Abusing Entra OAuth for fun and access to internal Microsoft applications   research.eye.security/con... · Posted by u/the1bernard
Too · 14 days ago
Not surprising at all. The configuration and docs for Oauth2 on Entra is an absolute cluster-f. Evidently, it’s so confusing that not even Microsoft themselves can get it right.

Their solution to this will be to add even more documentation, as if anyone had the stomach to read through the spaghetti that exist today.

Too commented on I prefer human-readable file formats   adele.pollux.casa/check-h... · Posted by u/Bogdanp
Too · 15 days ago
Let’s say that hypothetically one were to disagree with this. What would be the best alternative format? One that has ample of tooling for editing and diffing, as though it was text, yet stores things more efficiently.

Most of the arguments presented in TFA are about openness, which can still be achieved with standard binary formats and a schema. Hence the problem left to solve is accessibility.

I’m thinking something like parquet, protobuf or sqllite. Despite their popularities, still aren’t trivial for anyone to edit.

Too commented on Cursed Knowledge   immich.app/cursed-knowled... · Posted by u/bqmjjx0kac
Sammi · 16 days ago
Saga starts here:

https://x.com/BenjaminMcCann/status/1804295731626545547?lang...

https://github.com/A11yance/axobject-query/pull/354

Specifically Ben McCann along with other Svelte devs got tired of him polluting their dependency trees with massive amount of code and packages and called him out on it. He doubled down and it blew up and everyone started migrating away from his packages.

ljharb also does a lot of work on js standards and is the guy you can thank for globalThis. Guy has terrible taste and insists everyone else should abide by it.

Too · 15 days ago
Wow. If this is not laying the foundation for a supply chain attack I don’t know what this is.
Too commented on Overengineering my homelab so I don't pay cloud providers   ergaster.org/posts/2025/0... · Posted by u/JNRowe
cyprien_g · 16 days ago
The maintenance time is a bit overestimated if you keep it simple.

On my homelab, I update everything every quarter and it takes about 1 hour, so 4 hours a year is pretty reasonable. Docker helps a lot with this.

And I’ve almost never run into trouble in years, so I have very few unexpected maintenance tasks.

EDIT: I am referring to a homelab that is only accessible for private purposes through a VPN.

Too · 15 days ago
Who maintains the VPN?

u/Too

KarmaCake day4424October 7, 2011View Original