First of all, this is my very first post/blogpost. Ever. Anywhere. I apologize for the quality in advance. I've never done anything like this before, but today I noticed something and decided it would be good to give it a shot.
So, lets start from the beginning. I'm a backend PHP dev, and have been employed as one since October of last year. I quit college for this offer. Today, a friend of mine, who is still in college going for the same degree as I was, asked for some help on a task. A simple CRUD in PHP, using any framework he wants. I quickly told him I had a very basic and simple CRUD built in symfony on my github. I remember making it in august last year just to add some projects to my github.
Later when I got home, I decided to clone the github project, and check it out. I was surprised. Did I write this? What is this shit? As useless as the project is, I got right into it. Refactoring here and there, built in php server with a local mysql server? Nah, let's add some docker containers. PHP 7.2? LOL, let's update that. And it kept on going.
It didn't take me long to get this done. And as a matter of fact, I was kinda happy with the result. It showed me what I've learned over the past 7 months, and where I came from. I decided to check out some of my other portfolio items on github. It's crazy to think that just over half a year ago, I thought that it was some good code. And I'm sure that if I go back to the project in a few more months, I'd be able to refactor it again.
This brings me to the conclusion of my small, first post. Take a look at your past projects. Maybe not to do a complete refactor, especially not if they're large projects, but to appreciate where you came from. It may not be as drastic for you as it was for me, but it could shed a light on something. For me personally, it felt great refactoring it. And in the end I'm very happy with how I made the simplest CRUD app ever, even simpler.
For those who are interested, you can compare before and after here.
Came across some of my old portfolio projects on github. Was disgusted. Refactored one. Felt great.
If you've got some tips for me about this post, feel free to share them! I've always wanted to write blogpost, but never felt like I could do it. Tonight, I just decided to go for it.