Skip to content

Latest commit

 

History

History
160 lines (95 loc) · 5.39 KB

koans.md

File metadata and controls

160 lines (95 loc) · 5.39 KB

Koans

Koans (公案) originate from Zen Buddhism. They are paradoxical riddles or stories which are used to test students on their path to enlightenment. They are designed to provoke thought or doubt in the student's mind. In finding the answer for it, the learning happens.

Transfered to the teaching of programming, a Koans are essentially a simple problem where programmer is asked to “fill in the blanks”.

Often, you are presented with tests and you have to edit the code and sometimes write it all so to get all tests to pass.

Edgecase Ruby Koans were possibly the first ones to introduce the concept.

There is a number of koans ready to be pulled from internet, for pretty much any language.

More about the philosophy of Koans-driven-learning

Koans driven learning

How to write your own

#!/usr/bin/julia
using Base.Test
x= _
y= _

@testset "Variables Tests" begin
          @test x == 4+4
          @test "Hello, World"=="H$(y)ld"
end

Examples

Run a search for your favorite language and add Koans to your query

Programming languages

Skills

Or run a search a search to see the latest updated repos with koans in the title