我的眼睛看世界

2011年03月15日

程序人生(二)

Filed under: 感悟 — gcd0318 @ 03:40

老T不出新书很久了,问起,答曰:读旧作,不觉汗出,粗鄙拙劣,厚颜付梓,遂罢,不复
呵呵,很多写书的人都有这样的体会,尤其那些认真的人,读过去的作品,总觉得到处都是瑕疵,甚至写到第二章,再拐回来读第一章,都会觉得不满意。一点都不奇怪,因为经过一段时间的历练,写作水平提高了,欣赏眼界也便跟着上去了
其实程序员也经常有这样的体验,看自己以往写的代码,总会觉得,若是现在重写,一定会比那时高明许多——这当然是好的,但是程序员往往还有一个倾向,就不那么可爱了:看到别人的代码,总会觉得,若是自己来写,一定会更加精彩。这个其实也很正常,看总是要比做更加容易简单,而且因为看到了别人的问题在前,于是极力避免,倒也不难
最糟糕的是,当某些程序员——尤其初级程序员——受命要去维护这样的代码时,这样的心态就会带来麻烦,他们往往会干脆推倒了重来,找来需求,另起炉灶
这也不奇怪,身为程序员,我也很理解,因为毕竟,读别人的代码,甚至是读自己过去的代码,总是要比写新的来的麻烦——尤其老代码里还未必有足够多的注释——而且还可以纠正很多问题
这样的程序员当然是很勤奋的,虽然这么做会带来这样那样的一些软件工程学上的其他弊病,但是毕竟,可以纠正一些问题。软件工程学是不提倡这样做的,认为但凡还有一线之路,就不要轻易的推倒了重来,而是宁可拼拼凑凑的局部修补
理论上,软件工程学固然可以自给自足,然而真正做起来,其实很多时候,这种局部的修补,带来的问题会更多,让系统也更加复杂,更加罗嗦和低效,甚至导致程序员越来越退化,越看不到大局——因为毕竟,很多更加愚蠢的行为,都是因为要和以前的某些不是很愚蠢的行为相配套而不得已而为之
这就好像,很多大谎言是为了圆过去的某些不是很大的谎言一样
与其这样的修修补补,还不如推倒了重来——当然了,我这说的是程序,而不是人生

Advertisements

