`
fujohnwang
  • 浏览: 156289 次
社区版块
存档分类
最新评论

Programming with a thought considerate of others

阅读更多

1- add necessary comment into the javadoc of your classes/components as much as possible.
    Usually, you are not the only user of the classes or components you defined before,
    in order to ease other people to better or fully understand your thinking at the time you define your classes or components, adding some sample code or remark words into javadoc will be more helpful to others, even to yourself.

 

    You may wonder why I would like to mention this point, here are some reasons for this:

 

  • After on board CSTS, I have to dig into others' code to find out what this piece of work is for, so that I can do something, such as refactoring or develop new features on the fundation of those code. It takes time and sucks to try to understand those code pieces, no matter the code piece is good one or bad one, if the original author add some comment for his/her masterpiece, that will save me a lot.

        Another story is , Since the original system is still using older version of some framework(can't upgrade for a reason of stability), in order to support some functionality, I have to implement some support components/classes for this, but after that, I found others were using it in a way of going against my orginal philosophy, and almost mess up my design and structure. So I have to add more comment into the javadoc to notify others how this comoponent is supposed to be used.

 

        So, u see, it's a bilateral relationship, both for the orginal code author or the code user.

 

  •  There are two camps in the world of software solutions, the open source ones and the commercial ones. I remembered some words Dino said before, he said, "the most pain or pitfall of open source software is, they are seldom good-documented". To some extent, I have to agree. It's true that the commercial software solutions always provide well-prepared document and materials,  although some open souce solutions do so, e.g. the spring framework, jboss solutions, most of the open source software do not provide proper document , even necessary document.
           Bad-documented open source software solutions take more time for users to get close to them, seldom to become popular. So add more document to your software solutions as much as possible.
           Even down to the fundamental parts of the software, I mean, source code, we should add necessary comment to it. You and others will benefit from what you do one day.

2- If you TDD first, Code second, then please document everything last as more details as possible.

 

    Although you and others can find more information about your code later, but only unit tests are not enough, even though, you can't make sure whether you have created any unit tests. 

    So please go ahead to write document for your design and implementations, Agile doesn't mean no document, after you have finished your document, add links to your code.  In this way, others or yourself later can find out what's going on with your design and implementations soon.

    Everyone can benefit a lot from what you do.

 

Stay tuned!

分享到:
评论

相关推荐

    雅思口语素材

    She is appealing to me, tall and slim, 1.73 meters tall, wearing long flowing and silky hair with a side part and a wispy of fringe. She was born with a pair of big and bright eyes. Being amicable ...

    数据结构作业Hash表

    Note to define the strategy of conflict and considerate the size of the hash set.  Remove function: This function removes the key specified as the parameter from the hash set. Tips: refer to your ...

    教师自我介绍英语范文精选.doc

    I am known for being sincere, considerate, and empathetic towards others, while also boasting strong language abilities and communication skills. I am diligent, persistent, and resolute, taking my ...

    hash table spell checking

    Note to define the strategy of conflict and considerate the size of the hash set.  Remove function: This function removes the key specified as the parameter from the hash set. Tips: refer to your ...

    【南方新课堂 备战2014】高考英语一轮复习 Unit 1 Women of achievement早读与晚练 新人教版必修4

    I made an observation of him entering the bank with a gun. 8. We argued with her about the decision. Phrase Practice: 1. They left off early in the morning to catch the first train. 2. She lives...

    大学英语六级翻译句型积累第4篇.docx

    - "It is considerate of you to have arranged a room equipped with an air-conditioner for my grandmother." "equipped with"作为过去分词短语作后置定语,修饰"room",体现了动作已完成且与被修饰词的关系为...

    河南专升本英语温习资料.pdf

    - considerate of:体谅…… - jealous of:嫉妒…… - aware of:意识到…… - certain of:确信…… - afraid of:害怕…… - short of:缺乏…… - independent of:不受……支配 - regardless of:不顾...

    高中英语人教新课标必修四Unit一轮复习PPT课件.pptx

    例如,她对父母体贴入微:"She was considerate towards her parents." 你考虑周到:"It is considerate of you to bring me an umbrella." 以上是高中英语人教新课标必修四Unit一轮复习PPT课件中涉及的五个主要...

    河南省许昌市许昌县第三高级中学2019_2020学年高一英语月考试题

    "It was considerate of Michael…" "considerate"意为"体贴的,考虑周到的",此处用来形容Michael考虑到我们可能会担心而告知我们他的延迟到达,表现出他的体贴。 8. 数词表达:第八题考察分数的表达。"About ...

    高考英语写作技巧方法PPT课件.pptx

    考生需要学会用简洁明了的句子表达复杂的意思,如“However, the food provided in the restaurant didn’t agree with many of us and quite a few of us had to buy extra food.”,这样既表达了不满,又表明了...

    2011年4月高等教育自学考试英语全国统一命题试题及答案加翻译.pdf

    1. 词汇理解与应用:题目中的词汇和结构部分主要考察了考生对英语词汇的掌握和使用,例如“providing”(假如)、“hold back”(抑制)、“communicate...with/to”(与...沟通)、“eliminate”(消除)、...

    面试时英文自我介绍范本精选.doc

    比如,提到英语能力:"I have a good command of both spoken and written English and past CET-4 with ease.",以及计算机技能:"I have mastered a great deal of computer operation skills, skilled in use of ...

    ImpREC 1.7c

    - user32.dll is always read from the system, prevents a crash from corrupted PE of user32.dll (MaRKuS_TH-DJM) - Latest version of psapi.dll (6.0.6000.16386) included - Fixed Vista64 crash bug ...

    电力英语考试选择题讲解

    5. "It is considerate of you to turn down the radio while your sister is still ill in bed." "considerate" 表示关心他人。在团队合作的电力工作中,展现出这种关心和体贴可以提升团队协作和工作效率。 6. "It...

    2021版高考英语一轮复习Unit1Womenofachievement单元知识检测新人教版必修4

    - considerate:形容词,意为"考虑周到的",用于形容人对他人关心体贴的行为,如"It is considerate of you to bring me an umbrella."。 - worthwhile:形容词,表示"值得的",常与不定式搭配,如"It is ...

    六级英语写作的七项原则

    Instead of saying "He is a nice person," you could write "He is a considerate and friendly individual." ``` 5. **多实少虚原则**:使用具体、形象的词语来描绘事物,避免空洞的形容词。这能增强描述的力度...

    2014高考英语 话题作文写作指导+佳作欣赏(2).doc

    例如,"take good care of" 表示关心爱护,"be strict with/in" 意味着严格,"considerate" 描述的是体贴入微,"spoil" 表示溺爱,"easy-going" 用于形容宽容的人,"show respect to" 是表达尊敬,"live in a ...

    2020-2021学年湖南省衡阳市蒸市中学高二英语期末试卷含解析.pdf

    And playing computer games will always make them feel ________.",这里涉及到了副词的用法,通过比较选项A EASILY EASILY、B WITH EASE AT EASE、C EASY EASY WITH EASE,我们可以得知正确的形式应该是B,意为...

    形容词及副词高考专题练习.doc

    5. **【2021·】** *Chinese scientists 42(recent) had a chance to study a wild female panda with a newborn baby. She was a very 43(care) mother.* **解析:** 此题考查副词和形容词的变化。“recently”...

    (湖北专用)2015届高考英语二轮复习 专题限时检测(五)非谓语动词

    8. "It is, to tell you the truth, very considerate of you to keep us informed of what is going on there every day." "to keep informed"是不定式短语,作真正主语,"it"是形式主语。 9. "Study hard and get...

Global site tag (gtag.js) - Google Analytics