A praise to Symfony2 PHP Framework

I’ve been working with php nearly 7 yrs in different industries and companies. It wasn’t something to proud or sound.

Let me share a bit of the problems We usually encountered as PHP programmer.

  1. Hire php programmer seem easier and cheaper, but they likely to work very differently
  2. They know different framework and some build their own framework and coding standard
  3. When the application down, they will probably blame system admin and system admin blame their framework and another framework war start
  4. Application started small, code small and we code it elegant nicely. But when business change critical rapid or new coder come in and code urgently then code go mad and hackish.
  5. Spageti code are not manageable, thousand lines of dependency codes just to support a tiny function.
  6. PHP programmer feel frustrated and productive drop compare to start a new app. so they quit.
  7. This is exactly how PHP programmer or PHP application got killed.

Summary of the lesson: Think before code. And what an coincident from my finding from Symfony2? It force us to think before code!

Symfony Framework

Symfony Framework

I am impressed, Almost every single details, philosophy, naming and the design. It is a framework, so it is. It is not some framework + library. it is a real framework and generous framework, with composer to manage the dependency of third party library. I would just praise they are bunch of smart people, the choices and the method are smart and elegant.

Namespace and Directory, Vender\Bundles make the codes resident in the right place, they exist with purpose. so your code are with purpose.

Dependency Injection. Not everything is entity, There are some Services and you will need it everywhere in your code. You don’t initiate the object to do the service for you. And to manage the environment configuration of your service for dev, testing, production. I haven’t go deep into DI yet. But this is something definitely save us.

Request and Response Framework. We use MVC in our resume for every interview. This become a standard to show that we know to collaborate with front end and back end developer. But in symfony2, MVC is hiding… we don’t say MVC because it is not worth our mention in application wise. But yet, different developer still working together happily, even better than those who use MVC as their framework marketing keyword. TWIG is so far the best front end engine I have ever used. Doctrine is the most comprehensive back end as well. What could go wrong with them? But yet a good framework not just about that. We have a lot more services and interface to care. But ultimately, the most important two should be emphasis. Request and Response. This focus make symfony2 architect rightly.

In fact, the books are written a lot clearer and I might be miss leading. Testing with PHPUnit, Assertive, Validate, Routing, Cache, PSR coding standard. I think symfony2 give php developer a new way. So that we can code some good stuff and manageable.

Well, It is so far the hardest framework to me to learn.. it take sometimes to make us a good developer. At least, think rightly.

Last but not least, I shall credit one of my friend who recommend me this great symfony framework. Thanks Kun. Or I won’t be like to code for the rest of my life.

听不见的声音

我们的周围存在着许多杂音,也有一些明确响亮的声音,太多的资讯,太多的指示,太多的声音。我们无法去检验每一个声音背后的动机,也无法闭上耳朵什么都不听,逐渐的我们被各种听到的声音转换着,我们不知道。

R E S T

R E S T

音乐人经常忽略的休止符,就象我们忙碌的生活一样忽略了安静。被忽略的并不代表它是廉价的,只是也许我们短视看不见它的价值。

听不到的声音,是艺术的一部分,在吵闹的时候,你若听见了它,它就有强大的转折力量,推动下一股新浪潮。

Inspired by “How dragon nest destroyed my life” topic replies in CC forum

http://forum.cherrycredits.com/forum/topics/view/how-dragon-nest-destroyed-my-life/page:1

Somebody posted a story of him in game forum (in spite of true or not)… telling how he spend his time, money on the game and ruin his study, relationship and health…

It is a long story and he admit he end up with lung cancer stage 2…

Then I wonder the replies of other users or gamers. Surprisingly they are inspiring.

They show pity on him… and then mock on him T_T..

—–

It is true, sometime we blame the Lord why HE put the temptation for us to sin. In fact, it is just give us freedom and choices. We’re the one choose how to live.

we are just so sick and forgotten his TERM and CONDITION…

Just that.. the real God always has a PLAN B for us.

The title in different Industries

Just simple piece information for fresh professional who employed or employing.

Professional Title tell the level and work field in a company, but not entire professional.

A same title in different industry, value are different. Just like a coffee sold in Starbuck and SuperMarket taste different, price different too.

When it is the primary assets, It certainly cost higher, more pressure but more value too.

Lesson I learned. Know my asset and treat them nicely.

[转载] 對基督徒非常有用的29個提醒

1. 下次如果你覺得自己了不起時,試試在水面上行。

2. 當魔鬼提醒你的過去時,請提醒牠的未來。

3. 你不是幸運,而是蒙福。

4. 你若要真正活於主,就得先要死於自我。

5. 機會也許只敲一次門,但試探卻總是在按門鈴。

6. 我們常在堅強時,忘記了主。

7. 那些只在安息日呼喚「天父」的人,在一星期餘下的日子裏活得像孤兒。

8. 不要唯我獨尊,要以主為尊。

9. 沒有基督,沒有平安;找到基督,找到平安。

10.為什麼我們不會向朋友提起基督?因為我們不會向基督提起我們的朋友。

11.當把你的一切獻給主,因為祂把祂的一切都給了你。

12.你現在所追求的,值得基督為它死嗎?

13.使你向主靠近的人,是你真正的朋友。

14.神愛我們,不是因為我們是怎樣的一個人,而是因為祂是怎樣的一位神。

15.主的應許像夜空裏的星星。夜越深,星星的光芒越亮。

16.沒有基督的生命,是無止的絕望。有基督的生命,是無盡的盼望。

17.我雖不知道明天會怎樣,但我知道誰掌管著明天。

18.把你的重擔交給主,讓它留在主那裏。

