News for hackers. Stuff that matters.
Re:PHP Apprentice – An online, open-source book for learning... by Anthony-G on Friday January 11, 2019 @04:18PM (#18887135)
The content is great. I like how you start off teaching the language by showing how to execute simple programs from the command line (I learned that you don’t need the `-f` option to execute a file). I’ve come across far too many PHP introductions that confuse the new learner by attempting to get them to set up a web server (usually Apache) and then all the strings have to be wrapped in HTML markup when printed. There’s a lot to be said for keeping it simple for teaching the essentials of a language.

The site is cleanly and beautifully formatted and I love how lightweight it is: HTML files, a CSS file, a JS file and an image. It’s such a refreshing change from the thousands of visually cluttered sites that make hundreds of resource requests (most of them third-party) and whose content is not visible without allowing third-party JavaScript. When I completely disabled JavaScript on this site, all I noticed were non-essentials such as Solarized syntax highlighting and the Table of Contents; I could still navigate through the site using the Previous and Next links (and of course, the browser’s Back button).

Kudos!

Re:PHP Apprentice – An online, open-source book for learning... by restoreddev on Friday January 11, 2019 @11:43PM (#18889701)
Thanks! I really made it a goal to keep the site lightweight and simple.
Re:PHP Apprentice – An online, open-source book for learning... by wolco on Friday January 11, 2019 @06:09PM (#18888090)
I can't understand sites without a fallback so many are turning javascript off.