"Have a GTK app with no tests? No problem!"
with Federico Mena Quintero at #GUADEC2025 25 July
14:20 CEST
Brescia
Federico shows how to refactor messy GTK codebases so you can finally test them—without rewriting from scratch.
"Have a GTK app with no tests? No problem!"
with Federico Mena Quintero at #GUADEC2025 25 July
14:20 CEST
Brescia
Federico shows how to refactor messy GTK codebases so you can finally test them—without rewriting from scratch.
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:
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.
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
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.
Well, another one bites the dust... Code Climate is shutting down and their new replacement service (only upgrade option) with the fascinating strapline "Code With Vibes, Merge With Confidence" does inspire anything but...
(Been using CC for years and even though it produced a lot of false positives, it generally was a very useful tool which sent me off on several major refactoring journeys over the years, from which not only I benefited as a maintainer, but all users of my libraries/tools did too... c'est la vie...)
From the Leanpub Blog: Welcome to the Leanpub Launch video for Build a Database Server: Learn how real databases work by following this practical guide to building your own by Chris Zetter!
https://leanpub.com/blog/leanpub-book-launch-build-a-database-server-by-chris-zetter
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:
@mjglopez Definitely a combo of #1 and #2: Been working #refactoring truly enormous amount of code for the last years, code which has its oldest roots from 2003. It has been a great learning experience while having the chance to restructure large sections of the #systemarchitecture Painpoints? Sure. But what cool results, improved #performance and first of all: #maintainability
Meeting with my project manager to explain why I've spent the week doing refactors instead of implementing feature requests.
https://www.youtube.com/clip/UgkxOIdnojWnlRGKrrPtVUXs2sKyyQ7bag3B
Jeren Hicks, Tyler Morten, Jerry Nixon, and Caleb Larsen have Sessions on Software Craftsmanship at Nebraska.Code().
Rhia Dixon, MBA, Cory House, and Chad Michel have Sessions on Software Craftsmanship at Nebraska.Code().
#python #programming #refactoring
Reached the point where — after days of work — unit tests break again. In the same place as they did before the big rewrite.
(Checks notes)
Oh! Now the underlying data structures aren’t a horrible mess and I can actually apply the fix that all those rewrites enabled. I think.
Nested contexts of todo-lists are hard.
The class functionality of the class then drinks the squeaks of tests and the starting of the refactoring, bug fixes and the next tests until all tests will not begin to work correctly.
Rhia Dixon, MBA presents 'The Art of Choosing Refactoring Battles Wisely' July 25th at Nebraska.Code().
GitHub for Beginners: Code review and refactoring with GitHub Copilot.
buff.ly/HGOZOO1
#github #githubcopilot #ai #codereview #refactoring #programming #aiassistant #learning
GitHub for Beginners: Code rev...
#Development #Guides
The prompt engineering playbook · How to make AI coding assistants more reliable https://ilo.im/164791
_____
#Programming #Coding #Debugging #Refactoring #Prompts #AI #AiAssistant #WebDev #Frontend #Backend
The result of the #analysis was a an in-depth report explaining possible pitfalls in my code base including recommendations to fix them.
Finding them manually would have taken me days. This way, I was able to cut down the time for #refactoring and fixing most issues to hours.
Last month, GitClear published an analysis of 211 million lines of code in its AI Copilot Code Quality report. One of the key findings is that #refactoring signals are crashing while #code duplication and churn is increasing.
https://thenewstack.io/whats-missing-with-ai-generated-code-refactoring/
The situation changed slightly after fixing tests, manual testing, and bug fixing.
#SoftwareDevelopment #bugfixing #refactoring