Better HN
topnewbestaskshowjobs
Log inSign up

roguecoder

3,357 karma · joined Oct 28, 2011 (15y ago) · 1,345 submissions

Submissions

comment 1y ago · link · parent

The most common alternative to organizing teams by service boundaries is to organize teams around the business problems to be solved. That is a lot easier to budget for than trying to staff by microservice boundary, doesn't have the coordination and planning overhead, and it means you aren't reliant on up-front planning to get to a functional solution or design.

In high-uncertainty greenfield development, Explore projects or Lean Startup-style experimentation, having developer be close to the users they are serving is very efficient.

It also lets those companies reteam frequently, without needing to change the software to match the new team boundaries, which is very helpful when growing the team.

comment 1y ago · link · parent

That's even more true for microservices, though, since I have yet to see a microservice architecture that automatically runs end to end tests before deploying.

The post I was replying to said "your build will still break": that's what I was taking issue with. In this day and age there is no reason our trunk build should ever be broken.

comment 1y ago · link · parent

I haven't seen a broken build in at least nine years, not since I left the company with a merge process built out of bash scripts that took three hours and required manual hand-holding.

I am genuinely curious what situations you are seeing where builds are making it through CI and then don't compile.

It isn't always worth investing in quality, but when it is it is entirely possible to write essentially bug-free software. I've gone seven months without a bug in production and the one we saw we had a signed letter from product saying "I am okay if this feature breaks, because I think writing the tests that can verify this integration was going to take too long."

FAANG companies aren't prioritizing writing software well: they are prioritizing managing 50,000 engineers. Which is a much harder problem, but the management solutions that work for that preclude the techniques that let us write bug-free software.

One of the great things about startups is that it is trivial to manage five engineers, so there is no reason we have to write software badly.

comment 1y ago · link · parent

I am so mad that the mockists stole the word "unit test" for their thing. The original definition of a unit test was writing "integration" tests for each of the sub-components of a system.

(Mockist tests are fine for people who really want them, as long as you delete them before checking in the code.)

comment 1y ago · link · parent

Containerization is another thing that is wildly overused by startups that don't yet have the problems it solves.

comment 1y ago · link · parent

Watch out for bit rot, though: it is very easy for a startup to come back to one of those microservices six months later and discover the dependencies are borked and it no longer even builds.

Each repo you create is one more set of Dependabot alerts you need to keep on top of.

comment 1y ago · link · parent

I assume he means building the product out of AWS legos like Lambdas. Stick it all under one account, manage it manually instead of trying to deal with Terraform and it isn't too bad.

Heroku is still way easier, though.

comment 1y ago · link · parent

Bingo!

Every good monolith I've worked in (and I have worked in several, including one that was more than twenty years old) was highly-modular, well-designed with an easy-to-explain architecture.

The other thing they had in common was that code reviews talked about the aesthetics of the code and design, instead of just hunting for errors or skimming for security problems. It was relatively common to throw out the first proposed PR and start over, and that was fine because people were slicing the work small enough they were posting four to six PRs a week anyway.

It took the engineers at the company being willing to collaborate on the craft of software development and prioritize the long-term health of the code over short-term feature delivery. And the result of being willing to go a little bit slower day-to-day was that the actual feature delivery was faster than anywhere else I've ever worked.

Without a functioning professional culture, nothing is going to be great. But at least with microservices people do have to design an API at some point.

comment 1y ago · link · parent

For unit testing to pay off, it requires having modular units to test.

Programmers coming up through frameworks or functional programming often don't have those, and so the techniques OO unit testers use don't translate well at all. If the first "unit" you build is a microservice, the first possible "unit" test is the isolation test for that service.

I have watched junior engineers crawl over glass to write tests for something because they didn't know how to write testable code yet, and then the tests they write often make refactoring a-la-Martin-Fowler's-book impossible.

(And that is leaving aside the consultancies that want to be able to advertise "100% test coverage!" but don't actually care if the tests make software harder to maintain in the long run because they aren't going to be there.)

Eventually we'll be able to acknowledge that there are a lot of different skills in our profession, and that writing good code isn't about being "smart": it's about knowing how to write code well. But until then people will keep blaming the tools they don't know how to use.

comment 1y ago · link · parent

Conway's law is about communication, not team boundaries. There is no requirement that we introduce a significant architectural boundary at the boundary between teams: companies choose to do so to avoid having cross-team communication.

