CakePHP and connecting to GitHub API

0

I had to write a small tool to automate releasing certain GitHub repositories, and for that to authenticate I had to connect to GitHub API. The integration wasn’t super-easy as…I had to write a small tool to automate releasing certain…

CakePHP Tips Fall 2016

0

Always use proper version check method Be aware of version checks that are using the inferior and even wrong </> comparison. This can lead to wrong conditions with higher minor…Always use proper version check method Be aware of version checks…

PHP

Chronos – Let there be time

0

In PHP most know of DateTime class to handle date and time. At least with more modern PHP versions it is now not advised anymore to use the plain old…In PHP most know of DateTime class to handle date and…

PHP

Use isset() and empty() wisely

0

This is another part of the series "How to write better PHP code". Sometimes it is the small things than can make all the difference. In this case simply using…This is another part of the series "How to write better…

PHP

Avoid Yoda conditions

5

After blogging about the semantic importance of void as pseudo type I feel like I should also point out the nonsense of Yoda conditions. Those are still used quite a…After blogging about the semantic importance of void as pseudo type…

PHP

Return null vs return void

0

The other day I had a discussion about that, and why important open source frameworks like CakePHP use void in @return doc tags when void and null are code-wise totally…The other day I had a discussion about that, and why…

CakePHP Tips 2015

0

Most tips are for 2.x and 3.x as they have been applied to both versions. Complex radio inputs A while back I posted a tip about deep array options for…Most tips are for 2.x and 3.x as they have been…

CakePHP Meetups

0

About Meetups are a great opportunity to get in touch with other companies or people that use CakePHP. It is a good place to share experiences and find people even…About Meetups are a great opportunity to get in touch with…