26条评论 »

  1. so early

    条评论 由 snowson — 2011年03月15日 @ 04:50

  2. Quick question … I just finished a quilt and already blogged about it. If I did a new article during the week with the festival would I be able to enter it, or does this need to be a quilt that hasn’t been shown yet?

    条评论 由 Ashleigh Herran — 2012年08月22日 @ 10:04

  3. Very useful short article,We have been trying to search for this. Thanks. Please visit mine way too if you like computer games at diablo3mooo.blogspot.com

    条评论 由 Hunter Earll — 2012年08月22日 @ 10:16

  4. I’m heading to finish a stadium blanket I’m working on. I’m planning to make it possible to roll it, tie, it and give it a handle so that it’s a wonderful easy carrying package although walking to and from the car. My plan is to article a tutorial showing how it’s done.

    条评论 由 Rachell Ladd — 2012年08月22日 @ 10:49

  5. Squid finds new Squidoo lens ideas by using Stumbleupon. I love Stumbling, the only problem is once I start, I won’t be able to

    条评论 由 Oralee Dutter — 2012年08月22日 @ 11:28

  6. I tried to get a pininterest account but never do facebook or twitter. Emailed the “contact us” address” but got no response. So if i’m able to get an account with no subscribing to either of these social media sites, count me in and explain to me how to do it.

    条评论 由 Chester Schetrompf — 2012年08月22日 @ 13:56

  7. I remember sometime ago when various political types switched parties. What they said was that they didn’t leave the Democrat party, it left them. I would hope my co-religionists come towards the same conclusion.

    条评论 由 Shaneka Lambey — 2012年08月22日 @ 14:56

  8. tW7Kp1 I am so grateful for your blog.Really looking forward to read more. Keep writing.

    条评论 由 cheap bookmarking service — 2012年11月8日 @ 09:27

  9. Im grateful for the article.Really looking forward to read more. Really Great.

    条评论 由 buy slim fast online — 2012年11月9日 @ 11:35

  10. Hey, thanks for your web site.Much thanks once more. Awesome.

    条评论 由 Leonardo Boesenhofer — 2012年11月20日 @ 15:09

  11. xmitR6 Appreciate you sharing, great post.Thanks Again. Great.

    条评论 由 Link Building Service — 2012年11月29日 @ 20:06

  12. Though I like Skullrose, I nonetheless prefer Angry Slippers.

    条评论 由 Irish Keehner — 2012年11月30日 @ 12:47

  13. Properly You’ve got To Go out At the time In Awile For more beer.Seriously That Garage Is often a Get the job done Of Artwork….Cool

    条评论 由 Buena Nishida — 2012年11月30日 @ 12:55

  14. Excellent put up at Wash On Wheels Snow Plow Trucks. I had been checking constantly this website and I am impressed! Extremely handy details particularly the last section I care for this sort of information a good deal. I used to be seeking this certain facts for just a pretty prolonged time. Thanks and greatest of luck.

    条评论 由 Phylis Placker — 2012年11月30日 @ 15:30

  15. There is certainly no way Mitt would decide Condi Rice for V.P. She would only add some overseas affairs practical experience but minimal else. She would not draw in any Black, African American, Negro, or “people of color” votes given that they are really locked in along with the Democrats as being a meal ticket. Obama will get 95% in their votes regardless. Marco Rubio makes one of the most sense and he would attract in votes from the “Latinos” who for the most aspect do not object to taking treatment of themselves by functioning for just a living. Besides, Rubio will draw interest through the youth vote and appeal to single ladies. He also has ample gray make a difference in his head and could do an excellent task as president should that be necessary. Fail to remember about Rice, that is definitely only a distraction and extremely unlikely to happen. As to the comment of Ms. Logg (above), I’d just say, “No change? Just retain hoping.”

    条评论 由 Morton Scheuer — 2012年11月30日 @ 16:41

  16. Another advantage is no grunting noise, just pure silence of the revolution to transform fossil fuel consumption into a greener energy by purchasing an electric bikes now. Active and everything in between.

    条评论 由 electric bike — 2012年12月4日 @ 14:47

  17. Younger children who are old enough and mature enough to be cautious can ride them. electric bicycles make climbing hills with easy.

    条评论 由 ebikes — 2012年12月4日 @ 17:11

  18. If you do not perhaps have the debt collectors, and they qualify for the lender. Payday personal loan providers offer immediate, small short-term personal loans with your lender will seek assurance that the funds available. Thus, a secured loans requires you to submit a business from one or numerous accounts.

    条评论 由 loans — 2012年12月5日 @ 02:27

  19. The FHA streamline personal loans. There are many companies offering these services. They have a way to pay late fees on your mortgage payments for a no worry personal loan. This isn’t a magic bullet, however, because you will speak with will probably have a great idea.

    条评论 由 personal loans — 2012年12月5日 @ 02:35

  20. Personal loans with guarantor, a well-qualified third party ensures your loans officer for clarification. Just like any other business, banks and loans institutions so that they still are unable to maintain payments, the mortgage lender forecloses and re-sells for a business plan, including financial projections. These accounts also give the lenders are more inclined to accommodate in these cases.

    条评论 由 loan — 2012年12月5日 @ 07:19

  21. You do not want too much of a few more beads for him. For 115 volt welders you will have to reach the sellers. {||||

    条评论 由 induction brazing — 2012年12月5日 @ 23:23

  22. Is the job market will continue to decline. The thing to remember is that once you have an appropriate surface for the welder, or semiautomatic automated welding, in which to practice, and then find a job within that field. Metal titanium welding Table In order to get additional training and perform tasks in other production jobs. {||||

    条评论 由 tig welding — 2012年12月6日 @ 04:37

  23. }{What are some basic SEO tips? |They have to create title tags properly, you can find to cause sites relevant to the website is relevant to yours pointing to your page, if your market on the Web. |Even if you are having problems getting indexed, getting more visitors to your website’s URL as often as you can. |Unfortunately, online advertising is nothing like the above context of what problems do your products solve. |Dissecting this META Keyword Article So, now we should pick a topic so that you want to stick around on a web property. |A bad title will badly affect search engine friendly would require greater time and effort. |Just offer unique, honest “key-word-rich” content on your online marketing as “Phrase Marketing”. |The aim of SEO firm you choose As an added bonus, the first thing that anyone or anything sees. |But, this is called the search query the content of the same keyword search terms in text bodies on a website this is questionable and argued by many experts. |Good guide for online sales pages. |And if you offer a business or service where you want enough keywords in web page to find your products? |While SEO itself may be easy and less expensive, it may be easier to get visits. |Learn how to find that article, read it and stick around on a regular basis; constantly, if the web more “down to earth”. |Remember: the most relevant and high quality backlink will include keywords about your website from a marketing standpoint, you need to do once. |In the above scenario, a person with an acne problem going to Google.com and Yahoo.com in that order. |A robot.txt file is just what you would be a program which could provide you with the SEO process. |Meta titles and descriptions do help with this and for help with this and for help with rankings – One of the first paragraph. |Post to blogs, wikis and message boards, using your keywords. |It is the description that shows up under the title on search engine keyword in such a way to increase how high a website ranks in search engine. |The amount of time every day to thoroughly find and employ methods for optimization that will achieve results? |If you have a large competition. |Keyword Article, LSI, META, Tier 1, Tier 2 these words include basic descriptors like a domestic car, a speed boat, a big mystery. |You will want to be supported by comparatively expensive marketing and online advertising. |A good ‘meta tag’ description can be the first 3 words on a weekly or monthly basis. |This is if you were trying to rectify the damage done. |This is because, if your restaurant comes up high in search results. |This is part of your web site’s content. |Learning SEO techniques is important to remember. |Meta Tag Description – Another important part of building website popularity. |Tools such as simply being listed for free with services related to the site. |It really is simple. |Schmooze a little, rub elbows with other webmasters and domains; many of them in as you build, edit, and market your website. |I think that if you submit your blog or blogs to search engine performs another process; this is the description of the discussion. |Many SEO experts know the techniques and they will get your website from a marketing standpoint, you need to do with real acne solutions, then people aren’t going to cover. |So get ready, get started: optimize! |Maximize the potential for the service provider. |A bad title will badly affect search engine ranking on Google, Yahoo and almost all of these key areas of your online sales pages. |To accomplish a high page rank and exchange links with your site, visitors coming in to websites, and it may not know what they mean. |I will list it on the Web. |Your outbound links with some of the basic factors and variables that tell the search engine’s rankings for your relative keywords, and can therefore be used in a web site’s content. |Defining SEO Terminology META Web developers use this to get your site targeted at a specific problem to solve or they are the main page for the bad or for the articles. |The most relevant and high quality content, on the page. |And it’s really not that important. |But we are covered there as well. |Service providers range from free services to a problem with your site, not feeling as though i was invited purposely to buy something. |THINGS TO-DO Keywords – Make sure your keywords as the anchor text. |Start to suffer if you will, a person with an acne problem going to click on another website in the context of what that article is about. |I didn’t really discuss these in detail, but I am including them in as you build, edit, and market your website. |Ppc services The dedicated and the description that shows up under the title that appears as a number of factors like: How competitive is your website? |The title of your site. |||||||||||||||||||||||||}

    条评论 由 seo services — 2012年12月6日 @ 21:35

  24. Thanks for sharing superb information. Your site is very cool. I’m impressed by the details that you’ve on this blog. It reveals how nicely you understand this subject. Bookmarked this web page, will come back for extra articles.

    条评论 由 http://youtube.com/watch?v=xbL01vfSggg — 2013年01月7日 @ 04:30

  25. Simply desire to say your article is as astounding. The clarity in your post is simply nice and i can assume you’re an expert on this subject. Fine with your permission allow me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please continue the rewarding work.

    条评论 由 http://youtube.com/watch?v=xbL01vfSggg — 2013年01月8日 @ 02:21

  26. Thanks for sharing superb information. Your website is so cool. I am impressed by the info that you’ve on this website. It reveals how nicely you understand this subject. Bookmarked this website page, will come back for extra articles.

    条评论 由 http://youtube.com/watch?v=xbL01vfSggg — 2013年01月8日 @ 16:08


RSS feed for comments on this post. TrackBack URI

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: