GithubHelp home page GithubHelp logo

tut's Introduction

tut

If you are here to read tutorials, please go here and enjoy!

King Tut

authors

The deal is, this lets you write Scala tutorials that you can be sure will actually compile and work in the REPL. This helps to prevent the problem where tutorials have missing imports, use out of date APIs, or just have dumb mistakes.

So if you want to write tutorials, here's what you do:

  • Fork this project, and add your tutorial to src/main/tut. By convention these are .md files.
  • Code in scala sheds will be interpreted. Anything in the sbt dependencies will be available. See the Functor.md source for an example.
  • Blank lines in the sheds are ignored. Multi-line definitions work, but :paste style definitions (for mutual recursion for example) don't work.
  • Each tutorial is an independent REPL session, and the code examples run from top to bottom, so you don't have to worry about your tutorial messing up someone else's (modulo resident compiler bugs, but let's not think about this).
  • sbt run will rebuild all of the tutorials. If the REPL barfs at some point you will get an error message, and you can look at the output and see where it starts to go funny.
  • Please commit everything (including the output in out) so visitors can just consume tutorials without having to build them. At some point maybe we'll publish them elsewhere.

tut's People

Contributors

tpolecat avatar

Watchers

James Cloos avatar Mickaël Gauvin 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.