#refactor — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #refactor, aggregated by home.social.
-
Файл вырос до 800 строк и это была моя вина…
На каждом ревью найдётся кто‑то, кто спросит: «Зачем четыре файла, если это один пайплайн?» А затем, давайте объясню!
https://habr.com/ru/articles/1033218/
#python #file_size #aiogram #LOC #architectureascode #refactor #cleancode #code_quality
-
Файл вырос до 800 строк и это была моя вина…
На каждом ревью найдётся кто‑то, кто спросит: «Зачем четыре файла, если это один пайплайн?» А затем, давайте объясню!
https://habr.com/ru/articles/1033218/
#python #file_size #aiogram #LOC #architectureascode #refactor #cleancode #code_quality
-
Файл вырос до 800 строк и это была моя вина…
На каждом ревью найдётся кто‑то, кто спросит: «Зачем четыре файла, если это один пайплайн?» А затем, давайте объясню!
https://habr.com/ru/articles/1033218/
#python #file_size #aiogram #LOC #architectureascode #refactor #cleancode #code_quality
-
Файл вырос до 800 строк и это была моя вина…
На каждом ревью найдётся кто‑то, кто спросит: «Зачем четыре файла, если это один пайплайн?» А затем, давайте объясню!
https://habr.com/ru/articles/1033218/
#python #file_size #aiogram #LOC #architectureascode #refactor #cleancode #code_quality
-
What you need to know before you jump into refactoring code...
Read more here:
https://www.devleader.ca/2023/11/28/what-does-refactoring-code-mean-what-new-developers-need-to-know/ -
Why should we even bother with refactoring?
Read more here:
https://www.devleader.ca/2023/11/21/what-is-refactoring-and-understanding-why-you-need-it/ -
Here's a list of 10 different refactoring techniques for you to leverage!
Read more here:
https://www.devleader.ca/2023/11/14/top-10-refactoring-techniques-you-need-to-transform-your-codebase/ -
Refactor Katas start to be a nice hoby to me.
- Takes an hour or two, a "quikie" that is fun
- not that intensive and usually in times when I am not suitable for any real work
- helps me revisit things in a new way
- A damn good way to learn new languages -
Refactor Katas start to be a nice hoby to me.
- Takes an hour or two, a "quikie" that is fun
- not that intensive and usually in times when I am not suitable for any real work
- helps me revisit things in a new way
- A damn good way to learn new languages -
Refactor Katas start to be a nice hoby to me.
- Takes an hour or two, a "quikie" that is fun
- not that intensive and usually in times when I am not suitable for any real work
- helps me revisit things in a new way
- A damn good way to learn new languages -
Refactor Katas start to be a nice hoby to me.
- Takes an hour or two, a "quikie" that is fun
- not that intensive and usually in times when I am not suitable for any real work
- helps me revisit things in a new way
- A damn good way to learn new languages -
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/ -
Still on #PowerShell 5? Time to renovate. 🛠️ Israel Milgrom at #PSConfEU shows how to migrate a 500K-line codebase to v7: ⚡ Faster 💡 Smarter syntax ✅ Static analysis 🔁 CI-tested refactoring 📍See you in Wiesbaden for #PSConfEU 2026 → psconf.eu #Refactor #Automation
- YouTube -
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/ -
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/ -
What you need to know before you jump into refactoring code...
Read more here:
https://www.devleader.ca/2023/11/28/what-does-refactoring-code-mean-what-new-developers-need-to-know/ -
Why should we even bother with refactoring?
Read more here:
https://www.devleader.ca/2023/11/21/what-is-refactoring-and-understanding-why-you-need-it/ -
Here's a list of 10 different refactoring techniques for you to leverage!
Read more here:
https://www.devleader.ca/2023/11/14/top-10-refactoring-techniques-you-need-to-transform-your-codebase/ -
I refactored a small repo that is a thin GUI wrapper around python-yeelight lib by @stavros
🌐 https://gridranger.frama.io/refactoring-yeelight-gui
#python #yeelight #refactor #cleancode #blogpost #degoogle #foss
-
I refactored a small repo that is a thin GUI wrapper around python-yeelight lib by @stavros
🌐 https://gridranger.frama.io/refactoring-yeelight-gui
#python #yeelight #refactor #cleancode #blogpost #degoogle #foss
-
I refactored a small repo that is a thin GUI wrapper around python-yeelight lib by @stavros
🌐 https://gridranger.frama.io/refactoring-yeelight-gui
#python #yeelight #refactor #cleancode #blogpost #degoogle #foss
-
I refactored a small repo that is a thin GUI wrapper around python-yeelight lib by @stavros
🌐 https://gridranger.frama.io/refactoring-yeelight-gui
#python #yeelight #refactor #cleancode #blogpost #degoogle #foss
-
I refactored a small repo that is a thin GUI wrapper around python-yeelight lib by @stavros
🌐 https://gridranger.frama.io/refactoring-yeelight-gui
#python #yeelight #refactor #cleancode #blogpost #degoogle #foss
-
A brief overview how to use patching in Python in a refactor-proof way with minimal typing.
🌐 https://gridranger.frama.io/clean-patching
#mock #patch #unittest #python #propertymock #refactor #cleancode #blog #indieweb
-
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/ -
estoy tan harto de hacer #refactor de codigo #csharp de 2010-2015 "estructurado" a algo parecido a #objectoriented 😩
-
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/ -
Ah, behold the latest marvel: #Cloudflare plans to #refactor the Internet's #media stack like a toddler "refactors" a jigsaw puzzle with a sledgehammer. 🚀🔨 Who needs stability when you can have "MoQ," the new acronym designed to make us all wish for simpler times with VHS tapes and dial-up modems? 📼📞
https://blog.cloudflare.com/moq/ #Internet #MoQ #TechNews #Innovation #HackerNews #ngated -
Still on #PowerShell 5? Time to renovate. 🛠️ Israel Milgrom at #PSConfEU shows how to migrate a 500K-line codebase to v7: ⚡ Faster 💡 Smarter syntax ✅ Static analysis 🔁 CI-tested refactoring 📍See you in Wiesbaden for #PSConfEU 2026 → psconf.eu #Refactor #Automation
- YouTube -
What you need to know before you jump into refactoring code...
Read more here:
https://www.devleader.ca/2023/11/28/what-does-refactoring-code-mean-what-new-developers-need-to-know/ -
Why should we even bother with refactoring?
Read more here:
https://www.devleader.ca/2023/11/21/what-is-refactoring-and-understanding-why-you-need-it/ -
Why bother with the Sisyphean task of migrating from Prettier and ESLint to #BiomeJS when you can just use a 🪓 to #refactor your entire codebase? It's like trading your bicycle for a tricycle and expecting to win the Tour de France. 🚴♂️💨
https://blog.appsignal.com/2025/05/07/migrating-a-javascript-project-from-prettier-and-eslint-to-biomejs.html #SisypheanTask #Codebase #DeveloperHumor #CodingChallenges #HackerNews #ngated -
Why bother with the Sisyphean task of migrating from Prettier and ESLint to #BiomeJS when you can just use a 🪓 to #refactor your entire codebase? It's like trading your bicycle for a tricycle and expecting to win the Tour de France. 🚴♂️💨
https://blog.appsignal.com/2025/05/07/migrating-a-javascript-project-from-prettier-and-eslint-to-biomejs.html #SisypheanTask #Codebase #DeveloperHumor #CodingChallenges #HackerNews #ngated -
Why bother with the Sisyphean task of migrating from Prettier and ESLint to #BiomeJS when you can just use a 🪓 to #refactor your entire codebase? It's like trading your bicycle for a tricycle and expecting to win the Tour de France. 🚴♂️💨
https://blog.appsignal.com/2025/05/07/migrating-a-javascript-project-from-prettier-and-eslint-to-biomejs.html #SisypheanTask #Codebase #DeveloperHumor #CodingChallenges #HackerNews #ngated -
Why bother with the Sisyphean task of migrating from Prettier and ESLint to #BiomeJS when you can just use a 🪓 to #refactor your entire codebase? It's like trading your bicycle for a tricycle and expecting to win the Tour de France. 🚴♂️💨
https://blog.appsignal.com/2025/05/07/migrating-a-javascript-project-from-prettier-and-eslint-to-biomejs.html #SisypheanTask #Codebase #DeveloperHumor #CodingChallenges #HackerNews #ngated -
Ah, yes, the riveting tale of how a "noop" refactor—a coder's favorite oxymoron—somehow tanked #performance by 30% ⏬. But fear not, brave souls; our hero embarks on a treacherous journey into the mystical land of #Golang #memory allocations 🧙♂️, determined to unfurl the secrets of the heap while we all pretend to care. 🤷♂️
https://www.dolthub.com/blog/2025-04-18-optimizing-heap-allocations/ #noop #refactor #allocation #coding #humor #HackerNews #ngated -
I refactored the [[Bookcase]] in my wiki … it might be a good topic for a video tutorial someday.
Instead of loading in different stored lists as a way of filtering the content, I now have one list that is filtered dynamically that both list (text) views and cover (image) views adhere to, making for neat on-the-fly re-arranging of the same list, and much more optimized.
#tiddlywiki #wiki #personalwiki #books #reading #code #lists #archivist #refactor
-
This might be the most obvious of #linktuesday links in ages, but really, I've recently been helped a lot by #rector. So yes, I'm sharing Rector today: https://getrector.com
If you have not worked with it before, it may seem intimidating, but take some time to get used to it, because it can really make your life a lot easier, especially when working with #legacy code
-
Many people say that #Rust is very hard to #prototype with or to #refactor. This couldn't be further from the truth! It is the exact opposite!
Let me share with you one of the most profound experiences I had with #RustLang on a casual sunday - a thread 🧵
I'm currently rewriting my #transpiler from #nom to #chumsky and until now everything has turned out great so far, until I've hit the following road block:
Implementing parsers by using #parser functions that have indirect #recursion.1/11
-
Tonight's dev log update for Rack Root
I finally finished my refactor from sqlalchemy with sqlite over to SQLModel with PostgreSQL and refactored much of my code. I had a mixture of snake_cake and camelCase which has since been fixed to be all camelCase.
I adjusted many of my imports, classes, database tables, database foreign key relationships, and testing to fit the new design. I also had to adjust some of my tests because my IDs were off by one.
This database focused refactor also gave me all the structure and space I needed to build out the basic IPAM features. When a new network is added, all the associated IP records are created, and marked as 'Available'. If a gateway is set, that gets changed to 'Gateway' and when I implement DHCP ranges, that will be set to 'DHCP'.
I still have some things to do such as make sure the IP records cascade delete when a network is deleted, and fun stuff like that.
Now that the backend is (re)designed, I can get back to the front end side of things.
If you're curious to check out my code for this refactor, it's all up on my GitHub here:
https://github.com/alongchamps/rack-root/commit/0fc99dfcf10bf3ab6a5dfdc348894fe7e6221acd
#devlog #programming #rackroot #homelab #python #fastapi #sqlmodel #pytest #refactor #postgresql #backend
-
Yay! WebSocket routes (and the simple chat example) are working again too :)
-
Many people say that #Rust is very hard to #prototype with or to #refactor. This couldn't be further from the truth! It is the exact opposite!
Let me share with you one of the most profound experiences I had with #RustLang on a casual sunday - a thread 🧵
I'm currently rewriting my #transpiler from #nom to #chumsky and until now everything has turned out great so far, until I've hit the following road block:
Implementing parsers by using #parser functions that have indirect #recursion.1/11