Doctrine Migrations without frameworks

Few hours of each weekend I try to spend on developing my Financier app, which is nothing more than my interactive wallet to invest in market stock. It’s really easy command line app, that has two table in database. I have some plans for this application, that is why I’ve decided to implement library to manage database migrations.

I choose Doctrine Migrations that I usually use when I am working with symfony framework. This time, I wanted to use it on application where I don’t use any framework. First time I had to dive into documentation of this library, and it was terrible like diving into the dark ocean.

Continue reading “Doctrine Migrations without frameworks”

GOLANG/GO: How to start on MacOS and to be an expert in less than 5 minutes.

Let’s start with explaining what go/golang is and why you should look at it if you are programming in any other language.

The most important thing: it is still a young tool. It’s only eight years old (since 2009). But it is used by the biggest brands like Uber, Netflix, Google. Therefore, we can assume that this language won’t be abandoned and learning it has a little more sense if you require something more than being hipster developer.

[toc]

Continue reading “GOLANG/GO: How to start on MacOS and to be an expert in less than 5 minutes.”

TDD: Test-driven development sucks

Don’t click. The title is nothing more than clickbait.

When I’m starting writing this note is Saturday, and I’ve just come from a cafe. As usually, I went with my MacBook Pro and I’ve tried to create some code.

Today, I wanted to create a tool which helps me with mine investments on the stock market (Warsaw Stock Exchange).

Continue reading “TDD: Test-driven development sucks”

phpspec+behat: The Bowling Game Kata

A week ago, I announced on Twitter new blogpost about CQRS. I’m still writing it but I needed a little break from it and to take something new, something that I wanted to learn, try from a long time. I did my first Kata.

Kata is a Japanese word and could mean “practicing move”. Programmers adapted that word and created a lot of Katas (exercises) to improve their skills. One of the most popular Kata is The Bowling Game described by Robert Cecil Martin (Uncle Bob). The clue is to create an algorithm which shows score using the rules in this sport’s discipline.

On Saturday, I took my MacBook Pro and went to a cafe. I ordered, as usually, a large cappuccino without sugar and with non-fat milk and I’ve started two hours coding session.

Continue reading “phpspec+behat: The Bowling Game Kata”

Travis: How to configure Symfony to cooperation?

You are happy user of the Symfony framework, and you heard something about Travis than you decide to test it. In this article, I describe how to connect popular tests’ tools (PHPUnit, phpspec, Behat) to Travis, when you have Symfony on your backend.

Before, we started configuring Symfony for supporting Travis you should know what is Continuous Integration and why that idea is very useful.

In simple words, Continuous Integration is when your code is merged with master branch and tested a few times of a day automatically. In previous ages, programmer deployed application once, maybe twice a year, now we can publish our changes in minutes to a production server, and millions of users can start using it immediately.

Continue reading “Travis: How to configure Symfony to cooperation?”

Docker: Symfony – how to install it and use [LINUX]

Hi there. Today, I’m going to take care of PHP framework symfony and I’ll show you how to install it on your Linux machine by using docker.

If you use MacOS and you have installed docker as I described in my last note then you have to wait a while. I will describe it in another post.

As I’ve written before, symfony is a modern PHP framework, you can use it to create complex website. What is important, symfony has one of the biggest community. At this moment, it has more than 2 000 project contributors!

TL;DR: If you don’t want to read this article so you can go directly to the bottom where there is a full recipe ready to copy, paste and run.

Continue reading “Docker: Symfony – how to install it and use [LINUX]”

Start working with Amazon AWS on Mac OS

When I’m writing this tutorial I’m using macOS Sierra but everything should work correctly also on previous versions of macOS like El Capitan, Yosemite, Mavericks and so on.

This tutorial describes how to use the console to manage your cloud. I think it’s clearer and easier way than their website interface.

Let’s start. I assume that you’ve heard something about Amazon’s cloud. If not let me introduce you in the first chapter, everyone else can go directly to next chapters.

[toc]

Continue reading “Start working with Amazon AWS on Mac OS”

How to install Docker on Mac OS using brew?

What is Docker?

Docker is the next step on long IT containerization way. What does it mean? Years ago, you could run each application/process in particular container, that application couldn’t go outside the container which it was run. It was very safe but difficult to manage and not sharable. So you couldn’t easy share your container to other machine or to other developers to reuse for example by open source community.

So, that solution was a little bit complicated and worked only on Linux. Today we have Docker, which allows you to run containers on all operation systems. What is important, this tool is not only modern but also easy to manage and easy to share to others developers.

[toc]

Continue reading “How to install Docker on Mac OS using brew?”