GithubHelp home page GithubHelp logo

vrhometask's Introduction

Alongside this challenge, you will also find a sample data file, which is a fixed-length text file.

This is a sample of an ASN (Acknowledgement Shipping Notification) message that we receive from one of our suppliers. Each HDR section, represents a box, and the lines below the HDR section describe the contents of the box. When we reach another HDR section, it means that there is another box and we repeat the process from the beginning.

Data file structure

HDR  TRSP117                                           6874454I                           
LINE P000001661         9781465121550         12     
LINE P000001661         9925151267712         2      
LINE P000001661         9651216865465         1      

Description

HDR             - Just a keyword telling that a new box is being described.
TRSP117         - Supplier identifier.
6874454I        - Carton box identifier. Displayed on the box.
LINE            - Keyword to identify product item in the box.
P000001661      - Our PO Number that we sent to the supplier.
9781465121550   - ISBN 13 (product barcode).
12              - Product quantity.

The solution should monitor a specific file path, and whenever a file is dropped in that folder, the file should be parsed and loaded into a database. The file could be very large and exceed the available RAM.

IMPORTANT: Your submission will be verified for correctness, and also used to evaluate your approach, attention to detail, and craftmanship. This is your opportunity to give us an idea of what we can expect from you on a day-to-day basis. Try to write the code as you would any ticket assigned to you. We understand this is an effort you do in your free time, and we do not expect a fully polished production ready product. It's perfectly fine to take shortcuts and omit code in case of time contraints. Just drop a comment where you would have implemented code, and explain what approach you would take and what the code would have done.

The following code class is merely an example to demonstrate the structure. You should modify it as needed to achieve your goal.
If you have any question about the task, please feel free to ask.
public class Box
{
    public string SupplierIdentifier { get; set; }
    public string Identifier { get; set; }

    public IReadOnlyCollection<Content> Contents { get; set; } 

    public class Content
    {
        public string PoNumber { get; set; }
        public string Isbn { get; set; }
        public int Quantity { get; set; }
    }
}

We look forward to seeing your solution!

vrhometask's People

Watchers

Mr.Alnis 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.