大学三年:我的编程感悟

说到编程,这似乎是我最不务正业的爱好了。既是兴趣所在,也是没有压力去研究代码,我的编程环境显得很轻松。说说感悟吧,也说不上感悟,写得有点像流水账 了,纠结纠结一下大家就当做感悟看吧吧。

说到编程,完全是因为喜欢上“黑客”这个高深的称号。

在大学三年里面,我 先是被 ASP.NET铺天盖地的宣传所迷惑了,奋不顾身地投入到微软 ASP.NET的怀抱,私下自学几个月后发现所谓的 ASP.NET的框架其实也不是“非常敏捷”的开发,往页面上拖一个Grid就需要查阅几页的文档显然不是我喜欢的风格。一段时间的停顿后,我就投奔到 Php的怀抱了,它的“草根”特性确实让我这样的新手能够飞速入门,而我也是通过Php对面向对象编程有深入了解的。转投Php的怀抱,于是我就彻底转向 OpenSource的事业里面来了,由于Php开发的需要,接着学习了Mysql 和 Xhtml + CSS + Javascript,再加上LAMP的服务器架构,一路学习下来也是理所当然的。说说感受吧:xhtml 和 CSS除了让人蛋疼的各种浏览器的兼容开发(IE是尤其让人痛苦的,Firefox最爽),其他的还真是没有什么好说,但 Javascript 这个东西在网页前端编程确实很值得一说的。凭借着Ajax的巨大浪潮,RIA或者什么肥瘦客户端的兴起,Javascript这个曾经被认为“花拳绣腿” 的技术终于有了“火一把就死”的资本,我曾无数次百度Google其相关的技术,发现JQuery在国内几乎等同与Javascript开发,拒绝跟随主 流的个性告诉我应该认真深入一下Javascript,于是我认真学习了Javascript的相关知识,不是浅显地会 用$('#menu').addClass('red')这样的“连缀”语法,而是自己深入到JQuery 代码内部发觉这只不过是一个 return this的语法小把戏,然后发现 JQuery这样的框架并不适合我,从 YUI到 Dojo,发觉还是Mootools最符合我的心意。 


就 这样在代码中折腾,到大二末尾的时候,我的php已经有了一定水平,由于不满各种框架的“约定”的编程规范,同时为了更好地深入Php编程的架构,我不得 不“重新建立自己的轮子”,于是自己笔记本上的 SVN仓库已经躺着好几个未成形的PHP框架。呵呵,很奇怪,为什么会是“好几个未成形的PHP框架”呢?这样说吧,我先是遵从PHP所谓的MVC模式, 建立了一个如同 CodeIgnter那样的框架,后来阅读康盛的Discuz系列产品的时候发现还是有更简洁的框架实现的方法的,于是抄袭Suposite里面的架构又 弄了一个框架,再到后来由于想架设自己的Blog,先找了 wordpress的代码看了一下发现完全没有头绪,再找到 Typecho博客系统,阅读其代码后发现PHP 框架还有更简洁的实现方法,于是我又弄了一个PHP框架。好了,至此,我已经为PHP 框架折腾了好一段时间了,而我的PHP 开发水平也跟随我的“折腾”突飞猛进。 


到大三的时候我得到机会去台湾学习半年,在台湾优 越的生活条件和众多的美女自然是不必说的了,静心下来我还是喜欢阅读我的代码。我一直苦恼于怎样将我的PHP 框架的请求“静态化”,就是“静态化”请求http://example.com/blog/article.html 的链接,综合各种方案发现除了用 Rewrite之外几乎等于无解。在Google Reader上订阅“云风的博客”(codingnow.com)已经老久了,在台湾看完美女回来宿舍,我忽然发现他的Blog的连接就全部是“静态化” 的链接,一冲动起来抄起Google 看看他用的是什么Blog系统,接着我就找到了MovableType这套用Perl写的Blog系统,由于很奇怪它的“静态化”的实现,凭借这PHP的 代码基础加上无敌的Google,我很顺利就把它的代码给读下来了,正烦恼于Perl的“天书”一般的代码,刚好在搜索Perl的时候看到很多 Python跟Perl的对比,于是又看了看Python。不看就罢了,一看Python这语言就喜欢到不得了,而这个喜欢,几乎就成为我代码开发的转向 了。 


