Archive for the ‘asynchronous code’ Category

Back to Basics: What are Callbacks in JavaScript?

Posted on: No Comments
When learning JavaScript, it doesn't take long until you encounter callbacks. These might seem strange and mysterious to beginners, yet it is very important to understand how they work in order to harness the power of the language. In this article I wi...

Game Development with React and PHP: How Compatible Are They?

Posted on: No Comments
"I'd like to make a multiplayer, economy-based game. Something like Stardew Valley, but with none of the befriending aspects and a player-based economy." I started thinking about this the moment I decided to try and build a game using PHP and React. Th...

Parallel Programming with Pthreads in PHP – the Fundamentals

Posted on: No Comments
PHP developers seem to rarely utilise parallelism. The appeal of the simplicity of synchronous, single-threaded programming certainly is high, but sometimes the usage of a little concurrency can bring some worthwhile performance improvements. In this a...

Writing Async Libraries – Let’s Convert HTML to PDF

Posted on: No Comments
I can barely remember a conference where the topic of asynchronous PHP wasn't discussed. I am pleased that it's so frequently spoken about these days. There's a secret these speakers aren't telling, though... Making asynchronous servers, resolving dom...

10 Tips to Become a Better Node Developer in 2017

Posted on: No Comments
I started working with Node full-time in 2012 when I joined Storify. Since then, I have never looked back or felt that I missed Python, Ruby, Java or PHP — languages with which I had worked during my previous decade of web development. Storify was an...

Websockets in Your Synchronous Site

Posted on: No Comments
I’m always yammering on about writing asynchronous PHP code, and for a reason. I think it’s healthy to get fresh perspectives - to be exposed to new programming paradigms. Asynchronous architecture is common in other programming languages, but it...

Asynchronous APIs Using the Fetch API and ES6 Generators

ECMAScript 6 (a.k.a. ECMAScript 2015 or ES6) brings a number of new features to JavaScript which will make the language a good fit for large applications. One of these features is better support for asynchronous programming using promises and generator...