Skip to content

Pance/java-koans

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running Instructions:

  • Download and unarchive the contents of the most recent java-koans in development from: https://github.com/matyb/java-koans/archives/master
  • Open a terminal and cd to the directory you unarchived: cd <the directory you just unarchived>
  • Within it you'll find:
    • koans: this directory contains the application and its lessons, it is all that is needed to advance through the koans themselves and it can be distributed independently
    • lib/koans-lib: the directory for source code for the engine that executes the koans
    • lib/koans-tests: the directory for tests to check the sanity of the application
    • lib/file-compiler: the dynamic compiler module that loads newly saved java files into the JVM as classes
    • lib/file-monitor: the file monitoring module for notifying the app when files are saved
    • lib/util: application agnostic interfaces and utilities shared in projects
  • Change directory to the koans directory: cd koans
  • If you are using windows enter: run.bat or sh run.sh if you are using Mac or Linux.

Developing a Koan:

  • Follow any of the existing koans as an example to create a new class with koan methods (indicated by the @Koan annotation, they're public and specify no arguments)
  • Define the order the koan suite (if it's new) will run in the koans/app/config/PathToEnlightenment.xml file
  • Optionally you may use dynamic content in your lesson, examples are located in the XmlVariableInjector class (and Test) and the AboutKoans.java file

About

A framework and lessons to learn java syntax and idioms in a logical sequence.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 96.8%
  • Perl 3.0%
  • Other 0.2%