Hacker News new | ask | show | jobs
by jiggy2011 4687 days ago
I am the sole maintainer of a framework free PHP codebase with ~100K lines. Who's jealous?

It could probably be rewritten down to about 10-20K lines (maybe less) if I had a spare month or two.

1 comments

If you are saying the size of your application could be reduced by rewriting it to using a framework (an existing one or one of your own creation), I think this is the point we are all trying to make here.

Assuming one uses all the features of a framework, the total complexity of my 24K line framework application (counting only code I've written) could be compared to that of a 321K line non-framework application (counting all the code in my project).

Thankfully I only have to write/maintain 8% of the codebase, as the remaining 92% is kept up-to-date by typing `composer update` on a weekly basis.

In this case, simply refactoring to remove duplication would probably work. For example there are at least 3 different ways to send email.

There is a lot of code in there that is really "framework" but it's completely baked into everything else so not really separable. There's probably at least 2 different and distinct attempts at creating a framework, and you can tell the age of the code by which it uses.

The main reason it hasn't been significantly refactored is that it is astonishingly reliable considering how bad the code is.