Git Product home page Git Product logo

ds-recruit's Introduction

Hello future teammate!

我们用两种常见的编程语言(PHP,Python)准备了一个小测试, 你可以挑选其中一种或者其他你更自信的编程语言来完成这个测试。

动手

  1. 希望你实现一个类(MyGreeter),满足以下条件:
  • 能够实例化。
  • 实现一个方法(让我们叫他greeting),能够根据不同的运行时间返回不同的消息字符串。
    • 当运行时间在6AM至12AM之间时,返回 "Good morning"。
    • 当运行时间在12AM至6PM之间时,返回 "Good afternoon"。
    • 当运行时间在6PM至第二天6AM之间时,返回 "Good evening"。
  • 在适当的位置编写简明扼要的注释以提高你编写的代码的可读性。
  1. 希望你实现的这个类能通过我们预先准备的单元测试类(MyGreeterTest)
    • 我们准备了一个容器运行环境来供你运行单元测试,你需要根据实际情况对它进行改进,至少满足以下条件:
      • make dev-tests 这个命令可以在你的环境里运行。
      • 运行结果显示,所有的测试项目都正常通过。
    • 请用注释或者别的方式说明你的每个改进点的意图。
    • 如果你认为这个容器环境不存在值得改进的地方,也请提供用来支撑你这个看法的理由。

思考

当你完成上述动手项目后,请进一步思考并回答以下2个问题。

  1. 我们准备的单元测试类(MyGreeterTest)是否存在问题?(是或者否)
  2. 如果问题1你的答案"是"的话,请问有哪些问题?以及你认为针对每个问题应该如何改善?

结尾

当你全部完成后,请将"动手"和"思考"的结果打包提交给HR。 注意:请不要在这个代码仓库里直接提交PR!

ds-recruit's People

Contributors

xiaoyichai avatar

Stargazers

Shiroh avatar  avatar

Watchers

tadahiro.wada avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.