在台湾丰富的网络资源(这话不假,至少台湾不用翻墙)的滋润下,我对Python的了解渐渐加深,后来干脆就抛弃PHP 复杂的实现,全部转投到Python的怀抱了。Python的“简洁”是我体会最为深刻的,连CGI WEB服务器的实现都这么“简洁”得有味道。对比PHP 和PYTHON 的开发效率,Python完成的代码量几乎是PHP 的五分之一。至此,我已经彻底投奔Python的怀抱了,有空就上网找资料,去图书馆找书看。但无奈中文资料甚少,到我完成本文为止,中文的已经出版的书 籍不过是12本(卓越 截止到2010.06.01的数据),学习Python尤其显得艰难。反正也难得自己喜欢的东西,虽然学得很累很郁闷,但我喜欢了就继续下去吧。呵呵。 


在 Csdn上看到一个人的评论:一个程序员在实现了程序的功能的同时,肯定还常常想着如何“优雅”地实现程序的功能。“优雅地实现程序的功能”这句话是很要 命的,这意味着你要不断地去“折腾”你的代码,用各种所谓的“开发模式”去重构你的代码,“低耦合,高度重用”从来就是代码员的追求。但我想,作为 Coder,这样的折腾还是值得的,君不见从汇编语言到今天的Java 这样的高级语言,其意义本身就是人类在不断挑战自己的极限的过程。我还是很相信wordpress 里面的 Code is a poem 这样的广告的,代码如诗嘛,我认同了这句话所以选择IT,选择了互联网,我希望你的看法不会和我相差太远。呵呵。

 



