schmonz.com is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.
This server runs the snac software and there is no automatic sign-up process.
Even if you’ve read the JEPs—have you used #RecordPatterns to refactor old-school branching logic? @manojnp shows how to turn bloated instanceof trees into readable, idiomatic #Java code with just records.
👉 https://javapro.io/2025/01/15/record-patterns-building-on-java-records/
Habr » 🤖 🌐
@habr@zhub.link
Технический долг в голове: Почему сеньоры выгорают на задачах для джунов, а пет-проекты умирают в бэклоге
В прошлой статье я рассказывал, как настроил личный iptables и перешел в режим Default Deny , чтобы отбиться от внешних DDoS-атак (коллег, пустых встреч и спама). Периметр я защитил, входящий трафик почистил. Uptime вырос. Казалось бы — живи и радуйся. Но я заметил странную вещь: снаружи тихо, а сервер все равно греется. Я заглянул внутрь контейнера и понял: проблема не во входящих пакетах. Проблема в архитектуре самого приложения . Парадокс: я могу спроектировать архитектуру, которая выдержит падение дата-центра. Я могу дебажить race condition в многопоточном приложении. Но когда мне нужно позвонить в страховую или выбрать отель для отпуска, я впадаю в ступор. Мой личный бэклог забит задачами типа «разобраться с налогами» и «начать бегать», которые висят там с 2019 года. Я переношу их из спринта в спринт, испытывая фоновое чувство вины. В какой-то момент я понял: это не лень. И это не «отсутствие мотивации». Это классический Technical Debt (Технический долг) , только не в репозитории, а в нейросети. И проценты по этому долгу я плачу самым дорогим ресурсом — своей когнитивной емкостью.
https://habr.com/ru/articles/973796/
#Технический_долг #Refactoring #Legacy_code #Прокрастинация #Саморазвитие #Таймменеджмент #Mental_Health #выгорание #личная_эффективность #психология_программирования
J'ai apprécié cet article de @jbrains. Quand on simplifie du code, paradoxalement il y a un risque de le rendre moins familier (ce n'est plus comme avant, ce n'est plus comme on a toujours fait). Ça peut être une raison d'accepter de ne pas simplifier. Mais si on ne prend jamais ce risque, on passe à côté d'opportunités de simplifications. Compromis... Je trouve intéressant d'avoir ça en tête collectivement.
=> https://blog.jbrains.ca/permalink/a-central-conflict-in-readable-code
Städa kod: användbar kunskap
Fredrik har läst Kent Becks bok "Tidy first?", som diskuterar hur och när man ska passa på att göra små, enkla uppstädningar i sin kod.
Ett utdrag ur Kodsnack 673, lyssna där poddar finns eller på kodsnack.se!
#podcast #tidyFirst #refactoring #programmering #kod
Renamed a service in a multi-service project today. Just 11 files touched across components, docs, and deploy configs. Feels like a solid little decoupling win. Deploying now 🤞🏻
Emily Bache on LinkedIn: “I recently heard a story about Ward Cunningham coding[..]”
When I was a younger developer, I thought I knew how to make code better by, as the kids would say today, following vibes. Much later, a coworker gave me a copy of Martin Fowler’s Refactoring. I regret how long I put off reading it. Even later, I read Sandi Metz’s 99 Bottles of OOP and learned just how safe refactoring could be. Fearless refactoring is a skill that must be learned, and it is almost a superpower!
I just completed "Lobby" - Day 3 - Advent of Code 2025 #AdventOfCode https://adventofcode.com/2025/day/3 in #Rust.
While it takes me time to find working solutions, Day 3p2 definitely demonstrates my over 20 years of programming pays back by taking approach to first part that can easily be refactored to solve part 2. #refactoring
Debug build on my AMD ThinkPad P16 runs both problems in:
real 0m0,005s
user 0m0,003s
sys 0m0,003s
Upgrade MSVC, improve C++ build performance, and refactor C++ code with GitHub Copilot is.gd/V43kmW #visualstudio #cpp #githubcopilot #refactoring #softwaredev #copilot #ai #msvc
I have reached the WorldMapWar unit in GearHead Caramel. This is a fairly complex system which piggybacks off the world map navigation interface. Gotta find all of the menu stuff and replace it with widgets. #refactoring #GameDev store.steampowered.com/app/1565090/...
Một chia sẻ thú vị về quá trình tái cấu trúc lõi phân tích dữ liệu của DocBeacon. Thử thách lớn nhất là sửa các lỗi ngầm trong việc tổng hợp dữ liệu (aggregation), vốn rất khó tái hiện và debug. Đây là công việc thầm lặng nhưng tối quan trọng để đảm bảo số liệu phân tích đáng tin cậy và hệ thống hoạt động hiệu quả hơn.
#Refactoring #TaiCauTruc #Analytics #PhanTichDuLieu #SoftwareDevelopment #PhatTrienPhanMem #Engineering #LapTrinh #Debugging
Doing a #refactoring Kata is always useful...
1. Training on recognizing patterns.
2. Gaining fluent in the implementation
3. Learn from how others do it
4. Get a better grasp of your tools
5. Do the same thing in other languages and broaden your sights.
Stop writing confusing functions. For instance, use named parameters in TypeScript for clean, maintainable code. Learn more 👇
https://dev.to/pierre/named-arguments-function-typescript-4n4d
Unifying Our Mobile and Desktop Domains, by @krinkle (@wikimediafoundation):
https://techblog.wikimedia.org/2025/11/21/unifying-mobile-and-desktop-domains/
#refactoring #mobile #desktop #performance #seo #ux #casestudies #linklists
Đối mặt với code legacy? Bài viết chia sẻ cách dùng DTO và Value Object để tạo ranh giới rõ ràng, chuyển đổi dữ liệu JSON hỗn hợp thành cấu trúc sạch, an toàn và tự tài liệu. Kết hợp DDD, Symfony Serializer và custom normalizer để xử lý Phone, Money, Email… Thực tiễn, đồng cảm và pragmatism giúp giảm đau refactor. #refactoring #legacy #DTO #ValueObject #PHP #DDD #software #dev #code #pragmatic #lập_trình #công_nghệ
https://dev.to/clegginabox/refactoring-legacy-part-1-dtos-value-objects-2i30
🎉 Kết thúc series JavaScript Clean Code Part 7: Refactor giỏ hàng thực tế, thiết lập ESLint, Prettier, Husky pre‑commit và tests. Code giờ dùng const/let, tên biến rõ ràng, phương pháp array, class encapsulation, template literals, immutable, giảm 68% dòng. Áp dụng ngay để giảm lỗi, tăng tốc phát triển! #JavaScript #CleanCode #Refactoring #ESLint #Prettier #Testing #LậpTrình #MãSạch
Thay đổi cách viết điều kiện để code rõ ràng và dễ bảo trì hơn: dùng guard clauses, trả về sớm, tránh lồng if sâu. Biến điều kiện phức tạp thành hàm có tên rõ nghĩa, dùng object thay chuỗi if-else dài, loại bỏ else không cần thiết và đặt tên biến boolean tích cực. Code phẳng, dễ đọc, dễ test và ít bug hơn. #CleanCode #JavaScript #CodeStructure #RefactoringCode #LậpTrình #CodeSạch #Refactoring #LogicRõRàng
https://dev.to/sizan_mahmud0_e7c3fd0cb68/javascript-clean-code-mastery-part-6-code-structu
How to Successfully Migrate Your App With an AI Agent, by @blackgirlbytes (@opensource.block.xyz):
https://block.github.io/goose/blog/2025/11/17/migrate-app-with-ai-agent/
Just opened a giant #refactoring ticket for an entire service that's kind of a rats' nest of public methods calling other public methods, database access in unexpected places, and low test coverage. I'm pretty pleased with being in a position to do that.
However, the problem is that this ticket is HUGE in terms of effort. How do you approach splitting up a ticket that's about refactoring and writing unit tests for a 5,000 line service class into controller, service, repository, and utility layers where you don't even know ahead of time what piece of code depends on what?
Thay thế việc nối chuỗi phức tạp bằng text block để cải thiện tính đọc code và dễ bảo trì. Sử dụng """ để tạo chuỗi đa dòng, loại bỏ escape sequence, giữ nguyên định dạng SQL/JSON. Hỗ trợ tốt trong Java, Kotlin, Python, JS và nhiều ngôn ngữ khác. #refactoring #codequality #textblock #javatips #lậptrình #tốimã #refactoring #cleancode
https://dev.to/mcsee/refactoring-036-replace-string-concatenations-with-text-blocks-3nop
Refactoring Needs Empathy (h/t Andrea Goulet), but it also needs Skills.
At #DevNexus in March, I'll be showing my favorite techniques for #Refactoring in #Java using IntelliJ IDEA. Even if you're an experienced coder, I'll bet you'll still learn a few new things to try out...
Rector - The Power of Automated Refactoring by Matthias Noback and Tomas Votruba is on sale on Leanpub! Its suggested price is $29.00; get it for $26.10 with this coupon: https://leanpub.com/sh/IeE3xeVg matthiasnoback@mastodon.social #Refactoring #Php
Mỗi chủ nhật, tôi dành thời gian “tái cấu trúc” những dòng code cũ — dần dần loại bỏ rác, chuẩn hóa tên, tách hàm, đơn giản logic, cập nhật phụ thuộc. Kết quả sau vài tháng: ứng dụng chạy mượt hơn, bảo trì nhanh hơn và ít lỗi. Tạo thói quen nhỏ đều đặn để giảm nợ kỹ thuật, không cần sprint “cứu hỏa”. #refactoring #clean_code #webdev #css #javascript #python #laptrinh #frontend #backend #cntt
How Senior Engineers Can Use AI for Real Impact, by (not on Mastodon or Bluesky):
Writing condition-heavy logic in #Java? This article shows how RecordPatterns turn messy type-checks into expressive, deconstructed switches—ideal for rethinking class hierarchies & responsibilities.
@manojnp breaks it down: https://javapro.io/2025/01/15/record-patterns-building-on-java-records/
Refactoring a Form to a Signal Form, by @timdeschryver.dev:
https://timdeschryver.dev/blog/refactoring-a-form-to-a-signal-form
Chúng ta dành nhiều thời gian đọc code hơn viết code, nhưng lại ít được dạy cách đọc hiệu quả. Bài viết chia sẻ 3 kỹ thuật quan trọng: nhận biết code cần refactor (nếu phải đọc 2 lần), thấu hiểu khi xem code của người khác và coi đọc code là cách tốt nhất để nâng cao kỹ năng lập trình. Đọc code giúp bạn giỏi hơn!
#CodeReading #CodingTips #SoftwareDevelopment #Programming #Refactoring #KỹNăngLậpTrình #ĐọcCode #PhátTriểnPhầnMềm #LậpTrình
Một lập trình viên chia sẻ hành trình refactor code và cách xử lý tình huống "oh shit" với Git Rebase! Từ tách logic config sang module riêng, gom message help/version vào utils, thay số ảo bằng constexpr, đến việc dùng rebase -i để gộp commit lộn xộn thành một commit sạch đẹp. Bài học: luôn tạo branch khi refactor và kiểm tra kỹ trước khi merge! 💻 #Refactoring #GitRebase #CleanCode #LapTrinhVien #CodeSach
https://dev.to/elsad_humbetli_0971c995ce/refactoring-code-git-rebase-2kpm
New #Java #refactoring video: I'm not completely happy with some names, so I change them to "honest & complete" - That makes them much longer and more verbose, but at least they say what the objects do now...
PeerTube: https://videos.devteams.at/w/n8TDBBWWPJxKaySi7yArxC
YouTube: https://youtu.be/i0ULT8iE9Xk
Some more #Java #refactoring: First, I simplify some unit tests, then I add a common interface for some objects that are all stages of a process. Feedback welcome!
Video on PeerTube: https://videos.devteams.at/w/orkDdvXUez84cdLysUAgfk
Or if you prefer YouTube: https://youtu.be/s6E1dSFHGxs