The only way for significant architectural boundaries at team boundaries to not result in incredibly painful software, especially for a growing team, is to let the software organize the teams. Which means reorging the company whenever you need to refactor, and somehow guessing right about how many changes each component will need in the coming year.

It also means you can't have product and engineers explore a problem together, or manage by objective with OKRs since engineers aren't connected to business outcomes.

I know that all the ex-Amazonians are convinced this is the only way to build software, but it really, really isn't.

comment 1y ago · link · parent

"Need"? Probably not. But unlike microservices they don't really have downsides (at least not with modern IDEs and the automatic refactorings they support) and they do offer some benefits.

Statically-types languages are a form of automatically-verified documentation, and an opportunity to name semantic properties different modules have in common. Both of those are great, but it is awkward that it is usually treated as an all-or-nothing matter.

Almost no language offers what I actually want: duck typing plus the ability to specify named interfaces for function inputs. Probably the closest I've found is Ruby with a linter to enforce RDoc comments on any public methods.

comment 1y ago · link · parent

That is not really an issue I've had with Java, but I would absolutely agree that Python is wildly unsuited as a production backend language.

I don't think it's much better if you have to spend a year and a half updating 400+ different repos, though. It's much easier to use an operationalized language that knows backwards compatibility matters.

comment 1y ago · link · parent

People misunderstanding Conway's Law is a big part of the problem for sure. The law says nothing about team boundaries: it talks about communication pathways.

The paranoid socialist in me thinks big companies like team-sized microservices because it lets them prevent workers from talking to each other without completely ruling out producing running software.

When companies instead encourage forums for communication across team boundaries, it unlocks completely different architectural patterns.

comment 1y ago · link · parent

If it is possible for that other team to merge a broken build, you are doing it wrong.

If you are concerned about someone else breaking your thing, good! You were going to eventually break it yourself. Write whatever testing gives you confidence that someone else's changes won't break your code, and, bonus, now you can make changes without breaking your code.

comment 1y ago · link · parent

Part of the problem is that many current programmers came up through functional programming or framework-based development. Microservices are often the first time they encountered modular programming or encapsulation, and so they equate "literally any architecture" with "microservices".

I've worked on monoliths with 400+ developers that were great, but it takes skills that people who have only ever worked in orgs that mandate microservice just don't have.

comment 1y ago · link · parent

I mean, "GREAT" until you need to do any kind of refactoring, or the company grows, or shrinks, or reorgs, or you have a feature that needs to change more than one service.

The "one team per microservice" makes code-enclosure style code ownership possible, but it is the least efficient way I have ever seen software written.

I've long wanted to hack an IDE so people are only allowed to change the Java objects they created, and then put six Java programmers in a room and make them write an application, yelling back and forth across the room. "CAN YOU ADD A VERSION OF THAT METHOD THAT ACCEPTS THIS NEW CLASS?" "SURE THING! TRY THAT?"

People discount the costs of microservices because they makes management's job easier, especially when companies have adopted global promotion processes. But unless they are solving a real technical constriant, they are a shitty way to work as an engineer.

comment 1y ago · link · parent

You only need microservices for massive scale or to enable micromanagement of teams, but that doesn't mean you have to give up on clear module boundaries.

You can get the architectural benefits of microservices by using message-passing-style Object-Oriented programming. It requires the discipline not to reach directly into the database, but assuming you just Don't Do That a well-encapsulated "object" is a microservice that runs in the same virtual machine as the other mircoservices.

Java is the most mainstream language that supports that: whenever you find yourself reaching for a microservice, instead create a module, namespace the database tables, and then expose only the smallest possible public interface to other modules. You can test them in isolation, monitor the connections between them, and bonus: it is trivial to deploy changes across multiple "services" at the same time.

comment 1y ago · link · parent

I think defining the places where vibe-coded software is safe to use is going to be important.

