Git Product home page Git Product logo

forbytes-test-task's Introduction

Instructions

EmailSenderProgram is an application that sends mail to customers. Today it sends two types of mails; "Welcome Mail" to new customers and "Comeback mail" to inactive customers. The application run every day at 12.00 as a scheduled task. When the application is done, it writes the results. new customers - it's customers registered earlier than 1 day. inactive customers - customers that don't have any orders.

We want to have possibilities to add more email-types or change output.

Task

The code is not good in any way.
It contains obvious bugs, some wrong assumptions and is quite ugly. Your task is to do the code in the script.php better so it will be easy to add more email-types, output management or other improvements. We want code that is easy to read, easy to understand and is robust. It should be easy to modify and continue to build on. Modify the code in script.php or create other files which will do all functionality. Write down what you are thinking about the code, which defects you have identified and how you work with the code. Don't modify Datalayer, even if it's not perfect it's not in this task.

forbytes-test-task's People

Contributors

kield-01 avatar

Watchers

James Cloos 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.