Advertisement ยท 728 ร— 90

Posts by Pedro M Santos

Golden Rule:

If you can't trace a piece of code back to making an acceptance test pass, remove it.

6 months ago 0 0 0 0

Tomorrow I will join you, cya soon

9 months ago 3 0 0 0

Highly recommended reading, with a lot of Lean and systems thinking stuff... "Coding Practices Are So the Wrong Focus" flowchainsensei.wordpress.com/2025/06/23/c...

9 months ago 14 4 1 0

I will see you there :)

1 year ago 2 0 1 0

Fight complexity! It creeps in if you don't actively resist. Keep it simple! #programming #xp

1 year ago 8 2 0 0

I Love the smell of deleted code

1 year ago 9 1 0 0

Why refactor? To reduce volatility in the marginal cost of features.

We can see this as a socially acceptable way of saying "to express love", especially in a job context.

What would happen if we embraced this idea? Why don't you embrace this idea now? What obstacles stand in your path?

1 year ago 7 6 1 1
Video

It's common for legacy code to have deeply nested statements

They make code harder to read/think about (cognitive overload) ๐Ÿ˜ตโ€๐Ÿ’ซ

Did you know "Guard Clauses" can help you simplify these? The key is to return early on exceptions, unnest the happy path ๐Ÿ’‚

Here's an example in JavaScript ๐Ÿ‘‡

1 year ago 14 6 5 2