Skip to main content

Posts

Showing posts from August, 2015

Yii Active Record

Like other implement ActiveRecord (AR) in many PHP n Ruby Framework, when I work with framework has implemeted it, there are some common method n there are some custom build-in from FW. - Handle log changed (only changedAttributes) in AR: $oldAttributes getOldAttributes() http://www.yiiframework.com/doc-2.0/yii-db-baseactiverecord.html https://github.com/yiisoft/yii2/issues/4086 [5:31:19 PM] dzung nguyen: $log = 'test.txt';                     $ln = "\r\n";                     file_put_contents($log, $model->getOldAttributes(), FILE_APPEND); [5:33:40 PM] dzung nguyen: n checkout logic in LogRecord::logAfterSave() [5:33:58 PM] dzung nguyen: it calculate what field is need to log

Martin Fowler - Who need an Architect ?

http://martinfowler.com/ieeeSoftware/whoNeedsArchitect.pdf The best part I liked about it was this statement: Software is not limited by physics, like buildings are. It is limited by imagination, by design, by organization. In short, it is limited by properties of people, not by properties of the world. “We have met the enemy, and he is us.” This seems very true; I have heard many senior architects resembling software architecture with a Building Construction during their presentations, while I tend to agree on some of the aspects like creating a blue print before implementing the building but I do feel that building a software and constructing a building don’t make a fit analogy. As martin mentions in his article, once you have designed a building it is very difficult to change the basement, on the other hand if you have layered your software well and applied the relevant design patterns you can still make shifts to your foundations without impacting the entire software sta...

Agile Essential and Fluency

Martin Fowler Software Development in the 21st Century. Software Development in the 1990s Late Projects          Unhappy Users                                              The Cure is                          Bloated Projects                                       Plan-Driven                                                                                     Processes                      Buggy Software  ...