Posts For Tag: Refactoring
Use Booleans In Method Params Carefully
28 Nov 2016
Today when I was refactoring my PHP Pinterest Bot, I’ve noticed that it has a logout method with a boolean param. So when you want to logout, you use something like this: <?php $bot->auth->logout(); But you can also type this:...
READ MORERECENT POSTS
- Myths About Asynchronous PHP: It Is Not Truly Asynchronous
- DriftPHP: Quick Start
- ReactPHP Internals: Event Loop Timers
- Interview with Marc Morera: About DriftPHP
- Introducing PHP-Watcher
- Live Reloading PHP Applications With Nodemon
- Building a RESTful API Using ReactPHP: JWT Authentication
- Building a RESTful API Using ReactPHP: Basic Authentication
- Building a RESTful API Using ReactPHP and MySQL
- How To Speed Up The Code Review
- Managing Concurrency: From Promises to Coroutines
- Fast Web Scraping With ReactPHP: Download All Images From a Website
- PHP Roundtable 76: Concurrency, Generators & Coroutines - Oh My!
- Fast Web Scraping With ReactPHP. Part 3: Using Proxy
- Sending Email Asynchronously With ReactPHP Child Processes
- Fast Web Scraping With ReactPHP. Part 2: Throttling Requests
- Using Router With ReactPHP Http Component
- Working With FileSystem In ReactPHP
- Amp Promises: From Generators To Coroutines
- Fast Web Scraping With ReactPHP