Code Monkey home page Code Monkey logo

database_tech_test's Introduction

Tech Test

·▄▄▄▄ ▄▄▄· ▄▄▄▄▄ ▄▄▄· ▄▄▄▄· ▄▄▄· .▄▄ · ▄▄▄ . .▄▄ · ▄▄▄ .▄▄▄ ▌ ▐·▄▄▄ .▄▄▄
██▪ ██ ▐█ ▀█ •██ ▐█ ▀█ ▐█ ▀█▪▐█ ▀█ ▐█ ▀. ▀▄.▀· ▐█ ▀. ▀▄.▀·▀▄ █·▪█·█▌▀▄.▀·▀▄ █· ▐█· ▐█▌▄█▀▀█ ▐█.▪▄█▀▀█ ▐█▀▀█▄▄█▀▀█ ▄▀▀▀█▄▐▀▀▪▄ ▄▀▀▀█▄▐▀▀▪▄▐▀▀▄ ▐█▐█•▐▀▀▪▄▐▀▀▄ ██. ██ ▐█ ▪▐▌ ▐█▌·▐█ ▪▐▌██▄▪▐█▐█ ▪▐▌▐█▄▪▐█▐█▄▄▌ ▐█▄▪▐█▐█▄▄▌▐█•█▌ ███ ▐█▄▄▌▐█•█▌ ▀▀▀▀▀• ▀ ▀ ▀▀▀ ▀ ▀ ·▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀ ▀▀▀▀ ▀▀▀ .▀ ▀. ▀ ▀▀▀ .▀ ▀

Introduction

Domain Model

Domain Model

Project Approach

Learning from the Bank Tech Test, I took time to carefully domain model this project first. As well as the possible classes and methods, categorised using the MVC approach, I modelled the architecture and two possible view flows as well. My initial thoughts are that building the first app which just pushes to memory should not be difficult as it should not be drastically different from the Thermostat app I made or Mary's Count app. However, I will need to consider carefully how I code in such a way as to allow for easy modification onto a real database store in future.

My tech stack of choice will be JavaScript based for this tech test, so I decided to go back and look at my past repos for Thermostat and MakersBnB. Doing this, I realised that my domain model was wrong, so I went back and refined the domain model. That likely saved me from a lot of unproductive coding time.

My process for then generating code is:

  1. Set up initial project structure (base files, folder structure, node packages, test frameworks, etc.)
  2. Create a basic non-functioning user interface to get a feeling for how the logic / model will need to operate.
  3. Write first test (Red)
  4. Pass first test (Green)
  5. Improve code (Refactor)
  6. Repeat 3-6

Logic

database_tech_test's People

Contributors

julesnuggy 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.