I remember writing invoicing systems like this. Then I realized I probably shouldn't reinvent the wheel or break GAAP. :/
Yeah, there is a ton of competition. I started building this without having done proper research.
Just open sourced my 10k LOC PHP & MySQL invoicing app
51–60 of 101 posts
Re: Just open sourced my 10k LOC PHP & MySQL invoicing app
#52Earlier quoted context omitted.
I'm not comp sci educated, I'm all self taught so maybe "Autoload" has a real meaning outside of this context, but CI does have an autoloader... something that can autoload libraries and models? application/config/autoload.php
Very good question. I am self taught as well, and have been using CI for about 2 years now. I can autoload libs and helpers. I would love to read his answer there. Also another question would be which frameworks is he currently using and what are its advantages.
Re: Just open sourced my 10k LOC PHP & MySQL invoicing app
#53I can't believe you hardcoded this for MySQL instead of using PHP's excellent and versatile PDOs, and I can't believe the 10k line count. Gosh. Is "de-engineering" a suitable term here? Thumbs up for open sourcing your work, though.
Plus, I really disagree with his comment.
Re: Just open sourced my 10k LOC PHP & MySQL invoicing app
#54Re: Just open sourced my 10k LOC PHP & MySQL invoicing app
#55Earlier quoted context omitted.
What PHP framework would you use if you had to today? Kohana? Yii? Something else?
I'm not the OP but almost any PHP project these days has me reaching for Symfony 2[0] or her little brother Silex[1] paired with Doctrine 2[2]. [0]. http://symfony.com/ [1]. http://silex.sensiolabs.org/ [2]. http://www.doctrine-project.org/
I've dabbled in Doctrine before, but the memory usage looked a little too high for the convenience it offered.
Re: Just open sourced my 10k LOC PHP & MySQL invoicing app
#56Thanks for sharing! I wished more people would share code of projects they are no longer interested in. The educational value ('how did he/she built this') is worth a lot, regardless of the 'quality' of the code. Thank you!
Re: Just open sourced my 10k LOC PHP & MySQL invoicing app
#57Thanks for sharing! I wished more people would share code of projects they are no longer interested in. The educational value ('how did he/she built this') is worth a lot, regardless of the 'quality' of the code. Thank you!
One of them was SMOKE[1] - simple Python/Flask site with login. The most interesting part is probably the SMF Forum signature rotator[2], which manually parses HTML[3] that is not intended to be machine-readable.
[1]https://github.com/TazeTSchnitzel/SMOKE
[2]https://github.com/TazeTSchnitzel/SMOKE/blob/master/smoke/sm...
[3]https://github.com/TazeTSchnitzel/SMOKE/blob/master/smoke/sm...
Re: Just open sourced my 10k LOC PHP & MySQL invoicing app
#58Earlier quoted context omitted.
CI was built in the PHP4 days, and for that reason it has a lot of cruft left over. For example, there is no autoloader. Also, classes are loaded as singletons, and are assigned to properties of the controller, which I put into the 'magic' category, and isn't compatible with IDE autocomplete features (I'm a VIM user, but it makes things easier for a lot of developers). //CI Class Load Example: $this->load->library('e…
What PHP framework would you use if you had to today? Kohana? Yii? Something else?
Re: Just open sourced my 10k LOC PHP & MySQL invoicing app
#59Thanks for sharing! I wished more people would share code of projects they are no longer interested in. The educational value ('how did he/she built this') is worth a lot, regardless of the 'quality' of the code. Thank you!
I have the exact same sentiment; I pretty much open source all of my old projects for people to learn from (I taught a small meetup for a while, it was useful to explain both the good and the bad). I add DEFUNCT to the description if they are really old or have a lot of bad practices. Here's the rest: https://github.com/tlhunter
Or that macros without bounds checking that cause segfaults unless debugging is a good idea...
What was I thinking?
Re: Just open sourced my 10k LOC PHP & MySQL invoicing app
#60Earlier quoted context omitted.
Yeah, there is a ton of competition. I started building this without having done proper research.
I think competition was never your problem. A lack of passion for your industry/product over the long-term, is most always the high level reason people start and stop projects like this.
There was also a fear of letting this be my full time gig and not having a steady paycheck. My brick and mortar business had just closed its doors as my biggest client stopped paying people (he literally disappeared into the woods and had a class action lawsuit from many people he owed money).