#cleanCode

TechKeysXTechKeysX
2025-06-18

List comprehensions are more concise, readable, and often faster than traditional for loops for simple tasks.

Paul A. Jones, Jr.pauljonessoftware
2025-06-17

Today is all about tightening the screws — refactoring, optimizing, and getting the internals right before expanding any further. Clean code is a feature.

2025-06-16
2025-06-12

They say learning by example is the best way to learn. I'd like to share one such example of API design process based on a recent discussion with one of my colleagues: medium.com/@nerudaj/a-case-stu

If you follow my #TuesdayCodingTips, this showcases a practical application of many of them.

And if you dislike clean code for whatever reason, this article is an example of how to overengineer your code in three simple steps I guess :D

#CleanCode #SoftwareArchitecture #SoftwareEngineering

codeDude :archlinux: :neovim:codeDude@floss.social
2025-06-07

I started to read #CleanCode again after years, in the first chapter there is a quote that said something like "Clean Code is written by people who cares"

then I think about the code written by #ai or these #LLM stuff, and I re understand why programmers could hate the current results of these ai stuff

2025-06-07

C# 12 introduces collection expressions! 🎉 Declaring arrays, lists & spans is now simpler & cleaner with a unified syntax. Combine collections easily using the `..` spread operator. Less code, more readability! 🧼📦

Why @Annotations Will Eventually Burn You.

Preach annotation voodoo or embrace explicit method calls? Too many still cling to @PreAuthorize, entrusting their fate to framework black magic. But such blind faith is brittle. One innocent Spring Boot update, and suddenly your security vanishes unless you summon an obscure @Enable... incantation.

Prefer the custom preauthorize() method: it’s concrete, predictable, and the compiler screams when something breaks as it should. Just like how constructor injection finally defeated the field-injection cult, it’s time to retire annotation worship elsewhere too.

Consider @JsonProperty("fieldName"): sure, the object mapper might infer names correctly without it, until one day it doesn’t, because the naming strategy changes behind your back. It’s happened. It will happen again. That’s the price of depending on invisible magic. Unreadable, unpredictable, unmaintainable. Same applies to reflection.

Frameworks and their “best practices” are relics of the monolith age. Java has evolved: threads, HTTP services, logging,… all can now be built functionally, fluently, and natively. It’s not Java vs Kotlin or some trendy syntax candy. Languages, especially those that compile, already give you more than enough. The bottleneck isn’t the tool, it’s the one holding it.

#Java #SpringBoot #CleanCode #SoftwareEngineering #CodeQuality #Programming #ModernJava #DeveloperExperience #DevMindset #NoMoreMagic #ReadableCode #ExplicitOverImplicit #SayNoToAnnotations #SeparationOfConcerns #FunctionalProgramming

A medieval wizard casting spells over a confused developer — Caption: “@PreAuthorize… trust me, it just works.” In the background someone continues “until it doesn’t”

Tightened up our database this week on CityCatalyst project at OEF.

This means stronger validation, fewer orphaned records, and better model alignment across all our services.

Clean schema, clean mind.

It’s the little things that keep big systems stable.

#DataHygiene #Postgres #CleanCode #BackendDev

JAVAPROjavapro
2025-06-04

If your needs 5 setter calls and a prayer… you’re doing it wrong. @spoole167 hands you a cleaner path—immutable, sealed, builder-based, and safe by design. Build APIs people want to use.

Here’s how: javapro.io/2025/04/30/policy-a

2025-06-02

kitfucoda.medium.com/telegram-

My recent refactoring journey began with a take-home assignment's hidden pitfall: a hard-coded queue in settings.py. This seemingly small detail quickly grew into a global state headache, making testing and modularity a real challenge.

To tackle this, I focused on explicitly managing inter-process communication. The solution involved leveraging multiprocessing.Manager to centralize shared synchronization primitives, allowing for much cleaner dependency injection across parallel processes.

This refactoring delivered significant benefits. It drastically improved testability by eliminating the need for global patching. It also brought consistency and enhanced modularity, laying a robust foundation for future scalability.

It's been a valuable lesson, directly applicable to my own operational chatbot. While not a performance optimization, the structural clarity gained is immensely rewarding. I'm looking forward to diving deeper into the testing aspects of this setup soon!

#Python #Refactoring #Multiprocessing #CleanCode #SoftwareArchitecture #getfedihired #fedihire #OpenToWork

2025-05-30

Are you still using new to create dependencies in your C# apps? It’s time to level up your code with Dependency Injection!

#dotnet #softwaredevelopment #microsoft #cleancode

zurl.co/ZVKRi

Sustainable WWWsustainablewww
2025-05-29

Want to make your website more accessible and sustainable?

Start with semantic HTML:
💡 Use <button>, <nav>, <header>, <section>, <footer> — not just endless <div>s.

It helps screen readers, improves keyboard navigation, and often means less JS = faster, lighter, greener websites.

Small change, big impact. ♿🌱

Temma PHP FrameworkTemma@phpc.social
2025-05-27

PHP devs want to work faster and cleaner?

🔹 Static analysis,
🔹 Visual debugging,
🔹 Stress-free deployment.

These tools are a must in 2025 !
🔗 Full Article: medium.com/@softradix2022/esse

#PHP #WebDev #CleanCode #Productivity #Temma #framework

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst