Readit News logoReadit News
spdionis commented on We shouldn't have needed lockfiles   tonsky.me/blog/lockfiles/... · Posted by u/tobr
zaptheimpaler · a month ago
Dependency management is a deep problem with a 100 different concerns, and every time someone says "oh here it's easy, you don't need that complexity" it turns out to only apply to a tiny subset of dependency management that they thought about.

Maven/Java does absolutely insane things, it will just compile and run programs with incompatible version dependencies and then they crash at some point, and pick some arbitrary first version of a dependency it sees. Then you start shading JARs and writing regex rules to change import paths in dependencies and your program crashes with a mysterious error with 1 google result and you spend 8 hours figuring out WTF happened and doing weird surgery on your dependencies dependencies in an XML file with terrible plugins.

This proposed solution is "let's just never use version ranges and hard-code dependency versions". Now a package 5 layers deep is unmaintained and is on an ancient dependency version, other stuff needs a newer version. Now what? Manually dig through dependencies and update versions?

It doesn't even understand lockfiles fully. They don't make your build non-reproducible, they give you both reproducible builds (by not updating the lockfile) and an easy way to update dependencies if and when you want to. They were made for the express purpose of making your build reproducible.

I wish there was a mega article explaining all the concerns, tradeoffs and approaches to dependency management - there are a lot of them.

spdionis · a month ago
Funnily enough PHP solved this perfectly with composer, but unfortunately it's not an enterprise-level programming language /s
spdionis commented on PHP: The Toyota Corolla of programming   deprogrammaticaipsum.com/... · Posted by u/secstate
spdionis · a month ago
Whenever I read HN talking about PHP I am reminded of the Gell-Mann Amnesia effect. The level of discussion on the topic is abysmal, compared to (I guess perceived?) the discussion on other topics.

It's interesting how clearly 80% of the developers in the community clearly have 0 clue about modern PHP. People mention shared hosting, code in html files, CGI and bad security defaults. To be clear these things have been dead in the PHP world for 10+ years, but most developers here have used it once in 2005 and haven't seen how it looks like in the modern ecosystem.

It's as if whenever the topic was Java, the discussion would center only around the devs working with Java 1.8.

Likely, the rest of the discussion on HN is of the same level, but I have a harder time spotting the errors.

spdionis commented on PHP: The Toyota Corolla of programming   deprogrammaticaipsum.com/... · Posted by u/secstate
Zak · a month ago
The author makes a fair point that the language is no longer the fractal of bad design it was in 2009, but doesn't make the case for starting a green field project with it in 2025.

What does it do better than other languages? The article mentions features that sound like parity with other modern languages, but nothing that stands out.

spdionis · a month ago
The comparison would be towards other languages in its class: Python, Ruby, Javascript.

Besides the shared nothing architecture mentioned by sibling:

- A more mature community and ecosystem for open source packages e.g. basics like following semver

- One single clear option for package management, which is also by far best in class

- Simply better performance except maybe compared to javascript

While the rest of the options may tick one of the above boxes, none of them ticks all 3.

spdionis commented on PHP: The Toyota Corolla of programming   deprogrammaticaipsum.com/... · Posted by u/secstate
DonHopkins · a month ago
I wouldn't trust a PHP developer who wasn't able to figure out how to become a JavaScript developer.
spdionis · a month ago
Normally PHP developers are competent in Javascript but try to avoid it due to the clusterfuck that javascript is, especially the ecosystem.
spdionis commented on PHP: The Toyota Corolla of programming   deprogrammaticaipsum.com/... · Posted by u/secstate
kstrauser · a month ago
It is literally exactly the same issue, just with slightly less of an error window. I don't think those devs are poor and dumb, but I do think it's likely they've been working in environments where production errors are more tolerated than in other environments.

> Maybe just maybe small chance of one bad request is not such a bad deal.

If your company is OK with that, seriously, sincerely, right on! Keep doing this and move on to other problems.

spdionis · a month ago
It is not the same issue, due to how opcache works. No one remotely competent runs PHP without opcache in 2025.
spdionis commented on Jeff Bezos' management rules are slowly unraveling inside Amazon   fortune.com/2024/07/31/am... · Posted by u/ecliptik
necovek · a year ago
SOAs serve the purpose to more clearly delineate responsibilities: any appearance of tight coupling is made relatively obvious.

Nothing stops someone from simply enforcing the same division in a single large code base. Your API contract can be your public API in whatever programming language, and this would allow you to work with the same assumptions from the SOA.

It would only be easier to break out of the recommended way of doing things, but you can provide simple tooling that does static analysis to prevent that (I remember using Zope3 security configuration to achieve exactly that with Python code in ~2006).

If you are concerned about a performance from such a large monolith, you could be using a functional language (or at least the pure functional paradigm) that allows easier infinite horizontal scaling.

spdionis · a year ago
> Nothing stops someone from simply enforcing the same division in a single large code base.

I'd say nothing except human nature.

spdionis commented on Jeff Bezos' management rules are slowly unraveling inside Amazon   fortune.com/2024/07/31/am... · Posted by u/ecliptik
9dev · a year ago
Well, that someone better be someone else than me, because I'm not going to do unpaid night shifts. If you want something running 24/7, it's surely important enough to warrant hiring someone else to take care of it while I'm asleep, no?

Keep your fancy valley salary (with the ridiculous rent prices attached), and I'll keep my European workers right's protection—including undisturbed sleep after my 8 hours workday.

spdionis · a year ago
Is it an US thing that on-call shifts are unpaid?

That is not common in Europe. Generous compensation and additional time off is quite typical for engineers handling on-call burdens.

spdionis commented on PHP Doesn't Suck Anymore   developerjoy.co/blog/php-... · Posted by u/falcon_
hu3 · a year ago
This is true in some aspects.

Instead of a PHP developer many are now calling themselves a Laravel developer because the framework is all they know.

spdionis · a year ago
Laravel and React/Angular developers right?
spdionis commented on PHP Doesn't Suck Anymore   developerjoy.co/blog/php-... · Posted by u/falcon_
hobofan · a year ago
Every argument like this that just focuses on the language features and performance completely misses the point.

When I hear people expressing that PHP "sucks", that's mostly coupled to the ecosystem, not necessarily the language itself. Yes, the biggest warts in the language might be non-issues now if you write 100% of your code yourself, but the ecosystem is the same as it ever was.

PHPs utilitarianism is its biggest strength but also its biggest weakness when it comes to its libraries. Packagist is mostly a graveyard of libraries that people have coded up for their exact niche use-case 8 years ago (with no updates since), with little flexiblity beyond that (like you would see for libraries in other ecosystems).

The popular frameworks (mainly the CMSs, but also some of the MVC ones) suffer from a similar fate: Great if you want to hack something up quickly or do a small extension to it, but full of footguns and lacking in developer tooling.

spdionis · a year ago
Have you checked out NPM?
spdionis commented on A drop in salaries and in the number of jobs available in the Bay Area   forbes.com/sites/jackkell... · Posted by u/pg_1234
pliesfan97 · 2 years ago
It’s quite sad to read him talk in 2005 about how online content was so authentic and not PR spam :/

I wonder if there will be another new type of media technology that will go through this same evolution, or if “authentic” content will gather somewhere else.

spdionis · 2 years ago
I think this is partially why things like discord and in general semi-private circles are very popular. Here on HN discord is often criticized cause it's inherently a closed platform but that also makes it less accessible for content enshittificators.

u/spdionis

KarmaCake day1261April 15, 2015View Original