Blast from the past – SimpleCiShop refactoring

You probably don’t know that in the past (2007) I’ve created a Shopping system called SimpleCiShop. It’s based on CodeIgniter framework and you can find more in the GitHub project.

I’ve used this system in the past for my own Shop called cool-clean-quiet which was about PC coolers, heatsinks and filters. Well the shop didn’t go quite as expected and so the SimpleCiShop remained in the archives, until a year ago.

I didn’t want my project to die away without giving a try, so I decided to refactor it.

Refactoring happens in the CodeIgniter-3.1.9-dev branch.

I’ve started by updating CodeIgniter to the latest stable version; to get it running with the latest PHP version.

Then I’ve started to cleanup the code. When I realized what kind of shitty code I wrote back then 😳. I was embarrassed; but also motivated to continue my quest.

So I began by renaming variables, functions, style the code and remove deprecated or unwanted features.

Debugging and developing is easy thanks to Devilbox which has all the tools you need without breaking a sweat.

I am now in the process of writing database migrations, and supporting SQLite in order to switch to TDD in the future more easy.

There is a lot to be done, and I am happy doing it as it’s more a learning process than just releasing another shop system.

You can see the progress of the project here where I’ve set a 1st release goal.

If you didn’t already notice the screenshot is in Greek;
but I the goal is a truly multi-language system.

Leave a Reply