Behat – BDD for PHP

Posted by & filed under Webdev.

Behat is a php framework for testing your business expectations. Behat is a tool that makes behavior driven development (BDD) possible. With BDD, you write human-readable stories that describe the behavior of your application. These stories can then be auto-tested against your application. And yes, it’s as cool as it sounds! For example, imagine you’ve… Read more »

A Generic HTML5 Template

Posted by & filed under Webdev.

This is boilerplate markup (a blank HTML document template) for HTML5-capable web pages. Copy-and-paste the code template above in a new HTML document and then fill out the blanks.  

Руководство по рефакторингу

Posted by & filed under Webdev.

Рефакторинг — это контролируемый процесс улучшения вашего кода, без написания новой функциональности. Простые и понятные рекомендации к рефакторингу, собранные в одном месте. Пользуемся http://refactoring.guru/ и добавляем в закладки.

50+ best practices to optimize PHP code perfomance

Posted by & filed under Webdev.

Like any scripting language, PHP can be used in a variety of applications. The down-side for most programmers is that when they learn how to write PHP, they do not always learn how to write PHP with speed and optimization in mind. This article addresses most common ways you can improve your code with minor… Read more »