TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

129 点作者 renownedmedia将近 13 年前

13 条评论

swang将近 13 年前
What exactly did you dislike about CodeIgniter? For me CodeIgniter is probably what I'd use if I had to go back to making PHP applications so I'd like to hear any reasons you had against it.
评论 #4128530 未加载
BjornW将近 13 年前
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!
评论 #4128865 未加载
评论 #4128863 未加载
评论 #4129984 未加载
评论 #4130258 未加载
jumby将近 13 年前
I remember writing invoicing systems like this. Then I realized I probably shouldn't reinvent the wheel or break GAAP. :/
评论 #4129759 未加载
评论 #4128551 未加载
justinkelly将近 13 年前
great to see this open sourced - sorry to hear you closed neoinvoice though<p>the web based invoicing market is extremely crowded and very hard to complete against the likes of freshbooks.com<p>though i went the opposite route to you and its working $ for me<p>created the open source app <a href="http://simpleinvoices.org" rel="nofollow">http://simpleinvoices.org</a> first, got large user based, then offered premium hosting at <a href="http://smarterinvoices.com" rel="nofollow">http://smarterinvoices.com</a>
评论 #4129748 未加载
mmmooo将近 13 年前
Just as a quick look, this thing is riddled w/ potential sql injections..a number of unchecked/unescaped uri controlled variables. In some cases there's validation of numerics w/ +=0, but in many cases (e.g. $sort_col) there's none.
评论 #4128545 未加载
评论 #4128547 未加载
评论 #4128721 未加载
obituary_latte将近 13 年前
Is that mochaUI? Looks like it.<p>Tried using it recently and it actually was quite nice despite the lack of docs and other various hiccups.<p>At any rate, thanks for putting it out.
评论 #4128423 未加载
krob将近 13 年前
Okay, so coming from a user of CI 2.0 mind you and using integrated smarty templates with it, I would have to say after using even a micro-framework say silex, I could build a much better enterprise application with modern php5.3/5 features than i can with CI. The major problem is it feels really dirty to include/require statements with CI. Also to build re-usable code within the confines of their existing library system you have to build all your constructors with a single $param argument. The models are junk since they are really just a place to store organized function calls. Their database abstraction is an abomination. Generally the only thing good about CI is that you can break up your source into a marginally logical fashion which can it improves maintainability.<p>Now as for this application being written in Code Igniter? I don't really see it as a problem since it means it will be easier for lesser experienced dev to pick up and run with the ball. In time they will learn it's major deficiencies and they will move on. But i think there is room for improvement, in fact I think this would be a great project to port to another maybe more robust framework and is a good project for learning new framework translations.<p>I will say however that the author wanting to rewrite a product like this in nodejs is really only going to make something like this more inherently difficult to maintain since javascript code tends to get more complicated than your typical java / php / python app as it grows. Granted you do have js at your finger tips it is still largely un-tested on massive scale for large application development. It however has shown great promise for handling extreme traffic in terms of concurrency, but it handles it mostly by using async libraries which pile everything into queues of some sort some where. So your code is littered with async callbacks everywhere. Anyways.. Not only that, but the biggest problem of all is the inability to intelligently step through your code with some kind of IDE beyond using a browser-base debuger such as webkit inspector or the online IDE cloud 9.<p>I don't hate nodejs. I just think people are jumping on the band wagon way too quickly for server-side hosting. For websockets it's a great solution, I just don't like seeing it as "the only solution" for some peoples projects. I'd rather see a more hybrid approach.
jbigelow76将近 13 年前
I'm curious, I remember a posting a while back that you were trying to sell this app through Flippa? Any details of that experience you would mind sharing (nothing but tire kickers, not the right market, buyer fall thru, etc...)?
评论 #4130011 未加载
danso将近 13 年前
I didn't look through the PHP or MySQL code but the front-end has a clean look (from the video), which is more than is expected from most people who take it upon themselves to develop an invoicing system
评论 #4128759 未加载
manelvf将近 13 年前
How many users did you have?
评论 #4128275 未加载
PleaseBeSerious将近 13 年前
What would you do different based on what you know now?
评论 #4128510 未加载
pdufour将近 13 年前
This looks like you put a lot of work into this. Thanks for open sourcing it.
markhuus将近 13 年前
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.
评论 #4128514 未加载
评论 #4128476 未加载
评论 #4128754 未加载
评论 #4130195 未加载
评论 #4128834 未加载
评论 #4128471 未加载