mastodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance, open to everyone, but mainly English and French speaking.

Administered by:

Server stats:

746
active users

#cleancode

2 posts2 participants0 posts today

working in a freelance work, I need to migrate a script. I was analyzing a module when I read a variable named "$usec" . So I needed to get deep in the code and check the documentation of the language. At the end I figured out the varible means "micro seconds" Who wrote this code used the letter "u" as greek letter "mu". So I remembered the chapter about how to name variables of the #cleanCode #SoftwareEngieering #coding #software

Interesting Sunday read 👉 github.com/zakirullin/cognitiv

It challenges some “sacred” software practices:

☑ Too many small units (functions/classes/modules/microservices) can be harder to reason about than fewer, larger ones.

☑ Sometimes it’s better to re-implement a few functions than to pull in a whole dependency.

🧠 Cognitive Load is what matters. Contribute to zakirullin/cognitive-load development by creating an account on GitHub.
GitHubGitHub - zakirullin/cognitive-load: 🧠 Cognitive Load is what matters🧠 Cognitive Load is what matters. Contribute to zakirullin/cognitive-load development by creating an account on GitHub.

We don't need more. We need less.

Every week:
🧠 A new framework.
⚙️ A new "layer".
🤖 A new AI wrapper.
🔄 A new YAML format to abstract what used to be a shell script.

And then we wonder:
"Why is our software hard to debug?"
"Why do our builds break randomly?"
"Why is onboarding a 6-month journey through tribal folklore?"

I once said I write bug-free software that can be finished.
People laughed, especially product people.
Not because it's wrong.
But because they’ve forgotten it's possible.

We build complexity on top of confusion:
A + B becomes C.
C + D becomes E.
Now, E is broken, and we would create a new layer, but nobody knows how A or B worked in the first place. For example HTML/JavaScript, we leave it there and just add layers around it.

Take XML.
Everyone says it's ugly.
But you could validate it automatically, generate diagrams, enforce structure.
Now we're parsing YAML with 7 linters and still can't tell if a space is a bug.

Take Gradle.
You can define catalogues, versioning, and settings, but can't update a dependency without reading 3 blogs and sacrificing a goat.
This is called "developer experience" now?

Take Spring Boot.
I wouldn't trust a Spring Boot or any java Framework powered airplane.
Too many CVEs. Too much magic. Too little control.

We don't need "smarter" tools.
We need dumber, boring, reliable defaults.

Start boring.
Start small.
Then only change the 1% that needs to be fast, clever, or shiny.
You'll rarely even reach that point.
Like everyone says, "Y is more performant and faster than X", but no one reached the limit of X. Why should I care? Meanwhile, we use performant AI.

Real engineering is not chasing hype.
It's understanding the system so deeply that you no longer need most of it.

We've replaced curiosity with cargo cults.
We've replaced learning with LLM prompting.

And somehow, we're surprised when AI loses to a 1980s Atari in a chess game.
At least the Atari understood its own memory.

Simplicity = less maintenance = fewer bugs = happier teams.

We need less. Not more.
#devex #simplicity #softwareengineering #nocodependency#stopthehype #bugfree #springboot #gradle #xml #yamlhell #boringisgood #minimalism #AIhype #infrastructure #cleancode #pragmatism #java #NanoNative

Summer's almost over, energy refilled (wishful thinking), so I'd like to return to writing engineering articles. And I am kicking it off with the most explosive topics of all - Singleton design pattern. 💥

Is it really as evil as many people claim it is? Or is there more to it other than being a glorified global variable? Let's find out! 🔎

medium.com/@nerudaj/is-singlet

What are your experiences with the Singleton pattern? What is your stage of "grief" (explained in the article) when it comes to it? Let me know in the comments.

Medium
Medium · Is Singleton design pattern truly evil?You will not find many software engineers having good things to say about the dreaded Singleton design pattern. But why? And more…
Continued thread

#Dev #Software #TDD #CleanCode

Je n'ai pas encore vraiment écrit de code de comportement réel.

MAIS j'ai déjà un test de comportement de ce que j'attends de mon code à coder, le truc réel à faire.

Et on voit bien que le code "parle" et dit ce qu'il a l'intention de faire et ce qu'il a l'intention de tester.

C'est du code simple et compréhensible.