Highly Opinionated Thoughts On Programming

By Elnur Abdurrakhimov



Testing Is Not a Choice

May 30, 2015

I see a lot of teams debating whether or not they should be writing automated tests. In fact, I see even more teams not writing any tests at all, but that’s another story.


Keep Domain Logic Out of Controllers

May 30, 2015

I see domain logic in controllers too often and I hope that after this post I’ll see it at least a bit less.


Switching From Ghost to Jekyll

May 22, 2015

I started off the blog on the Ghost blogging platform. And yesterday I’ve migrated it to Jekyll. Why?


Programmatic Transaction Management in Tests With Spring

Aug 9, 2014

Spring supports transactions during tests, but those transactions either roll back or commit only after a test has finished running. So what if we need to commit a transaction during the test? That might be necessary if we’re preparing test fixtures for each test inside tests themselves — not using some global fixtures that all the tests share.


Testing Repositories

Jun 11, 2014

Another common confusion I see in the PHP community is unit testing repositories. Some developers using an ORM like Doctrine mock a query builder and make their mocks expect particular methods calls with particular arguments. Others even try to parse resulting DQL and check it for particular structure. And there are some who go as far as doing the same with the resulting SQL. o_O



© Elnur Abdurrakhimov