63 Responses to “大学三年:我的编程感悟”

  1. reply to Replica Louis Vuitto Replica Louis Vuitto Says:

    I've been browsing online more than 4 hours today, yet
    I never found any interesting article like yours.
    It is pretty worth enough for me. In my opinion,
    if all site owners and bloggers made good content as you did, the web will be a lot more useful than ever before.|
    I couldn't resist commenting. Well written!|
    I'll right away grasp your rss as I can not in finding your e-mail subscription link or e-newsletter service.
    Do you've any? Please allow me understand
    so that I could subscribe. Thanks.|
    It is perfect time to make some plans for the future
    and it is time to be happy. I've read this post and if
    I could I want to suggest you some interesting things or tips.
    Perhaps you could write next articles referring to this article.
    I want to read even more things about it!|
    It's the best time to make some plans for the longer term and
    it is time to be happy. I've read this submit and
    if I may I want to suggest you some attention-grabbing issues or tips.
    Perhaps you can write next articles regarding this article.
    I desire to learn more issues approximately it!|
    I've been browsing on-line more than 3 hours today, but I by
    no means discovered any interesting article like yours.

    It's beautiful worth sufficient for me. Personally, if all site owners and
    bloggers made good content material as you probably did, the net will be a lot more helpful than ever before.|
    Ahaa, its fastidious discussion about this post here at this web site, I
    have read all that, so at this time me also commenting here.|
    I am sure this paragraph has touched all the internet
    visitors, its really really nice article on building up new web site.|
    Wow, this paragraph is fastidious, my sister is analyzing
    these kinds of things, therefore I am going to convey her.|
    bookmarked!!, I love your blog!|
    Way cool! Some very valid points! I appreciate you writing this article and the
    rest of the site is really good.|
    Hi, I do think this is a great site. I stumbledupon it ;
    ) I am going to revisit yet again since I book marked it.

    Money and freedom is the best way to change, may you
    be rich and continue to help other people.|
    Woah! I'm really enjoying the template/theme of this website.
    It's simple, yet effective. A lot of times it's challenging to
    get that "perfect balance" between usability and visual appearance.
    I must say that you've done a superb job with this.
    In addition, the blog loads extremely fast for me on
    Opera. Exceptional Blog!|
    These are truly impressive ideas in regarding blogging.

    You have touched some good factors here.
    Any way keep up wrinting.|
    I really like what you guys tend to be up too.
    Such clever work and reporting! Keep up the great works
    guys I've included you guys to blogroll.|
    Hi there! Someone in my Facebook group shared this site with us so I came to give it a
    look. I'm definitely enjoying the information. I'm book-marking and will be tweeting
    this to my followers! Superb blog and superb design and style.|
    I really like what you guys are usually up too. This kind of clever work and reporting!

    Keep up the fantastic works guys I've added you guys to
    our blogroll.|
    Hi would you mind stating which blog platform you're working
    with? I'm looking to start my own blog soon but I'm having
    a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design and style
    seems different then most blogs and I'm looking for something completely unique.
    P.S Sorry for getting off-topic but I had to ask!|
    Hey would you mind letting me know which web host you're working with?
    I've loaded your blog in 3 completely different web browsers and I must say this blog loads a lot quicker then most.
    Can you suggest a good web hosting provider at a honest price?
    Thanks, I appreciate it!|
    Everyone loves it whenever people come together and share views.
    Great website, continue the good work!|
    Thank you for the good writeup. It in fact was a amusement account it.
    Look advanced to far added agreeable from you! However, how can
    we communicate?|
    Hey there just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Chrome.

    I'm not sure if this is a format issue or something to do with internet browser compatibility but I figured I'd post to let you know.
    The design and style look great though! Hope you get the issue resolved soon.

    Many thanks|
    This is a topic that's close to my heart... Take care! Where are your
    contact details though?|
    It's very straightforward to find out any matter on net as compared
    to textbooks, as I found this post at this website.|
    Does your blog have a contact page? I'm having trouble
    locating it but, I'd like to shoot you an e-mail. I've got some
    creative ideas for your blog you might be interested in hearing.
    Either way, great site and I look forward to seeing it improve over time.|
    Hola! I've been reading your website for some time now and finally got the bravery to
    go ahead and give you a shout out from Austin Texas!
    Just wanted to say keep up the good job!|
    Greetings from Ohio! I'm bored to tears at work so
    I decided to browse your blog on my iphone during lunch break.
    I enjoy the info you provide here and can't wait to take a
    look when I get home. I'm shocked at how quick your
    blog loaded on my phone .. I'm not even using WIFI, just 3G ..

    Anyways, very good site!|
    Its like you learn my mind! You seem to know so much about this,
    such as you wrote the guide in it or something. I feel that you could
    do with some p.c. to power the message home a bit, but other than that, this is excellent blog.
    A fantastic read. I'll certainly be back.|
    I visited multiple sites except the audio feature for audio songs present at this web
    site is actually marvelous.|
    Hi there, i read your blog from time to time and i own a similar one and i was just curious if you get a lot of spam responses?
    If so how do you reduce it, any plugin or anything you can
    suggest? I get so much lately it's driving me crazy so any help is very much appreciated.|
    Greetings! Very helpful advice within this post!
    It is the little changes that produce the most
    important changes. Thanks a lot for sharing!|
    I really love your site.. Pleasant colors & theme.
    Did you make this amazing site yourself? Please reply back as I'm attempting to create my own site and would like to find out
    where you got this from or exactly what the theme is called.
    Thank you!|
    Hi there! This blog post couldn't be written much better!
    Looking at this post reminds me of my previous
    roommate! He continually kept talking about this.
    I will send this information to him. Pretty sure he's going to have a great read.
    Many thanks for sharing!|
    Whoa! This blog looks just like my old one! It's on a totally different topic but it
    has pretty much the same layout and design. Excellent choice of colors!|
    There's certainly a lot to know about this issue. I really like all of the points you made.|
    You made some decent points there. I checked on the net for more info about the
    issue and found most people will go along with your views
    on this site.|
    Hello, I read your blogs like every week. Your humoristic style is awesome, keep up the good work!|
    I just could not depart your site prior to suggesting that I really
    enjoyed the standard info an individual provide to
    your visitors? Is gonna be again ceaselessly to check up on new posts|
    I want to to thank you for this wonderful read!! I absolutely enjoyed every bit of it.
    I've got you bookmarked to look at new stuff you post…|
    Hi, just wanted to say, I loved this post. It was funny.
    Keep on posting!|
    I drop a leave a response whenever I appreciate a article on a site
    or if I have something to contribute to the discussion. It's
    caused by the sincerness displayed in the post I looked
    at. And after this post 大学三年:我的编程感悟 at Mywaiting.
    I was actually moved enough to drop a thought ;-) I actually
    do have 2 questions for you if it's allright.
    Could it be simply me or does it appear like a few of these responses come across like coming from brain dead folks?
    :-P And, if you are posting at additional online sites, I'd like to follow you.
    Could you list the complete urls of all your public sites like your linkedin
    profile, Facebook page or twitter feed?|
    Hi there, I enjoy reading through your post. I like to write a
    little comment to support you.|
    I always spent my half an hour to read this webpage's articles or reviews
    every day along with a mug of coffee.|
    I all the time emailed this webpage post page to
    all my contacts, as if like to read it afterward my links
    will too.|
    My coder is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he's tryiong none the less. I've been using WordPress on several
    websites for about a year and am anxious about switching to another platform.
    I have heard very good things about blogengine.net. Is there a way
    I can transfer all my wordpress posts into it? Any help would be greatly appreciated!|
    Good day! I could have sworn I've visited this blog before but after
    going through a few of the posts I realized it's new to
    me. Anyways, I'm definitely pleased I came across it and
    I'll be book-marking it and checking back regularly!|
    Terrific article! That is the kind of info that are supposed to be
    shared across the internet. Disgrace on Google for not
    positioning this put up higher! Come on over and seek advice from
    my site . Thank you =)|
    Heya i'm for the first time here. I came across
    this board and I find It really useful & it helped me out a lot.
    I hope to give something back and aid others like you helped me.|
    Hi there, I believe your website may be having browser compatibility
    problems. When I look at your website in Safari, it looks fine however, if
    opening in Internet Explorer, it has some overlapping
    issues. I merely wanted to provide you with a quick heads up!
    Besides that, excellent blog!|
    Somebody necessarily assist to make significantly articles I'd state.
    That is the first time I frequented your website page and up
    to now? I amazed with the research you made to make this actual publish amazing.
    Magnificent activity!|
    Heya i am for the first time here. I came across this board and I to find It
    really useful & it helped me out a lot. I'm hoping to give one thing back
    and help others such as you helped me.|
    Hello there! I simply wish to offer you a huge thumbs up for your great information you've got right here on this post.

    I will be returning to your site for more soon.|
    I every time used to read article in news papers but now as
    I am a user of web therefore from now I am using net
    for posts, thanks to web.|
    Your mode of telling the whole thing in this piece of writing is genuinely nice,
    all can simply know it, Thanks a lot.|
    Hi there, I found your blog by the use of Google even as looking for a related subject, your website
    came up, it appears good. I've bookmarked it in my google
    bookmarks.
    Hi there, just become alert to your blog via Google, and
    located that it's really informative. I am gonna be careful for brussels.
    I will be grateful for those who proceed this in future.
    Lots of other people will likely be benefited out of your writing.
    Cheers!|
    I'm curious to find out what blog platform you have been
    working with? I'm having some minor security problems with my latest website and I would like
    to find something more safeguarded. Do you have any recommendations?|
    I am really impressed with your writing skills
    and also with the layout on your blog. Is this a paid theme or
    did you modify it yourself? Either way keep up the nice quality
    writing, it is rare to see a great blog like this one these days.|
    I am really inspired together with your writing skills
    as well as with the structure in your weblog.

    Is this a paid subject or did you modify it yourself?
    Anyway stay up the nice high quality writing, it is rare to look a nice weblog like this one these
    days..|
    Hello, Neat post. There is a problem together with your
    website in internet explorer, would check this?
    IE nonetheless is the marketplace chief and a good portion of other people will leave out your wonderful writing because of this problem.|
    I am not sure where you are getting your information, but good topic.

    I needs to spend some time learning more or understanding more.

    Thanks for great info I was looking for this info for my mission.|
    Hi, i think that i saw you visited my weblog so i came to “return the favor”.I'm
    trying to find things to enhance my web site!I suppose its ok to
    use some of your\

  2. reply to http://fast-instant- http://fast-instant- Says:

    My brother recommended I might like this blog.
    He used to be entirely right. This publish actually made my day.
    You cann't consider just how much time I had spent for this information!
    Thank you!

  3. reply to voyance gratuite voyance gratuite Says:

    Tarot divinatoire gratuit 2010 horoscope verseaux 2012

  4. reply to Small Personal Loan Small Personal Loan Says:

    It's remrkaЬle esigned foг mee to have a web site, which is valuable
    for my experience. thanks admin

  5. reply to smslan-se.com smslan-se.com Says:

    Do you mind if I quote a couple of your posts as long as I
    provide credit and sources back to your webpage? My website is in the very
    same area of interest as yours and my users would certainly benefit from a
    lot of the information you present here. Please let me know if this ok with you.
    Thanks!

Leave a Reply