`
ziwuzu
  • 浏览: 52385 次
  • 性别: Icon_minigender_1
  • 来自: 长春
社区版块
存档分类
最新评论

Tell,Don't ask

阅读更多

在最小知识原则里,看到了Tell,Don't Ask,查了些资料

这里我说了算!

讲述了setter和getter的危害,及tell ,Don't Ask原则被违反的后果

命令,不要去询问(Tell, Don’t Ask)

这是“这里我说了算”的译者的文章,有空再看看

Tell, Don't Ask

这是csdn上的文章,有空再确认下

分享到:
评论

相关推荐

    人教版七年级下册英语之祈使句巩固练习.pdf

    2. Ask him 变为 "Don't ask him." 3. Please wait for her 变为 "Please don't wait for her." 4. Read the book carefully 变为 "Don't read the book carelessly." 5. Sit under the tree, please 变为 "Don't ...

    告诉不要问

    在IT行业中,"Tell Don't Ask"原则是一个重要的设计哲学,尤其在面向对象编程中被广泛推崇。这个原则源于Smalltalk社区,由Martin Fowler在其著作《重构:改善既有代码的设计》中进行了阐述。"Tell Don't Ask"的核心...

    直接英语优质PPT课件.pptx

    祈使句通常用来表达命令、请求、劝告、警告或禁止等,其基本结构是动词原形加上其他成分,或者以"Please"或"Don't/Never"开头。 1. **祈使句的基本形式**: - 简单祈使句:如 "Go and wash your hands." 这种结构...

    中考英语句型翻译练习总汇.pdf

    - Don't ask me to help you. You must rely on yourself. (不要让我帮你!你必须要靠自己。) 6. **Tell sb. to do/ tell sb. not to do**:这两个结构表示“告诉某人做/不要做某事”。 - Let me tell you how ...

    中考英语句型翻译练习总汇.doc

    - Don’t ask me to help you; you must rely on yourself. (不要让我帮你的忙!你必须要自己解决问题。) - My mother asks us not to eat anything before we go to bed. (妈妈让我们睡觉前不吃东西。) 6. tell ...

    初三英语中考专项复习宾语从句PPT学习教案.pptx

    - 祈使句引导的宾语从句,肯定形式为"ask/tell… +sb. +to +v.",否定形式为"ask/tell/…+sb.+ not to + v.",如"Could you tell me how often you go to the library?" 或者 "Ask him not to forget the meeting....

    中考英语句型翻译练习总汇..doc

    - Don’t **ask me to help you**; you must **help yourself**. (不要让我帮你的忙!你必须要自己解决问题。) - My mother **asked us not to eat anything** before we go to bed. (妈妈让我们睡觉前不吃东西。)...

    English around the world-Grammar学案.doc

    7. 建议或禁止类,直接引语中的"Don't"在间接引语中保持不变,即`said, "Don't smoke any more."` 8. 请求类,祈使句变为let sb. do结构,时间状语today不变,即`Let me go home earlier today.` 9. 请求类,ask ...

    2021-2022年收藏的精品资料中考英语50个重点句型.doc

    for sth.** - 请求或要求得到某物,如"Don’t always ask your parents for money."告诫不要总是向父母要钱。 5. **ask/tell sb. how to do sth.** - 教导别人如何做某事,如"I asked /told the man how to get to...

    成才之路201520人教版高一英语必修1 Unit 2作业题及答2精选.doc

    例如,第1题"“Don't play games in the classroom, ” the monitor said to us." 转换成 "The monitor told us not to play games in the classroom." 这里时态由一般现在时变为一般过去时,祈使句"Don't" 变成了 ...

    2021最新电大网上形考管理英语考试题及答案.docx

    - 鼓励多提问:"Don't be afraid to ask a lot of questions." - 对他人的到来表示欢迎:"I hope you'll be happy working here." 6. **词汇词性与搭配**: - "Isn't it impolite to call people by their first...

    八年级英语上册Unit6Lessons34_36语法练习园新版冀教版

    4. "I don’t know how told you the news." 应改为"I don’t know how to tell you the news." know后面跟不定式表示知道如何做某事。 5. "Would you like us seeing Beijing Opera?" 应改为"Would you like us to...

    初中真题+考点2015年中考英语单项选择题汇编.doc

    在英语句子中,主句通常会包含一个谓语动词,如"tell"、"ask"、"know"等,此时如果动词后面跟的句子是作为这个动词的宾语,并且这个句子是一个完整的陈述句,那么这个句子就被称为宾语从句。 1. **语序**:在宾语...

    asktheway英语问路PPT教学课件.pptx

    - Sorry, I don’t know. I’m new here, too. (对不起,我不知道。我也是刚到这儿的。) - I'm sorry, I'm not sure. You'd better ask the policeman over there. (对不起,我不能确定,你最好问那边的警察。...

    高中英语 知识点大全51 动词不定式的省略

    当动词如allow, ask, tell等后面跟不定式作宾语补足语时,"to"也可以省略。例如: - "Don't touch the light unless your mother allows you to" 可以简化为 "Don't touch the light unless your mother allows ...

    limits_of_tda

    因此,我们决定采用一种新的编程范式并探索 tell don't ask 的局限性。告诉不要问 - 一个相当极端的定义如果没有信息从被调用者返回给调用者,则给定的函数调用是 TDA。 这大致意味着: 没有返回类型不传递具有任何...

Global site tag (gtag.js) - Google Analytics