3 ms·
I like to adhere to Uncle Bob's _Clean Architecture_. Any server-side language will allow this; I choose PHP 7 and am currently working on an open source toolki
by g105b 8y ago
I like to adhere to Uncle Bob's _Clean Architecture_. Any server-side language will allow this; I choose PHP 7 and am currently working on an open source toolkit that brings modern techniques to PHP. It allows me to code using standard techniques with little-to-no library dependency.
For example, it's a great idea to code the views of the web apps in plain HTML, and to make HTML dynamic, use the well-understood Document Object Model, rather than introducing something {{LIKE_THIS}} which instantly makes your application bound to the platform. You can see this in action in part of the toolkit here: https://Github.com/PhpGt/DomTemplate https://Github.com/PhpGt/DomTemplate
Using the DOM in this way doesn't impose anything on the actual HTML, so in theory the views of the app can be switched out to use another framework/language/platform without too much effort.
While documenting the toolkit, I have tried to apply Uncle Bob's _Clean Architecture_ to the web, coming up with this description: https://github.com/PhpGt/WebEngine/wiki/Application-architecture https://github.com/PhpGt/WebEngine/wiki/Application-architec...
On the above page I've described how I apply the techniques within the toolkit. Feedback appreciated.