🔧 Refactor a code factor
Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to
Greetings,
This week we had to learn about refactoring an existing code base. This was a new experience for me as a student you don't often have to go back to an old assignment. However, since we were working with our existing AI CLI tool we had something to work with.
Additionally, we also had to use git rebase to squash the changes we made for the refactor. I've never done a squash before so it was a good learning opportunity.
While my code base was small there are always things to improve, I moved several file related functions into their own module. Then I simplified the way global variables were created by using a function, and reduced some code duplication when making calls with Ollama.
Each change was made in a separate commit, which was then squashed together into a single commit, the process was not as complicated as I expected. Then it was merged into the main branch.
That was all for this week, see you next week!
...
🔧 Refactor a code factor
📈 37.67 Punkte
🔧 Programmierung
🔧 Don't refactor the code
📈 26.4 Punkte
🔧 Programmierung
🔧 A small refactor story
📈 23.15 Punkte
🔧 Programmierung
🔧 Refactor to UseCases
📈 23.15 Punkte
🔧 Programmierung
🔧 Refactor vs. Rewrite: Making the Right Choice
📈 23.15 Punkte
🔧 Programmierung
🔧 The TDD Cycle: Red, Green, Refactor
📈 23.15 Punkte
🔧 Programmierung
🔧 Refactor your CSS NOW!!
📈 23.15 Punkte
🔧 Programmierung
🔧 Refactor: How I Improve My Barrierless Project
📈 23.15 Punkte
🔧 Programmierung
🔧 Time to refactor legacy with OOP
📈 23.15 Punkte
🔧 Programmierung
🔧 How To Refactor Your Codebase
📈 23.15 Punkte
🔧 Programmierung
🔧 How To Refactor Your Codebase
📈 23.15 Punkte
🔧 Programmierung
🔧 Little PRs make the mighty refactor
📈 23.15 Punkte
🔧 Programmierung