by saltcod · 14y ago · 0 comments
Maybe I'll ask Dan to write that one next =)
The focus thus shifts on to correcting the many mistakes these other learning resources make. That might be poor security (SQL injection, XSS, etc.), use of deprecated functions (mysql_* functions), and maintaining your website as an unholy tangle of intermingled HTML, CSS, JS and PHP. This is what I'm more interested in doing.
I don't personally see much value in writing about much else (like, idiomatic PHP), because the language itself lacks an opinion on what good code and bad code is, or whether it should be procedural or OOP (see DateTime and mysqli for examples where there is an interface for both styles). Trying to establish a 'norm' for these things would be nothing less than Sisyphean in nature.
Compare this to Python and Ruby, where these books flourish because the language itself makes it easier to write about.
Starting from practical, useful exercises would be an amazing way to (finally) truly learn PHP.
The stack is markdown and mustache. This would be a great way for me to see how I need to evolve the ruhoh platform.
Can't honestly say this is the best platform for your book but I am willing to dedicate time to your project to get this done for everyone's benefit. Please contact me and/or point me to the public repo if available. thanks!
https://github.com/schacon/git-scribe
Edit: Actually the project looks dead, so I'm not sure you'd want to use it.