21 points

I really like debugging and unravelling old fucked up overcomplicated codebases. I feel like it’s one of the most long term keeps-on-improving-over-decades skills in programming alongside architecture

permalink
report
reply
16 points

I’ve grown to love code even more later in life, even other people’s code.

You know what I hate?

Coding ceremonies (formerly known as “meetings”) that produce poorly defined/badly written acceptance criteria for code.

permalink
report
reply
7 points
*

One of my problems is that I’ve gotten so practiced at reading code that my standards for “this is readable, it doesn’t need much commenting” are much lower than those of the other developers I work with. I’ve had to recalibrate from “Will I be able to understand this six months from now?” to “Will I need to explain this in the review?”

permalink
report
parent
reply
4 points
*

Will I need to explain this in the review?

I like this metric. Going to fork it if you don’t mind.

permalink
report
parent
reply
2 points

Be my guest 😊

permalink
report
parent
reply
11 points

I feel like if someone is going to blog about my life, I should at least get some credit!

permalink
report
reply
4 points

Yeah I gotta report this post for targeted abuse :(

permalink
report
parent
reply
8 points
*
Deleted by creator
permalink
report
reply
16 points

Good code is code that is easier to change, and microservices are that by design. No wonder microservices end up being better code.

Microservices architecture by itself doesn’t guarantee making anything better. Making services smaller doesn’t automatically make easy-to-understand code. That’s why a lot of companies that didn’t pay attention to what they are doing went from monolithic architecture to “distributed big ball of mud” or “distributed monolith”. Just like any other architecture pattern, for microservices to work, the team needs to make conscious decisions to overcome the challenges specific to their architecture.

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
parent
reply
2 points

What microservices offers is loosely coupled services with very limited responsibilities and can be replaced easily and without any impact on a running service.

We only get this if we do microservices correctly. That’s more or less the whole point of my comment. In many cases, teams rush into splitting their monolith into smaller chunks and call it a day. Without proper monitoring, orchestration/choreography, service boundaries, tooling, etc. microservices will drag a team into territories where they will lose control.

Unless you somehow believe that the same people writing both a monolith and microservices would opt to write spaghetti code […]

No, I don’t believe that. However, I also don’t believe people who write spaghetti code will start writing better code just because now they are writing smaller components. If the team has good coding hygiene, they will produce good code whether it’s monolith or microservices. But you have a point. If we are talking about components that are 200LoC, it’s more difficult to produce spaghetti (or easier to recover from it). I’m not sure that’s the norm, though.

As a final note: I’m not saying microservices are bad, or monolith is better than microservices. I’m just trying to introduce some nuance. I have been part of a microservices transformation and I think it was successful. But we met with many challenges along the way that were not immediately obvious from the beginning. To quote one of the pioneers of microservices architecture:

Don’t think of adopting microservices as flipping a switch; think about it as turning a dial. As you turn that dial, and have more services, you’ll hopefully have more opportunity to get the good stuff out of microservices. But as you turn up that dial, you’ll hit different pain points as you go. (Sam Newman, Monolith To Microservices)

permalink
report
parent
reply
5 points

If the code is written well, it can save a bunch of time and provide a great forum for learning new techniques. Otherwise, if it’s written poorly yes I hate it. Like others have state here the title is an over generalization.

permalink
report
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 3.2K

    Monthly active users

  • 1.8K

    Posts

  • 30K

    Comments