modern   11950

« earlier
I upvoted uLouder on Product Hunt: Modern Craigslist and Nextdoor for urban nomads
ProductHunt  iPhone  Tech  Modern  Craigslist  and  Nextdoor  for  urban  nomads 
11 days ago by glitchwitch
Modern Magic | Unearthed Arcana | Dungeons & Dragons
When the fifth edition Dungeon Master’s Guide was released in 2014, two pages in chapter 9, “Dungeon Master’s Workshop,” attracted a lot of attention.
5e  DnD  RPG  Modern 
21 days ago by fozbaca
Modern PHP without a framework | Hacker News
godot 2 hours ago [-]

I started a startup in 2013, and I picked PHP for a core language since I had a decade~ experience with it by then and it was a good enough reason to use it. PHP 7 wasn't available yet and nodejs was only starting to take off and didn't seem like the future yet.
Taking learning from previous companies, I've found the main thing PHP was lacking at the time was a good routing mechanism. We obviously don't want to rely on Apache hitting .php files to handle requests. So we used ToroPHP ( for routing, which is a seriously lightweight routing lib. Indeed we used composer and a lot of dependencies, but for our own codebase we used manual includes instead of the autoloader. With the usual PHP production setup like APC with opcode caching enabled and file stat'ing off (later on opcache + APCu), we handled scale extremely well. (mentioning this because a counter-point for manual includes is that many requests would unnecessarily load way too many code files)

As far as codebase maintenance and growth go, that PHP codebase was actually very easily manageable even with manual includes. Having routing solved frees you up to organize your code files in any ways you want. Even today, I have a mini-framework structured this way for myself to start side projects and test ideas with. (Yes, using PHP5 for side projects in 2018 ;)

My point in bringing all this up is that the architecture this article is trying to take you in, seems unnecessarily complicated for PHP.

This past year I've been working in a full nodejs shop and this entire architecture (from this article) reminds me heavily of how a node/express app is structured. Someone else on this thread mentioned modern languages have their architectures converging. This is exactly what's happening. Even as a PHP fan, it makes me feel a bit of "Why use PHP at this point, instead of nodejs/go/python?" while reading this. It feels like if you wanted to go this route, nodejs is a better option on almost all fronts -- language syntax brevity, availability of packages, community, developer-availability. The only reason to use PHP at this point is nostalgia/sticking to PHP syntax.
modern  Php  Php-Fig  ToroPhp  routing  framew 
23 days ago by snearch

« earlier