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.
Câu chuyện refactor ứng dụng Java của PVS-Studio: Từ code rối rắm với static methods, Singletons, đến tích hợp DI bằng Guice, làm sạch style theo Google Java Style, và xây dựng module annotation mới hỗ trợ taint analysis & JSON user-defined. Kiến trúc modular, dễ mở rộng hơn!
#Java #Refactoring #DependencyInjection #Guice #LậpTrìnhJava #CảiTiếnCode #PhânTíchTĩnh
https://dev.to/pvsdev/how-we-integrate-best-practices-in-java-3ja3
Refactoring can work wonders for simplifying code
Read more here:
https://www.devleader.ca/2023/12/04/how-to-simplify-your-code-with-effective-code-refactoring/
There comes a time in every developer's life where we're faced with this...
Read more here:
https://www.devleader.ca/2023/11/27/refactoring-legacy-code-what-you-need-to-be-effective/
How do you know when to rewrite it all instead of refactor?
Read more here:
https://www.devleader.ca/2023/11/26/rewriting-vs-refactoring-code-how-to-navigate-the-two/
When should we refactor code?
Read more here:
https://www.devleader.ca/2023/11/24/when-to-refactor-code-how-to-maximize-efficiency-and-minimizing-tech-debt/
After almost a week of refactoring and experimenting with several different approaches, I've updated my Zig nD SIMD vector library to be compatible with the latest Zig 0.15.1, and at the same time cleaned up some internals.
The solution I settled on is a mix of techniques proposed by others, and was needed due to the removal of the struct/namespace-merging syntax in the new Zig version, which this library heavily relies on. I don't like that the new source code is now more than 2x larger and involves a huge amount of duplication to address the many special cases of supported operations for different vector sizes and types. I might still take another pass to eliminate those (by using `@compileError()` for unsupported cases), but that'd be an implementation detail downstream users don't have to care about. I tried AOT code generation as well, but the special case handling made this feel less maintainable...
UPDATE: The only breaking change is the handling of vector swizzles. I had to remove the hundreds of named swizzle functions and replaced them with a single (comptime optimized) `.swizzle(vec, pattern)`, e.g. `.swizzle(vec, "xxyy")`...
If you're interested, the new code is here:
https://github.com/thi-ng/zig-thing/blob/main/src/vectors.zig
The readme contains details about the many supported operations:
https://github.com/thi-ng/zig-thing/blob/main/doc/vectors.md
Installation instructions in the main repo readme:
https://github.com/thi-ng/zig-thing/tree/main
Beyond package management: How Nix refactored my digital life
https://www.jimmyff.co.uk/blog/beyond-package-management-how-nix-refactored-my-digital-life/
#HackerNews #Nix #Package #Management #Digital #Life #Refactoring #Tech #Tips
#Development #Techniques
Integrating CSS Cascade Layers · Cascade Layers without breaking a legacy codebase https://ilo.im/166s9p
_____
#CSS #CascadeLayers #Codebase #Legacy #Refactoring #Maintenance #Browsers #WebDev #Frontend
What are control flags and why haven't you ditched them yet?
Read more here:
https://www.devleader.ca/2023/11/19/remove-control-flag-refactoring-how-to-simplify-logic/
Cải thiện code với Refactoring! 🔄 Từ "Callback Hell" lộn xộn đến code sạch với Promise và Async/Await. Từng bước nhỏ, code lớn. #refactoring #javascript #code #lập_trình #IT
https://dev.to/emiderex/from-chaos-to-clean-code-how-refactoring-beats-callback-hell-36l7
"Extract Method" is one mof the most foundational refactoring techniques for us to use.
Read more here:
https://www.devleader.ca/2024/03/06/extract-method-refactoring-technique-in-c-what-you-need-to-know/
Constant Refactoring: Refactoring My Refactored Website, by @openmindculture.bsky.social:
https://dev.to/ingosteinke/constant-refactoring-refactoring-my-refactored-website-4pf
Refactoring code is a critical software engineering skill -- Can you do it?
Read more here:
https://www.devleader.ca/2024/02/29/refactoring-c-code-4-essential-techniques-simplified/
6 Weeks of Claude Code, by @orta (@puzzmo.com):
https://blog.puzzmo.com/posts/2025/07/30/six-weeks-of-claude-code/
Website của tôi đang được refactor liên tục vì các thay đổi trong các gói npm. Mục tiêu là cải thiện khả năng bảo trì, hiệu suất và tuân thủ các phương pháp tốt nhất. #webdev #refactoring #npm #phattrienweb #web
https://dev.to/ingosteinke/constant-refactoring-refactoring-my-refactored-website-4pf
Improvements to OCaml code editing: the basics of a refactor engine
https://tarides.com/blog/2025-08-20-internship-report-refactoring-tools-coming-to-merlin/
#HackerNews #OCaml #Refactoring #CodeEditing #Tools #Merlin #Improvements
Tái cấu trúc mã lộn xộn: Tăng tính liên kết, giảm tính phụ thuộc. Phân tách rõ ràng các class, sử dụng interface và injection để code dễ bảo trì, dễ test. #refactoring #cleanCode #vietnam
#tái_cấu_trúc_mã #mã_sạch
https://dev.to/abhinawkr/refactoring-messy-code-high-cohesion-and-low-coupling-3p7e
💡 This is the story of how #Stripe built a #Ruby type checker to make developers happier, and how they're building a Ruby package system to introduce modularity.
This #InfoQ video shares high-level strategies for any team that wants to run a migration in a large, stubborn codebase.
🎥 Watch now: https://bit.ly/45en6uJ
📄 #transcript included
#LegacyCode #Refactoring #SourceCode #SoftwareDevelopment #CaseStudy
RUG — малоизвестный, но фундаментальный принцип Clean Code
Многие разработчики при обсуждении основ Clean Code называют одни и те же принципы — чаще всего упоминаются DRY , KISS и YAGNI . Эти концепции прочно закрепились в профессиональном сообществе и воспринимаются как обязательная часть хорошего кода. Принцип RUG упоминается значительно реже. Чаще всего о нём узнают с опытом, а многие применяют его интуитивно, даже не подозревая, что для этого подхода существует отдельное название и формулировка. Сегодня я хочу поговорить о принципе RUG и о том, какие рекомендации он даёт по написанию программного обеспечения. RUG ( Repeat Until Good ) — это принцип, который говорит: можно повторять один и тот же код, пока это разумно. На ранних этапах разработки важнее просто реализовать логику, исходя из текущих требований, чем пытаться сразу создать «идеальную» абстракцию. В этот момент задача — как можно быстрее получить рабочее решение, которое отражает текущие знания о системе. Но со временем, когда одна и та же логика начинает встречаться всё чаще, становится очевидно, что её удобнее и правильнее выделить в отдельную, чётко оформленную абстракцию, чтобы избежать дублирования и упростить дальнейшую поддержку. Мы используем этот принцип каждый раз, когда пишем код. Ведь практически любую логику можно сделать более абстрактной и масштабируемой — вопрос лишь в том, когда наступает подходящий момент для этого. Я буду использовать TypeScript , так как этот язык знаком большинству разработчиков. 😁
https://habr.com/ru/articles/934986/
#rug #cleancode #programming #software_design #patterns #refactoring #typescript
“This #refactoring was done by an LLM, and then reviewed by a human. [..] The break became a continue, turning errors into infinite loops. [..] small enough change in a larger code movement that we didn’t notice it during code review.”
Queue the LLM-apologists and something about “thou shalt have test cases” in 3..2..
(Though I feel I should put that tag into scare-quotes)
From: @nixCraft
https://mastodon.social/@nixCraft/114958561596061775
Bài viết về Refactoring ASP.NET: Ánh xạ kết quả miền vào phản hồi HTTP. Tác giả đề xuất cách làm sạch mã điểm cuối API, dễ bảo trì hơn bằng cách dùng Result pattern và filter. #ASPNet #refactoring #API #Vietnamese
https://dev.to/alexdevfx/aspnet-refactoring-map-domain-results-into-http-responses-3j7i
Cải thiện code .NET của bạn với Code Metrics và Refactoring Controller! Bài viết hướng dẫn cách sử dụng các chỉ số để xác định và sửa code "spaghetti", giúp code dễ bảo trì, dễ đọc và dễ kiểm thử hơn. #dotnet #codemetrics #refactoring #vietnam
Static Analysis and Automated Refactoring https://leanpub.com/b/static-analysis-and-automated-refactoring by Matthias Noback matthiasnoback@mastodon.social and Tomas Votruba is the featured bundle of ebooks 📚 on the Leanpub homepage! https://leanpub.com #Refactoring #Php #Laravel #Symfony #Zend #SoftwareEngineering #AutomatedSoftwareTesting
The ranged W command was great to perform a Move Method #refactoring to another class.
W appends a selected block from the current file to another file. Then you can edit the other file and move the appended block to its correct position with the m command. A few substitutions later, and the Move Method was done without leaving ed.
Leanpub book LAUNCH 🚀 Build a Database Server: Learn how real databases work by following this practical guide to building your own by Chris Zetter
Watch here:
#books #ebooks #booklaunch #databases #programming #refactoring #softwaretesting #computerscience
Do you ever skip trying to use automated refactoring because it's too annoying in Xcode? https://qualitycoding.org/xcode-key-bindings-refactoring/ #refactoring
Example of scope, I currently want to invert the condition on the name here:
*34,40n
34 } else {
35 if (item.quality > 0) {
36 if (!item.name.equals("Sulfuras, Hand of Ragnaros")) {
37 item.quality = item.quality - 1;
38 }
39 }
40 }
This is fine if I do one thing at a time.
Also: ed edits could be a great format for #refactoring toots 🤔
It's going well so far:
*!git log --oneline | cut -d' ' -f2- | tac
Starting point
Simplify for loop
Invert the first if
Split first if
Invert if on sulfuras
Permute ifs for sulfuras
Join first 'if else's
I think I can now say it's totally doable and even worth repeating this kata a few times.
Totally random thought: would I be able to do the Gilded Rose kata using only the ed text editor in a reasonable time?
Goals:
1) have fun,
2) look like a fool,
3) learn enough ed to later be able to script complex text changes across files,
4) also level up in sed and vim
Reason: ed(1) is the standard Unix text editor.
Stop right-clicking to refactor in Xcode https://qualitycoding.org/xcode-key-bindings-refactoring/ #refactoring
Summer is often quieter in dev teams : it's a good time to work on big refactoring and code cleanup.
If you'd like/want/need a hand/some advice, I'm available :)