home.social

#refactor — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #refactor, aggregated by home.social.

  1. Файл вырос до 800 строк и это была моя вина…

    На каждом ревью найдётся кто‑то, кто спросит: «Зачем четыре файла, если это один пайплайн?» А затем, давайте объясню!

    habr.com/ru/articles/1033218/

    #python #file_size #aiogram #LOC #architectureascode #refactor #cleancode #code_quality

  2. Файл вырос до 800 строк и это была моя вина…

    На каждом ревью найдётся кто‑то, кто спросит: «Зачем четыре файла, если это один пайплайн?» А затем, давайте объясню!

    habr.com/ru/articles/1033218/

    #python #file_size #aiogram #LOC #architectureascode #refactor #cleancode #code_quality

  3. Файл вырос до 800 строк и это была моя вина…

    На каждом ревью найдётся кто‑то, кто спросит: «Зачем четыре файла, если это один пайплайн?» А затем, давайте объясню!

    habr.com/ru/articles/1033218/

    #python #file_size #aiogram #LOC #architectureascode #refactor #cleancode #code_quality

  4. Файл вырос до 800 строк и это была моя вина…

    На каждом ревью найдётся кто‑то, кто спросит: «Зачем четыре файла, если это один пайплайн?» А затем, давайте объясню!

    habr.com/ru/articles/1033218/

    #python #file_size #aiogram #LOC #architectureascode #refactor #cleancode #code_quality

  5. 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 #kata #programming

  6. 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 #kata #programming

  7. 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 #kata #programming

  8. 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 #kata #programming

  9. 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

  10. No new video this week, we currently have school holidays here, which was busier for me than I thought.

    If you have not seen it yet, here's a video where i #refactor the necklace #kata to use the chain-of-responsibility #pattern

    youtu.be/005dBJnbMSY

  11. 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? 📼📞
    blog.cloudflare.com/moq/ #Internet #MoQ #TechNews #Innovation #HackerNews #ngated

  12. 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

  13. 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. 🚴‍♂️💨
    blog.appsignal.com/2025/05/07/ #SisypheanTask #Codebase #DeveloperHumor #CodingChallenges #HackerNews #ngated

  14. 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. 🚴‍♂️💨
    blog.appsignal.com/2025/05/07/ #SisypheanTask #Codebase #DeveloperHumor #CodingChallenges #HackerNews #ngated

  15. 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. 🚴‍♂️💨
    blog.appsignal.com/2025/05/07/ #SisypheanTask #Codebase #DeveloperHumor #CodingChallenges #HackerNews #ngated

  16. 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. 🚴‍♂️💨
    blog.appsignal.com/2025/05/07/ #SisypheanTask #Codebase #DeveloperHumor #CodingChallenges #HackerNews #ngated

  17. 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. 🤷‍♂️
    dolthub.com/blog/2025-04-18-op #noop #refactor #allocation #coding #humor #HackerNews #ngated

  18. 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.

    gavart.ist/#Bookcase

    #tiddlywiki #wiki #personalwiki #books #reading #code #lists #archivist #refactor

  19. 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: 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

    #php #refactor

  20. 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

  21. 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:

    github.com/alongchamps/rack-ro

    #devlog #programming #rackroot #homelab #python #fastapi #sqlmodel #pytest #refactor #postgresql #backend

  22. Yay! WebSocket routes (and the simple chat example) are working again too :)

    #NodeKit #SmallTech #refactor

  23. 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