Coder Social home page Coder Social logo

recruitment's Introduction

Hi, future teammate!

Today, we would like you to take a brief coding skill-check test. Please read following questions, and code a program that satisfies requirements.

We have prepared very basic implementations in JavaScript, PHP, and Perl, so you may pick from one of them, or you may also prepare equivalent environment in your favorite language if you like.

It won't take more than 1 hour to complete the test.

Summary

In all languages, what we want you to do is to implement a class called:

  • "MyGreeter.Client" in JavaScript
  • "MyGreeter\Client" in PHP
  • "MyGreeter::Client" in Perl 5 or 6
  • "MyGreeter.Client" in Python

This class is expected to be able to:

  • be instantiated
  • return one of following greeting message:
    1. "Good morning" if it is after 12am and just before 12pm
    2. "Good afternoon" if it is after 12pm and just before 6pm
    3. "Good evening" if it is after 6pm and just before 12am

A test file in each language implementation will test that:

  • if instance is created
  • if greeting message is as expected

It will be a very good idea to manage and submit your code in Git repository.

Note for infrastructrue engineer position, shell scripting is also acceptable.

Question 1: Implement a class that satisfies the test

Please implement your class that satisfies the test.

You may:

  • create a new class (a file) for the implementation
  • modify existing tests if necessary
  • add more tools/libraries/modules if necessary

One thing you must satisfy is to make sure all tests are passing.

You don't need to work on all programming languages. You just need to pick one of favorites.

Question 2: Improve a class for better testing

After finishing question 1, please, if the class you have implemented is in production code, prepare your opinions in:

  • what is missing in the test, in other words, what should be covered in the test
  • how your class and tests can be improved

Then, improve both your class and tests as necessary.

Again, you must satisfy that all tests are passing.

After completion

Please submit your code to HR personnel.

Thank you!

recruitment's People

Contributors

xjj avatar

Watchers

 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.