GithubHelp home page GithubHelp logo

kata-rs's Introduction

kata-rs

This kata is implemented in rust lang. It should be cross-platform compatible. (Mac/Windows/Unix) Note I have only tested this on Mac OS as I dont have access to a Windows machine at the moment.

I implemented a binary application that utilized a local library. This local library had its business logic separated out into models and services. The associated tests were then captured within that respective file. The architecture was presented in the rust programming book (https://doc.rust-lang.org/book/#the-rust-programming-language). I didn’t take the time to really test the filesystem aspect of this kata. I could code to an interface and have a mock object in order to test some behaviors in this application that aren’t currently tested. However, this being a coding kata, I figured I have demonstrated enough within this project to show knowledge of Rust and programming in general. This project is a single threaded application.

I tested this application with an input text file that had 10k lines, the program seemed just as fast as an input file with 6 lines and would need profiling tools to measure the millisecond difference. Obviously, there are some edge cases one could run into that haven’t been handled. However, most of the main ones have been handled.

Setup Instructions

Make sure rust is installed on the host OS (https://www.rust-lang.org/tools/install)

Run

Within a terminal/command. Run the command "cargo run [File Name]"

Example "cargo run input.txt"

Tests

Make sure the setup instructions are taken care of.

In order to run tests within a terminal/command, run the command "cargo test --all"

Demo

Success

Demo

Error

fail

kata-rs's People

Contributors

igetschwifty avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.