Giter VIP home page Giter VIP logo

quake-log-parser's Introduction

Quake Log Parsing Application

This Ruby application parses a Quake game log file and generates a report with information about kills.

Usage

  1. Ensure that you have Ruby installed on your system.
  2. Run bundle install to install dependencies
  3. Place the Quake game log file in the resources directory with the name quake_logs.txt.
  4. Run rake run to execute the application.
  5. Run rake test to run the tests.

Further improvements

Test coverage and exception handling

Several use cases were implemented as part of the development of the app, but edge cases were not covered. Exception handling was also not covered.

FileProcessor

As it is now, the FileProcessor has too many responsibilities and doesn't have a end to end test. The case clause where the entries are handled should be moved elsewhere making it more modular and testable.

Type Handling

The log types, i.e: :kill, :client_connect, are too loose in the code. We can improve it by creating a Enum class.

Input receivable

For now, only the file at resources/quake_logs.txt will be used to generate a report. It's possible to improve it by reading through input.

quake-log-parser's People

Contributors

danzanzini avatar

Watchers

 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.