サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
買ってよかったもの
ocramius.github.io
TL;DR: Make your classes always final, if they implement an interface, and no other public methods are defined In the last month, I had a few discussions about the usage of the final marker on PHP classes. The pattern is recurrent: I ask for a newly introduced class to be declared as final the author of the code is reluctant to this proposal, stating that final limits flexibility I have to explain
Hi! I'm Marco! Ocramius Doctrine Project A group of persistence-oriented libraries for PHP We are looking for contributors! (Must be prepared to take unpopular decisions) Doctrine ORM A JSR-317 / Hibernate inspired Object Relational Mapper Doctrine 2 ORM Best Practices Know your enemy Know your enemy tools Knowledge is Power When is an ORM the appropriate tool? Who is Doctrine ORM for? OLTP DDD Fa
If you try to re-normalize this resultset, you can actually see how many useless de-duplication operation have to happen. That is because the User ocramius@gmail.com has multiple active sessions on multiple devices, as well as multiple social accounts. SLOW! The hydration operations on this resultset are O(n * m * q), which I'm going to simply generalize as O(n ^ m), with n being the amount of res
Today, I had again a discussion on IRC on why Doctrine's EntityManager doesn't (and won't) implement a fluent interface. Here are my thoughts on why that's the case. Recap: What is a Fluent interface? A Fluent Interface is an object oriented API that provides "more readable" code. In general, the template for a fluent interface can be like following: <?php interface {InterfaceName} { /** @return s
A couple of weeks ago I was working on a very tricky issue on ProxyManager. The problem is simple: instantiating ReflectionClass or ReflectionProperty is slow, and by slow, I mean really slow! The reason for this reasearch is that I'm trying to optimize a "hydrator" to work with larger data-sets by still keeping a low initialization overhead. PHP 5.4 to the rescue! PHP 5.4 comes with a new API for
Dependency Injection Containers and Performance Dependency Injection Containers are a vital tool for developers of complex and modular applications. Using a Dependency Injection Container in your application brings you great benefits, allowing you to compose complex object graphs without compromises or unnecessary ugliness (i.e. static methods). By using a Dependency Injection Container you automa
このページを最初にブックマークしてみませんか?
『Ocramius' blog - software development thoughts by Marco Pivetta』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く