19.不要害怕明天,因為主已在那裏。

20.當你除了神,一無所有時,你將知道神使你一無所缺。

21.將一切交託在主手中,別再向主苦訴你生命的波濤有多洶湧,當向洶湧的波濤宣述你的主有多偉大。

22.能夠滿足人心的,是締造人心的那一位。

23.請常常讓你的光從心中照耀,因為你不知道,誰會藉著這光走出黑暗。

24.當我們只顧工作的時候,我們獨自工作;當我們祈禱的時候,神在工作。

25.神無處不在,所以我們可以隨處禱告。

26.一個沒有需要的人永遠見不到神跡。

27.欽崇主提醒我們生命的價值,但世界卻不斷使我們忘記它。

28.步履維艱的時候,別只顧祈禱而忘記走上主要你走的路。

29.祈禱會為我們作很多事,憂慮會對我們作很多事。

[转载]当你复习不进去的时候,不妨看看大脑是怎么想的?

看到这篇文章,觉得讲得挺好,故转载了。
尽管科学家一个接一个的科研成果让我们对记忆有了越来越多的了解,但直到今天,科学家所发现的所谓大脑的秘密也只是冰山一角,在很大程度上,大脑和记忆仍是神秘的。研究人员认为,记忆是一个过程,并且当你记忆的时候,实际上就是你把保存在大脑中零零碎碎的信息进行重建。但让人不解的是,究竟是什么东西引发大脑开始这个重建过程?这个谜团继续等待科学家们去寻找答案,但有20个事实是已经科学家证实了的。

  1. 大脑喜欢色彩。平时使用高质量的有色笔或使用有色纸,颜色能帮助记忆。
  2. 大脑集中精力最多只有25分钟。这是对成人而言,所以学习20到30分钟后就应该休息10分钟。你可以利用这段时间做点家务,10分钟后再回来继续学习,效果会更好。
  3. 大脑需要休息,才能学得快,记得牢。如果你感到很累,先拿出20分钟小睡一会儿再继续学习。
  4. 大脑像发动机,它需要燃料。大脑是一台珍贵而复杂的机器,所以你必须给它补充“优质燃料”。垃圾食品、劣质食品、所有化学制品和防腐剂,不仅损害身体,还削弱智力。英国一项新研究显示,饮食结构影响你的智商。
  5. 大脑是一个电气化学活动的海洋。电和化学物质在水里能更好地流动,如果你脱水,就无法集中精力。专家建议,日常生活要多喝水,保持身体必需的水分,而且一天最好不要饮用相同的饮料,可以交换着喝矿泉水、果汁和咖啡等。另外,研究资料显示,经常性头痛和脱水有关。
  6. 大脑喜欢问题。当你在学习或读书过程中提出问题的时候,大脑会自动搜索答案,从而提高你的学习效率。从这个角度说,一个好的问题胜过一个答案。
  7. 大脑和身体有它们各自的节奏周期。一天中大脑思维最敏捷的时间有几段,如果你能在大脑功能最活跃的时候学习,就能节省很多时间,会取得很好的学习效果。
  8. 大脑和身体经常交流。如果身体很懒散,大脑就会认为你正在做的事情一点都不重要,大脑也就不会重视你所做的事情。所以,在学习的时候,你应该端坐、身体稍微前倾,让大脑保持警觉。
  9. 气味影响大脑。香料对保持头脑清醒有一定功效。薄荷、柠檬和桂皮都值得一试。
  10. 大脑需要氧气。经常到户外走走,运动运动身体。
  11. 大脑需要空间。尽量在一个宽敞的地方学习,这对你的大脑有好处。
  12. 大脑喜欢整洁的空间。最近的研究显示,在一个整洁、有条有理的家庭长大的孩子在学业上的表现更好。为什么,因为接受了安排外部环境的训练后,大脑学会了组织内部知道的技巧,你的记忆力会更好。
  13. 压力影响记忆。当你受到压力时,体内就会产生皮质醇,它会杀死海马状突起里的脑细胞,而这种大脑侧面脑室壁上的隆起物在处理长期和短期记忆上起主要作用。因此,压力影响记忆。最好的方法就是锻炼。
  14. 大脑并不知道你不能做哪些事情,所以需要你告诉它。用自言自语的方式对大脑说话,但是不要提供消极信息,用积极的话代替它。
  15. 大脑如同肌肉。无论在哪个年龄段,大脑都是可以训练和加强的。毫无疑问,不要寻找任何借口。不要整天呆在家里无所事事,这只能使大脑老化的速度加快。专业运动员每天都要训练,才能有突出表现。所以你一定要“没事找事”,不要让大脑老闲着。
  16. 大脑需要重复。每一次回顾记忆间隔的时间越短,记忆的效果越好,因为多次看同一事物能加深印象,但只看一次却往往容易忘记。
  17. 大脑的理解速度比你的阅读速度快。用铅笔或手指辅助阅读吗?不,用眼睛。使用这种方法的时候,需要你的眼睛更快地移动。
  18. 大脑需要运动。站着办公效率更高。
  19. 大脑会归类,也会联系。如果你正在学习某种东西,不妨问问自己:它让我想起了什么?这样做能帮助你记忆,因为大脑能把你以前知道的知识和新知识联系起来。
  20. 大脑喜欢开玩笑。开心和学习效率成正比,心情越好,学到的知识就越多,所以,让自己快乐起来吧~!

Benjamin Zander on music and passion

How inspiring Talk in TED. I remember she share me this talked years ago, I love it and now see it one more time. With better understanding than last time.

I love the impressive introduction. love the way he explain the music. love his ending.

there is subtitles in different language in TED site in case you cannot read them here.