Live data from Hacker News

Just open sourced my 10k LOC PHP & MySQL invoicing app

github.com

51–60 of 101 posts

Re: Just open sourced my 10k LOC PHP & MySQL invoicing app

#51
post #23

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.

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.

Re: Just open sourced my 10k LOC PHP & MySQL invoicing app

#52

Earlier 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.

I answered his questions directly; I'm not doing too much PHP development these days, it is mostly Node stuff.

Re: Just open sourced my 10k LOC PHP & MySQL invoicing app

#53
post #8

I 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.

"markhaus" has -15 karma. I think his goal is to accumulate negative karma. That or he is just a real jerk.

Plus, I really disagree with his comment.

Re: Just open sourced my 10k LOC PHP & MySQL invoicing app

#55
post #43

Earlier 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/

Symfony is nice, Zend 2 is going to fix everything from ZF1 and is worth keeping an eye on as well.

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

#56
post #54

Thanks 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

Re: Just open sourced my 10k LOC PHP & MySQL invoicing app

#57
post #54

Thanks 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've open-sourced a number of projects I was intending to keep closed-source, but gave up on.

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

#58
post #43

Earlier 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?

Laravel[0] is good IMO. Seems to have a good community as well.

[0] http://laravel.com/

Re: Just open sourced my 10k LOC PHP & MySQL invoicing app

#59
post #54

Thanks 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

That's an excellent idea. I should go add that to some of my horrible, horrible C code, lest someone think that 10 levels of indentation, not using c-style strings, non-portability, architecture assumptions, lack of error checking, and blocking sockets is a good idea...

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

#60

Earlier 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.

I spent all of my spare time for a solid nine months on this project, and you are right; I was passionate, but more about the project itself than the industry.

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).

Post reply on HN