2,515 karma · joined Mar 4, 2010 (16y ago) · 549 submissions
meet.hn/city/43.1009031,-75.2326641/City-of-Utica
---
comment 1y ago · link · parent
Personally, I love the debates that stress-test my posts, they're the most interesting part for me. If I put effort into writing something, might as well defend it, and wouldn't want any punches pulled. Oftentimes people's attempts at debunking my message end up doing quite the opposite to what I'd expect — further validating what I wrote. Other times I need to clarify something in the post.
comment 1y ago · link · parent
I posted a question[1]. Got some answers, but not quite complete. Then someone came along and provided a good detailed answer. A couple of upvotes later, that answer got deleted by Community Bot. I voted to undelete it, but it still needs another vote to undelete. So I ended up copying it into my own notes blog[2].
I'm not sure why the best answer was deleted. It would've been a loss if it wasn't preserved somewhere I think.
[1]: https://stackoverflow.com/q/73954228/155351
[2]: https://notes.max.engineer/creating-common-interfaces-in-gol...
comment 1y ago · link · parent
I'm sure it will go down in history as some sort of intentional movement, and then someone will occasionally point out "did you know that originally this idea was never meant to be used for serious work, Andrej literally said it was only okay for throwaway weekend projects." Big not-always-good things[1] started this way — by misinterpreting something.
Of course, it's possible that in the future code written this way will actually be maintainable, performant, and secure enough that you could start trusting it, and this will morph into a legit way of writing software, but right now the hype is way ahead of what Andrej meant when he coined the term.
[1]: Examples come to mind: Agile, Scrum, Javascript (2 week project originally), there're definitely more examples.
comment 1y ago · link · parent
There's a non-committal way of designing software that I think we should all strive to follow. It's not things like "let's use an ORM so that we can swap the database later" or "let's write abstractions over everything so we can swap everything later". It's more that you're trying to keep the code as simple and static as possible, naively doing the exact business function, and rarely generalizing. There are a few practices I've picked up over the years for non-committal architecture of this kind (for example: doing more at "build" time, passing the functions what they need instead of what you have, keeping IO in shell layer, and a few more). The goal is not to end up with a codebase that has foretold all the possible futures, but that implements just what it needs to do now in the most straightforward way, such that it's easy to read, understand, and change. I think this kind of non-commitment is the ideal to strive for. The less committed you are in this way, the easier it remains the change the codebase as it evolves, the less shackled it is with over-engineered "solutions".
It's deceptively hard to do this in practice. Everybody wants to implement their over-engineered "system for doing a thing" layered on top of the programming language. Sometimes we forget that the programming language itself is a great tool for expressing business logic.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
The only reason you're afraid of some things more than others is because you came across some stories, and not others. We're all wired like this evolutionarily, on purpose. When we see stories, we're supposed to alter our behavior, because all the stories used to be local and relevant. "A bear ate Timmy near the river" is a good warning to be extra careful near there. Now that we have internet, and the entire planet's worth of carefully selected bears eating Timmys is getting fed into everyone's mind, we must learn a new trick: understanding how odds and relevancy works.
comment 1y ago · link · parent
comment 1y ago · link · parent
https://www.youtube.com/@CainOnGames
[1]: Tim Cain created the original Fallout (pretty much designed the whole universe), and a number of other successful games after. He's an engineer through and through, but wore a lot of different hats, and has an interesting perspective on all aspects of game dev.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
Maybe we're in a very different context, but to me if you can't understand what the code does without a debugger, then you ask the author to make the code clearer.
comment 1y ago · link · parent
People place trust in faceless institutions all the time. That's why you sit in a box that produces about 50 explosions per second when you drive a car. I don't think you would've gained much by being comfortable with the character of your car designer. If you think building cars is complex, laws and regulations are just as complex. And it takes teams of lawyers, hundreds of pages of documents, and a lot of data to figure out what makes sense. But it's easy to armchair-judge all of that as "just some faceless institution".
> what forces exist to prevent them from being corrupted?
Why are you right now not stealing from your work, or vulnerable people around you? Why are you not trying to screw over everybody you meet? Those forces and more. There's a lot of scrutiny built into most institutions.
> the growing cynicism in institutions is because of evidence of corruption
I don't think we use the word "evidence" the same way. Having perverse incentives is not evidence.
comment 1y ago · link · parent
An institution's whole point is to be a system where you don't have to trust individuals. It's a way to deal with complex nature of our reality. People should really learn what institutions are, how they function, what accountability mechanisms they contain, instead of blaming them based on conjecture. "Look, this bad thing happened. And this person has this bad incentive. Now we know the whole story." We don't.
comment 1y ago · link · parent
People who worked their entire life in an industry and became experts on it, then become regulators for the same industry, have incentives to favor their industry, sure. But who else should be regulating the industry if not the expert in that industry? If you get someone who is not an insider, wouldn't they just fail at regulating, because they have no idea how it works? Also, the people who put someone in that position, isn't there a chain of accountability there? There are many people working side by side with the "evil person trying to enrich themselves". Bad acts come out. Incentives tend to balance each other out. It's not wrong that part of a regulator's job is to find a balance as to not destroy an industry while regulating it.
comment 1y ago · link · parent
Not templates. The culture HAS TO be for everyone to calm down and treat PR reviews as first class citizens, not unwanted distractions. If ya'll stop stressing each other out that reviews are bs, I'm sure they'll stop being that.
> […] we still had, design reviews, white board sessions, code reviews, pairing sessions, planning meetings etc...
You know that feeling when you get a design idea, you start implementing, and a single plot twist makes you realize it doesn't fit? What do you think happens when a white board session bumps against reality? That's likely a session down the drain.
What if we replace it with the following process: 1) Discover all the plot twists up front by writing out the solution. Publish a PR. 2) When a reviewer comes in, give them time to grok it, welcome redesign ideas. 3) Easily assess and validate their ideas using the stupid amounts of expertise you temporarily gained by having written a working solution. 4) Discuss or proceed with fixups.
How can it get more concrete and grounded in reality than this? One of you knows every tree, the other one can still see the forest. I'd argue, you rarely need to talk before this point. This is the best point.
(Obviously you shouldn't just suffer in silence if you're stuck or your diff is getting out of control. Run it by somebody sooner than later.)
> I highly doubt you'd be able to do this outside of a small company, or a small self-contained team.
Thankfully most companies or teams are indeed small.
comment 1y ago · link · parent
The 9/10 number seems incongruent with my experience, but that could be because I often help set the PR review culture, and encourage people to identify the questions: is it "how" (…is it working), "what" (…is it doing), or "why" (…is it done this way). If you recognize those, it makes it way easier for the author to address the specifics without a total redesign. (How = hard to follow the logic, what = better names needed, why = comments needed).
But sometimes a redesign can be super compelling to everyone, and the question is: do we want to be stuck with the subpar version? Because really, the closer you are to remembering how it all works, the easier it is to rewrite it. Not later, when it faded from memory and overgrew with dependent code.
> Comparing the software we produced before the whole PR review for every merge request thing became common, and the software we produce now, I don't think software quality has improved at all. So for me to change my mind, I'm going to need to see hard data that says the opposite.
The kind of subjective reviews we're discussing (not security, performance, consistency, edge case issues, or major simplifications) are not really about quality, they're about your specific team understanding your specific code. Help your colleagues (just the small circle of maintainers) have more confidence in coming in later to change this code. If you're working alone, this isn't as big an issue.
To collect data on this, you would need to witness what happens when everyone architects their own way, and then you have to find the person who wrote that part to decipher it, and compare the amount of slowdown that can cause. Nearly impossible to measure in practice, I think.
> not everything needs to be asynchronous
I completely agree. PRs provide great tools for discussing code asynchronously so it's good to lean on them sometimes, and discuss the work on a call other times. This is however a big departure from your original statement that PRs are the absolute worst time to review the code.
comment 1y ago · link · parent
The change request must either make the code objectively better (i.e. performance, memory, security, adherence to a consistent architectural pattern, simplification), or subjectively clearer (it's hard for you to understand what is happening, how it happens, or why it's done this way).
If the reason is solid, then the feedback is usually well received. Except in unfortunate environments where PRs are treated as annoying disruptions. I hope I never have to work in that kind of place.