Posted by & filed under Webdev.

Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions. And before you ask: It’s BSD licensed!

Flask is Fun

from flask import Flask
app = Flask(__name__)

def hello():
    return "Hello World!"

if __name__ == "__main__":

And Easy to Setup

$ pip install Flask
$ python
 * Running on http://localhost:5000/


Posted by & filed under Webdev.

vagrant is a tool for building complete development environments. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases development/production parity, and makes the "works on my machine" excuse a relic of the past. Vagrant also supported by PHPStorm

Windows setup: VirtualBox + Vagrant
OSX setup: Parallels + Vagrant

Online image setup
Big image collection

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 been hired to build the famous ls UNIX command. A stakeholder may say to you:

Feature: ls
  In order to see the directory structure
  As a UNIX user
  I need to be able to list the current directory's contents

  Scenario: List 2 files in a directory
    Given I am in a directory "test"
    And I have a file named "foo"
    And I have a file named "bar"
    When I run "ls"
    Then I should get:

Posted by & filed under Webdev.

This is boilerplate markup (a blank HTML document template) for HTML5-capable web pages.

<!DOCTYPE html>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
<!--[if lt IE 9]>
<script src="//"></script>
<script src="//"></script>
<link rel="shortcut icon" href="">
<!-- Place your content here -->
<!-- SCRIPTS -->
<!-- Example: <script src="//"></script> -->

Copy-and-paste the code template above in a new HTML document and then fill out the blanks.
Github @sixrevision
Read more »

Posted by & filed under Webdev.


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

Простые и понятные рекомендации к рефакторингу, собранные в одном месте.

Пользуемся и добавляем в закладки.

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 changes that will yield large gains as well as teach you how to become a better PHP developer.

One of the most important things you can do when improving PHP application performance is begin measuring your application to find a baseline performance time for different parts of your application. If you do not know which parts of your application are slow or have bottlenecks, you will not know where to begin optimizing your code for better performance. There are many commercial and free applications that can be used to measure PHP performance. See the article PHP Profilers Compared for further information.

Read more »

Posted by & filed under OSX.

Apple_Swift_LogoJust day ago Apple introduce new programming language named “Swift”.

As they say” Swift is a new programming language for creating iOS and OS X apps. Swift builds on the best of C and Objective-C, without the constraints of C compatibility. Swift adopts safe programming patterns and adds modern features to make programming easier, more flexible, and more fun.

Here it is small usefull links collection about Swift

Developer manual by Apple
Documentation in iBook format
Reddit discussion about “should i learn Objective C or drop it and use Swift” swift’s links collection
WWDC 14 Videos from developer presentation