Wir wollen, dass ihr einen Textkodierer schreibt. Das Programm sollte eine Eingabedatei einlesen und den kodierten Text in eine Ausgabedatei schreiben. Der Programmaufruf sollte so aussehen:
encoder input.txt output.txt
Ihr solltet in der Lage sein, die Kodierung anhand der Eingabedateien in input und der zugehörigen Ausgabedateien in output zu erraten. Das Namensschema der Dateien ist einfach gehalten ;)
Wir werden der (unserer Meinung nach) besten Einsendung ein iPad mini Wi-Fi 16GB überreichen. Da gut immer relativ ist, hier einen kleinen Einblick in das was wir als gut erachten. Wir mögen leserliche, elegante, getestete Software. Wir mögen automatische Buildsysteme. Wir mögen git.
Einsendeschluss ist Mitternacht des 23. Juni 2013.
Um eine Lösung abzugeben, macht entweder hier auf Github einen Pull-Request auf oder schickt uns eine E-Mail (mit einem einzigen gepackten tar oder zip Anhang) an htw2013@consistec.de.
Die Beispieldateien und diese Readme-Datei findet ihr hier.
Eure Lösung muss enthalten:
- den kompletten Code um das Binary zu kompilieren
- eine Art Skript mit dem man das Binary automatisch bauen kann (sowas wie make, ant, maven, rake, etc.)
- die Ausgabedatei eures encoders aus der Eingabe lorem_ipsum.txt
- anderer Code der geschrieben wurde um die Implementierung zu unterstützen (sowas wie Tests)
- eine Readme-Datei in der steht wie der Code zu kompilieren ist und mit euren Kontaktinformationen (E-Mail oder so)
Was wir nicht fordern:
- eine bestimmte Programmiersprache
- ein kompiliertes Binary
We want you to write a text encoder. The program should read an input file and write the encoded content to an output file. The program call should look something like:
encoder input.txt output.txt
You should be able to guess the encoding with help of the input files in the directory input and the corresponding output files in output. The naming schema of these files is easy ;)
We will reward the best submission (as seen by us) with an iPad mini Wi-Fi 16GB. Since good is always a matter of taste, we want to let you know some things we like in good software. We like readable, elegant, tested software. We like automated builds. We like git.
Submissions are taken in to account until Midnight June, 23rd 2013.
In order to submit your solution either send us a pull request here on Github or send us an email (with a single packaged tar or zip attachment) to htw2013@consistec.de.
You can download the example files and this readme from here.
Your solution should contain:
- the complete code needed to compile the encoder binary
- some kind of script used to automatically build the binary (like make, ant, maven, rake, etc.)
- the output from your encoder based on the lorem_ipsum.txt file
- all other code you wrote supporting the implementation (read tests)
- a readme on how to compile the binary with a way to contact you (email or something)
What we do not require:
- a certain programming language
- a compiled binary