Coder Social home page Coder Social logo

mysidewalk-fullstack-interview's Introduction

mySidewalk Fullstack Engineer Interview

Running this Project

Make sure you have the latest version of docker installed.

Run docker-compose up at the root of the project.

Configuration

configuration.yml - here you can set the input and output file paths as well as the batch size and database path.

Problem

See prompt.md

Solution

This script reads the input of a file in batches set within config.yml. It then inserts those lines into a SQLite database. Once all the lines have been added, it queries the database using a custom order by clause and paging with the page size set to the configured batch size. Those queried results are written to the output file.

Testing

python3 -m unittest test/test_main.py

Considerations

  1. How big of a file are we expecting to read? 1MB? 1GB? 1TB? 1PB??? I'll need to create a solution that doesn't load the entire file into memory.
  2. Should we clean the data before we sort it? Based on the given example-list.txt, I'll assume in this case it's a light cleaning task.
  3. Is it more important to create a simple, fast solution or one that is fast and allows for long-term storage and queries in the future? I'll assume the latter.

Disclosure

To reflect current real-world conditions, GitHub Copilot was utilized for assistance in developing this project. However, its usage was limited. I refrained from using it to solve the problem entirely. It served as a reference for Python conventions, syntax, troubleshooting, and test generation.

mysidewalk-fullstack-interview's People

Watchers

Darec Stowell 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.