Don't wanna be here? Send us removal request.
Text
Patterns and Approaches
I am member of Exercise.com team. We are building our awesome web-application using cutting-edge technologies such as Symfony2, Doctirne2, Twig etc. This is fortunate use latest trends in you sphere (PHP for me). As said my old friend Thibault Duplessis, also known as @ornicar: "We are code warriors." This libs provide deadly simple and clear API to use them, but sometimes I feel like a user in our complex application. I exactly know how to do this or that feature, but not always know how it works under the hood.
Doctrine2.
As doc said it based on several patterns: DataMapper, UnitOfWork, Repository.
Time by time I have reviewed doctrine code to understand some logic or flow, but it's only occasionally.
Before dive deeper into doctine, and probably send any PR or write extension, you should at least understand base patterns on which it based.
I have asked bible of patterns GoF -- Design Patterns, but not luck, I have found nothing similar to DataMapper, UnitOfWork or Repository.
In few minutes I have found next awesome book, that I want to advice to you, it's Patterns of Enterprise Application Architecture by Martin Fowler. It describes, as far as I got, not patterns but, probably, approaches. Despite title Patterns of Enterprise blah-blah... you can, and I highly recommend to you, use described approaches in you daily work.
There is list of approaches described in book (alphabetical order).
I have marked doctrine related approaches via bold.
Active Record Application Controller Association Table Mapping Class Table Inheritance Client Session State Coarse-Grained Lock Concrete Table Inheritance Data Mapper Data Transfer Object Database Session State Dependent Mapping Domain Model Embedded Value Foreign Key Mapping Front Controller Gateway Identity Field Identity Map Implicit Lock Inheritance Mappers Layer Supertype Lazy Load Mapper Metadata Mapping Model View Controller Money Optimistic Offline Lock Page Controller Pessimistic Offline Lock Plugin Query Object Record Set Registry Remote Facade Repository Row Data Gateway Separated Interface Serialized LOB Server Session State Service Layer Service Stub Single Table Inheritance Special Case Table Data Gateway Table Module Template View Transaction Script Transform View Two Step View Unit of Work Value Object
21 notes
·
View notes
Text
Behat meta steps -- awesome feature!!
Hello guys, let me show you how to prepare Behat meta step.
For example, you need start each your scenario form one entry point -- logged in as specific user and located at homepage.
In this case you will need start each your scenario like this:
Let`s hide all login steps to meta step.
Add to your FeatureContext
now you can use it at your feature definition.
Much better now!
11 notes
·
View notes
Text
Перевод
http://javascript.info
Буду помогать переводить.
https://github.com/iliakan/javascript-book
0 notes
Text
Late Static Bindings
Недавно узнал о такой возможности Php 5.3, как Late Static Bindings.
http://php.net/manual/en/language.oop5.late-static-bindings.php
Век живи, век RTFM, и все равно LMD.
7 notes
·
View notes
Text
FTS
Хочу разобраться с полнотекстовым поиском.
elasticsearch(java) > elastica(php) > ElasticaBundle(sf2)
http://www.elasticsearch.org
1 note
·
View note
Text
Блин...
Начинаю деградировать
$this->get('uber_service')->makeHappy($param);
Все несложные задачи сводятся к такому...
0 notes
Text
Coffee 'n' Code hosting
Пальмира отбой: нет wi-fi, не особо много места, накурено кальянами.
0 notes
Text
Coffee 'n' Code #1
Вот и закончился мой первый кофи-код.
Посидели в Браво, вроде ничего так получилось.
Только как-то все сумбурно -- достижения не очень, НО главное начать.
Думаю буду искать более подходящее место. Тарантелла (детская комната) или Пальмира...
0 notes
Text
IRC
Поставил xChat, IRC клиент под Ubuntu.
Fuck yeah. Насколько он лучше чем mIRC, я удивлен!
1 note
·
View note
Text
Coffee 'n' Code Черкассы
Планирую на этой неделе провести Coffee 'n' Code.
Тематики собрания: JavaScript, unit-тесты в php -- phpUnit и иже с ними.
0 notes
Text
JavaScript MK
Начались Мастер-классы по JS.
Сижу набираюсь ума...
1 note
·
View note
Quote
Learn JS, not jQuery. jQuery is easy and not worth a formation. JS is complex and deep
Thibault
0 notes
Text
Cloud PHP IDE
Увидел новость про Chrome-бук.
http://habrahabr.ru/blogs/google/119160/
Задумался, а есть ли нормальная on-line IDE для PHP.
3 notes
·
View notes
Text
Стишок
Цикл в цикле, в цикле, в цикле. Цикл в цикле, в цикле, в цикле. Цикл, цикл, цикл, цикл. Цикл в цикле..... out of memory
1 note
·
View note