Git and Version Control
Git is an open-source version control system widely used in software development. It organizes projects and manages collaboration between developers working on the same project. I was not using Git when I was working solo; I was manually versioning my code and notebooks 🙃
When collaboration comes into play, Git becomes a necessity. It helps to track the progress of the project and fosters collaboration.
It is a vast topic to learn from, and great sources are out there (like this one). Today, I will focus on the “commit” term and how it helped me organize my thought process.
Git commit is like taking a snapshot of your code in time.
One of my first learnings in my early days was to have organized Git commits and concise commit messages.
Later on, I realized that thinking beforehand about your commits and how to structure them also helps you to organize your work and design your code with a better logical pattern.
Writing Readable and Clean Code
My previous mentor once told me, “Even your grandma should be able to read your code” — a disclaimer: Not from an ageist perspective but rather to imply that everyone should be able to read and understand your code easily.
Jokes aside, reflecting your thought process in your code and writing a self-explanatory code will help anyone review your work and understand it faster.
I learned how to craft readable and clean code both on the job and by reading several industry-wide books:
Clean Code: A Handbook of Agile Software Craftsmanship by Robert C. Martin
Philosophy of Software Design by John Ousterhout.
Exploring Different Development Tools
When it comes to experimenting with machine learning models or prototyping solutions to test their viability, using notebooks is often the first choice.
And Jupyter notebooks are a great medium for that.
Before landing in the Machine Learning Engineer role, I primarily worked on my projects using Jupyter notebooks. As my previous team enforced using PyCharm, I met with my first integrated development environment (IDE).
I felt a bit overwhelmed by the numerous functionalities and the user interface of PyCharm, as a Data Scientist mostly using one-time notebook solutions.
In time, PyCharm has become my second-nature tool.
Its code completion and error-highlighting features have become my indispensable helpers and contributed to my productivity, a lot.
Mastering Git within IDEs has significantly improved my ability to organize work, boosted my coding speed, and enabled me to focus on the task at hand more efficiently. Also, I’m always grateful to myself for writing clean code when I revisit it months later 😉
Thank you for reading! This blog post holds a special place for me. It signifies my return to blogging and technical writing 🤗
Leave a Reply