Kai's profileFreestarPhotosBlogListsMore Tools Help

Blog


    July 06

    人生 vs 程序

    前些日子,突发奇想,觉得人生好比你自己在写的一个大型程序。
     
    1。 好的框架师才能写出好的程序。好的框架师要能定下目标,分清模块,理清优先次序,才能确保程序的完成。否则,写的东西越多,越是一推乱麻,心情也就越烦躁。
    人生也是如此,不是吗?
     
    2。 好的程序员,讲究程序的高耦和性(High Cohesion) 和底关联性(Low Coupling). 人生可能也是如此,你无须是个万事都通达的全才,但你的知识面必须在1,2个领域内是高度耦合的专家,你这个程序才有了价值。否则,或许也就一个中看不中用的花瓶。
     
    3。写程序就难免要犯错,所以我们难免要天天抓虫子(Debugging). 但,所有程序员或许都有这样的经验,抓掉一个虫子,反而可能导入10个更严重的虫子。人生在这点上有时候也是有趣的相似。我们有时候是不是也曾经为了弥补一个过失,反而犯下了更大的过失,最终弥补也弥补不清了,索性放弃呢?
     
    4。好的程序都经过好多年的修正,再修正。在追求完美的同时,痛苦挣扎于现实的不完美。人生也莫非如此。但,重要的是不断修正的勇气,毅力和信念,不是吗?
     
    5。好的大型程序都不是一个人能独立完成的。所以,免不了要引用别人完成的好的模块,借鉴别人的智慧。引用优秀的模块,会让你迅速达到目标。引用错了模块,可能让你云里雾里好久,都不知道问题在哪儿。人生也是同样的道理。和智慧的人同行,远离迂腐和愚昧。
     
     
     
    但愿你能写出你自己的好程序!
     
     

    Comments (2)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Yafei Wangwrote:
    ^^学习到了很多!
    July 6
    Yang Taylorwrote:
    写滴真好
    July 6

    Trackbacks

    The trackback URL for this entry is:
    http://kaixu1026.spaces.live.com/blog/cns!363B4A6255EB49E7!584.trak
    Weblogs that reference this entry
    • None