`
ericwzc
  • 浏览: 12046 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Your Code Sucks

阅读更多

       A very good friend of mine is in the midst of an avalanche of work. He has a lot of open contracts, and has been abandoned by a fellow developer that was helping him with his workload. So, with three huge clients breathing down his neck he has been working non stop for weeks now. 

       One client contacted him about the iPad application he is building for them, he let him know "I paid another developer to look at your code, he says it really sucks." 

   When he told me this story, I had to chuckle a bit, and think of all the times I had decided that other people's code sucked. When I first started out, and I looked at code that definitely sucked hard, I scrapped it, and started from scratch in a way I knew was way better. As I matured I looked back and realized that what I had destroyed was a well accepted design pattern, and what I created was a mess of a mess pattern.

Lesson learned. 

      After some growth I encountered code that I thought sucked ever so often. At this point I wasn't decimating things all together, I would find specific parts of code that I found intolorable and rewrite it. About 9 times out of 10, when I got more than halfway there I'd run into an issue that made me say "Ooooh, that's why they did it that way" and revert it or use the same "sucky" logic with my syntax. 

     Now that I am a little more seasoned, I can tell you with all confidence that I never look at a solution that someone else created and say "Oh, this code sucks." I know that there really is no quick way to tell if code is good or bad without understanding the entire solution. Sure, sometimes things can look sloppy, or poorly done, or undocumented (in my case, not self documenting), however, you never know what was going through the head of the developer that wrote it. More often than not there is a reason why they have done things this way, and there is no hard and fast way to tell what the context is without being elbow deep in it. 

    So, when I hear that someone has looked at someone else's code base and determined that it sucked I smile and remember what it was like to be so new and sure of myself. So sure that I was an amazing developer, and that I knew what was best in every problematic situation. I miss that swagger, but I appreciate what I have learned, and that is the only person's code that sucks is my own, and the reason why it sucks is I just haven't learned how to make it better yet.

分享到:
评论

相关推荐

    itsucks-0.4.1开源爬虫

    开源爬虫itsucks,最新版本,可以使用,简单的图形化界面,容易上手

    itsucks开源代码

    爬虫源码,开源 java 很好 强大 可扩展

    itsucks-0.4.1.zip

    itSucks是一个java web spider(web机器人,爬虫)开源项目。支持通过下载模板和正则表达式来定义下载规则。提供一个swing GUI操作界面。

    大师品软件_Why Software Sucks

    找到这也知道是书讲什么了,呵呵~~ 与该书Djvu格式相比改进了: 1、添加中文书签,书签翻译来源“csdn图书品读”提供的目录 2、导出pdf时压缩了图片,文件较小

    Why.Software.Sucks

    Any book is the product of a team effort. In this one, I've had an out- standing supporting cast. Everyone at Addison-Wesley understood and got behind the concept of a book for the users of ...

    why-your-test-suite-sucks

    这是关于测试的话题 在卡座中启动presentation.markdown以查看

    your-band-sucks-v2:通过不良专辑封面分享音乐

    你的乐队吸v2 通过不良专辑封面共享音乐

    信息安全_数据安全_Why_the_role_of_CISO_sucks_and_w.pdf

    信息安全_数据安全_Why_the_role_of_CISO_sucks_and_w 信息安全研究 金融安全 安全人才 安全对抗 法律法规

    itsucks:http

    ItSucks 网络爬虫 描述 这个项目是一个具有下载(和恢复)文件能力的java网络蜘蛛(网络爬虫)。 它还可以使用正则表达式和下载模板进行高度定制。 所有后端功能也可在单独的库中使用。 官网 执照 本地开发使用 将 ...

    IE Sucks-crx插件

    IE SUCKS这么糟糕,实际上是有趣的观看失败! IE样式信息条在页面中的障碍码时发光。 无广告! Internet Explorer是一个浏览器的F ****笑话,并字面上持有进步! 在逐步淘汰之前庆祝最终几天,用IE吸收插件。 每当...

    your-band-sucks:别无所求-这是可怕的专辑封面的权威收藏! 注册,登录并添加您自己的!

    你的乐队很烂 描述 别无所求-这是可怕的专辑封面的权威收藏!... 入门 ... 登录或者创建一个帐户。 转到您的个人资料以添加,编辑和删除照片。... 单击主页链接以浏览我们所有不良专辑的封面。...使用React.js,React ...

    kevingreen.sucks

    用于运行kevingreen.sucks网站的Simple Next App

    IE吸盘「IE Sucks」-crx插件

    使用IE Sucks插件庆祝淘汰前的最后几天。 每当遇到旨在帮助Internet Explorer像老人一样上楼的代码时,我们都会像过去一样发出经典的IE信息栏。 您知道,这意味着您只有更多无用的废话可以破坏您的浏览器,除非这次...

    Atc Sucks-crx插件

    讨厌ATC 大家可能都知道atc很烂,因此我做了扩展说明atc很烂。 支持语言:English (United States)

    DuPont Sucks FTP-开源

    DPS-FTP是一个FTP客户端,其功能包括站点管理器,允许从多个站点上的多个目录中的多个文件上载和下载的队列,以及自动恢复部分传输的文件的功能。

    Vegandale Sucks-crx插件

    此扩展名用实际的含义代替了对讨厌的“ Vegandale”的任何提及:Gentrified Parkdale。 支持语言:English (United States)

    Moments Sucks-crx插件

    如果您确实讨厌Twitter内的Moments标签,并且在尝试查看通知时始终单击此处,则只需安装此… 如果您确实讨厌Twitter内的Moments选项卡,并且在尝试查看通知时始终单击此处,则只需安装此轻量级扩展程序即可将其发送...

    Smooth Scroll Sucks-crx插件

    语言:English 将滚动条从坚持持有IT hostage 平滑滚动扫描。 救援滚动条和鼠标。 鼠标滚动来自Hoang Loioun.com

Global site tag (gtag.js) - Google Analytics