My list so far is:

  * Runs locally on local data and does not connect to the internet in any way (to avoid most security issues)
  * Generated by users for their own personal use (so it isn't some outside force inflicting bad, broken software on them)
  * Produces output in standard, human-readable formats that can be spot-checked by users (to avoid the cases where the AI fakes the entire program & just produces random answers)

comment 1y ago · link · parent

Except that we see people in this very thread claiming they shouldn't review code anymore, just the prompts. So however good it is now is enough to be dangerous to users.

comment 1y ago · link · parent

All LLM output is non-deterministically wrong. Without a human in the loop who understands the code, you are stochastically releasing broken, insecure, unmaintainable software.

Any software engineer who puts a stamp of approval on software they have not read and understood is committing professional malpractice.

comment 1y ago · link · parent

We've tried Literate Programming before, and it wasn't helpful.

Mostly because we almost never read code to understand the intention behind the code: we read it to figure out why the fuck it isn't working, and the intentions don't help us answer that.

comment 1y ago · link · parent

Really? Because I've seen the opposite: the cost of fixing AI code is significantly higher than fixing human-generated code, because step one of refactoring is understanding the code and verifying the tests cover all the behavior. And AI doesn't produce code optimized for any human to read it.

Even the worst programmer understands their own code, whereas AI produces code no human has ever understood.

comment 1y ago · link · parent

The "left" is huge and diverse (which people don't know because left-wing thinkers don't get the adoration and amplification right-wing thinkers do in this country.)

I am guessing you are referring to Marxist-Lennonists, or even Tankies. Folks who believe that only class oppression is worth fighting, and that the solution is centralized authoritarian regimes with left wing people in power. Those folks are generally anti-liberal, despite being on the left, and deny any history that would complicate their politics.

Alternatively, you might know neoliberals, who believe in the power of capitalism to address social problems and deny any history that might complicate their politics.

Or you might know Syndicalists, who believe unions are the path to worker's political power, and who deny any history that might complicate their politics.

Etc.

If you know one "very left" person, you know one very left person.

comment 1y ago · link · parent

It's also clear that the big players always thought these things. In this article, Andreessen got mad and founded right-wing echo chambers because left-wing thinkers though censoring anti-racists was bad. Musk has been an egregiously racist person in an egregiously racist family and has never respected the rule of law.

For a while these people felt like they had to pretend to be decent, pro-social humans so they could keep making money: that seems great. More people should pretend not to be racist assholes.

I wonder how much of this is that they got so rich "you can't make more money" stopped being a meaningful threat.

comment 1y ago · link · parent

That does not seem to be supported by the evidence.

Twitter becoming a fascist cess pit has not reduced the power of fascists. Hearing even a completely ridiculous idea (like "the moon is made of cheese") told in a joking manner leads people to think it is more plausible than they otherwise would: https://en.wikipedia.org/wiki/Illusory_truth_effect Deplatforming is effective at reducing radicalization: https://www-cs.stanford.edu/~diyiy/docs/jhaver-2021-deplatfo...

Note that the thing that drove Andreessen to the right was left-wing thinkers who thought censoring anti-racism was bad: he was already pro-racism and pro-censorship before he created the group chats.

The problem here seems to be the income inequality & the power of money to win elections that give the uber-rich their disproportionate power.

comment 1y ago · link · parent

If that were true, Republicans would spend a lot less effort on voter suppression & wouldn't have needed to have the Supreme Court repeal the Voting Rights Act in order to win.

comment 1y ago · link · parent

The "kids" are not the ones kidnapping people who disagree with them.

Bill Maher still has a show, despite having spent more than twenty-five years being a racist POS. There is no such thing as "Cancel Culture": there are just people who are SUPER mad that their kids think their racism is bad.

comment 1y ago · link · parent

"Woke" just means "admitting actual history happened".

It is impossible to be an actual nerd and not be woke. Money-men "founders" have nothing but distain for the geeks that made them rich.

[Edit: I see people don't like this, but are simply down-voting rather than engaging. What is your definition of "woke" then, if not an awareness of America's history?]

comment 1y ago · link · parent

It only discourages open source if people choose to care about it: it doesn't materially affect their life in any way.

If you stop people from using your software while they are at work, you stop people from using the software and it is no longer open.

comment 1y ago · link · parent

EEE assumes open source software is only going to be created if it is widely used. As soon as that isn't true, it is irrelevant.

It was effective against companies that relied on interoperability and profited when people used their software projects. On the other hand, if someone wants to add features that my project can't support, it changes nothing about my life or work.

When the goal is "make the best software possible", the $MegaCorp would only compete by making software that is better that what is available in the open source ecosystem. That doesn't take anything away from anyone else. It is a Pareto improvement: people can pay and have even better software, or not pay and use the still-good free option.

1
567
45