DEV Community

aldrin312
aldrin312

Posted on

Refactoring and rebasing

Task

For this lab we had to do some refactoring and then rebase it all after. For refactoring, I mainly focus on cleaning up my code and look for ways to reduce the clutter and simplifying my code. I looked for long codes that can be heavily shortened. I also fixed error handling. I put everything in try catch blocks and create proper error outputs.

Rebasing

Rebasing was a bit complicated at first. I wasn't sure what's the controls. Took a bit of searching to figure it out but after it it was relatively simple. I had a few issues with the first set of tries, I had to abort a couple of times because of conflicts. Eventually I figured it out and it wasn't that hard, just squashing at least. As for the other controls of rebasing, I don't have a clue.

I found that squashing cleans the history a bit. Just combining several small commits into one. Could be useful to know if I'm working on a huge project, making several or many small changes. Its a good way to keep commit logs clean and easily track them.

Top comments (0)