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.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay