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.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more