Anemic domain model problem in Symfony2

Image gets from http://health.allwomenstalk.com

I wrote this post cause I had discussion at #4developers.
We speak about anemic model problem in Symfony. I heard about that before but after conversation I try to learn more and write my thought about it.

»Read More

RAD Bundle… What it is?

Recently KnpLabs make some noise by released new edition of Symfony.
After some discussion at twitter and irc new PR with reverting directory structure appeared: https://github.com/KnpLabs/KnpRadBundle/pull/11

I am working for KnpLabs, but never tried RAD edition before. I decided to try… I needed to know what is so controversial about it.

»Read More

Coding standards in symfony 1.x projects with PHPCS

We have heard a lot about Symfony2 recently. Now it’s time for a little oldschool. I mean… post about symfony 1.x ;) I think that this post can be considered more generally, not only in symfony context.
PHPCS (PHP_CodeSniffer) is great php tool which can detect violations of our coding standard.
I will show how I configured it to check standards in my symfony 1.x projects.

»Read More

Complexity Driven Development


by nerovivo

We are software developers, and we make complicated things. But why do we make simple things complicated? I often ask myself:

Why did i implement something in such way?

My answers:

  • wrong assumption (lack of acceptace criteria)
  • thinking about technical stuff, tools and architecture instead of client needs and client businees plans.

»Read More

Elastic Search in Symfony 2

Welcome after break! Now I am back and ready to write ;) .

After my last post, I began to look more closely at “Elastic Search”.
I think that SOLR is quite good, but SOLR WEB API sucks!

After reading documenation at http://www.elasticsearch.org/ I can tell that REST API is better than SOLR WEB API.
I wanted to check how “Elastic Search” works in practice.
It was after release of “Symfony2 Beta 2″, so I thought why not try to use “Elastic Search” with Symfony2?
I found out that for PHP we have two clients already (clients for other languages are available too: http://www.elasticsearch.org/guide/appendix/clients.html).
After few next queries to google I noticed that someone created “ElasticaBundle” (http://symfony2bundles.org/Exercise/ElasticaBundle).
I will describe step by step how I enabled and tried ElasticaBundle.

»Read More

How to find what you looking for? Search in symfony

It is not so easy to provide good search results quickly using only RDBMS mechanism.
Fortunately, we can find many open source search engine platforms, and we can use them in PHP.
I needed some search platform which I can include in my symfony project using doctrine and postgres database.

»Read More

Varnish – The First Encounter

Varnish logo

Preparation:
I stared playing with Varnish from looking at official Varnish documentation (http://www.varnish-cache.org/docs/2.1/index.html), HTTP 1.1 specification (http://tools.ietf.org/html/rfc2616) and viewing varnish presentation which I found at symfony.com webpage (http://symfony.com/video/Paris2011/569)

»Read More

Cry for help – UX

I always had problems with user experience and with designing intuitive user interfaces. I was searching for some tips and tricks recently. After quick search I found those website:
»Read More

Simple complicated things

We like make things, but we like make them complicated. This topic is getting popular. I have seen two lectures The lost art of simplicity, Josh Holmes and The forest for the trees, Greg Young and I am inspired by those lectures.

»Read More

Tests are cool! Please use them!

Learning by Unit tests

Recently I discovered that unit tests are great when we want to learn new project, library or we want to know what happens in some part of code.
I created only a few unit tests for Symfony2, but I learned a lot.
Let’s say that we want learn about routing in Symfony2.

»Read More