Code documentation written as code! How novel and totally my idea!
Go to file
Geoff Liu 8347fa0187 Merge pull request #1059 from srirams6/python2-print
[python/en] Moved to default python2 print statements.
2015-04-24 13:00:40 -06:00
de-de Update python-de.html.markdown 2015-03-03 12:20:57 +01:00
es-es haml-es 2015-01-20 23:16:35 -03:00
fa-ir
fr-fr Added lang tag to go-fr 2015-03-31 15:46:34 -07:00
hu-hu
id-id fix syntax error 2014-03-14 18:19:06 +00:00
it-it
ja-jp [julia/ja] Added missing lang: ja-jp 2015-01-13 09:29:15 +09:00
ko-kr
nl-nl Merge pull request #820 from Jell-E/master 2014-10-28 23:03:03 +02:00
pl-pl
pt-br Merge pull request #1033 from suuuzi/master 2015-04-05 11:13:35 -05:00
pt-pt Fixing some typos in Git pt-pt translation 2015-02-04 13:15:42 -02:00
ro-ro
ru-ru Update python3-ru.html.markdown 2015-04-07 12:30:52 +03:00
tr-tr Markdown tr-tr language 2015-03-30 21:26:26 +00:00
vi-vn
zh-cn Merge pull request #1035 from Arnie97/master 2015-04-17 14:03:31 -04:00
amd.html.markdown
asymptotic-notation.html.markdown Renamed Big-Oh to more prevalent notation, Big-O. 2015-03-04 17:48:10 -06:00
bash.html.markdown [bash/en] Fixed overflowing line. 2015-04-24 02:36:54 +05:30
brainfuck.html.markdown Change link format 2015-03-24 22:24:49 +02:00
c.html.markdown c.html: fix #1021 (bitwise negation and shifting into the sign bit) 2015-03-30 10:11:05 +03:00
c++.html.markdown [c++/en] Fix spelling 2015-04-11 12:52:23 +08:00
clojure-macros.html.markdown Fixed spelling of 'arithmetic' in Clojure Macros tutorial. 2015-04-19 14:03:21 -07:00
clojure.html.markdown
coffeescript.html.markdown
common-lisp.html.markdown fix the while macro for Common Lisp 2015-04-21 15:08:39 -04:00
compojure.html.markdown
csharp.html.markdown [CSharp/en]Fixed typo 2015-02-01 19:01:47 +01:00
css.html.markdown corrected definition of ~ selector, added | 2015-02-19 00:15:12 +05:30
dart.html.markdown
elisp.html.markdown
elixir.html.markdown Add ranges under 'Basic types' 2015-02-01 01:32:21 +13:00
erlang.html.markdown Fix syntax error: Remove semicolon from last branch of erlang if-expression. 2015-03-30 16:13:26 -04:00
file.erb
forth.html.markdown Update forth.html.markdown 2015-01-02 20:33:47 +00:00
fsharp.html.markdown
git.html.markdown Added the handy -a switch 2015-03-04 22:00:00 +05:30
go.html.markdown Fallthrough 2015-04-23 00:02:33 +10:00
groovy.html.markdown
hack.html.markdown [hack/en] Fix link to other learnxinyminutes article 2015-02-18 19:23:58 +13:00
haml.html.markdown
haskell.html.markdown Merge pull request #1006 from nero-luci/master 2015-03-27 10:48:10 -06:00
haxe.html.markdown [haxe] polishing 2015-03-24 12:37:49 +03:00
hy.html.markdown Changed function name to match function call 2014-12-16 22:33:08 +05:30
java.html.markdown No-space array notation type[] 2015-03-15 21:17:52 -04:00
javascript.html.markdown [javascript/zh] Translation tracking 2015-03-06 17:42:44 +08:00
json.html.markdown
julia.html.markdown
livescript.html.markdown Update livescript.html.markdown 2014-12-24 10:38:16 +01:00
lua.html.markdown
markdown.html.markdown
matlab.html.markdown Temp fix for Matlab syntax highlighting 2014-11-18 10:19:11 +00:00
neat.html.markdown
nim.html.markdown Update nim.html.markdown 2015-03-01 13:28:12 -08:00
objective-c.html.markdown Further fix of typos in objective-c doc 2015-01-31 22:18:02 -05:00
ocaml.html.markdown [ocaml/en] Fix typo 2015-02-12 17:02:16 +08:00
paren.html.markdown
perl6.html.markdown fix #1032 2015-04-15 14:33:52 +02:00
perl.html.markdown
pets.csv
php.html.markdown
pogo.html.markdown Fixed typo at the end 2014-12-22 13:26:30 +01:00
purescript.html.markdown
python3.html.markdown [python/en] Range function arguments. 2015-04-23 02:06:43 +05:30
python.html.markdown [python/en] Removed python3 print. 2015-04-24 23:29:01 +05:30
r.html.markdown Add definition of parakeet in r.html.markdown 2015-01-28 23:27:09 -06:00
racket.html.markdown detailed explanation of eq?, eqv?, and equal? 2015-03-13 14:04:20 -04:00
README.markdown Update README.markdown 2014-12-08 23:42:24 +01:00
red.html.markdown
ruby-ecosystem.html.markdown
ruby.html.markdown add to ruby contributors 2015-03-19 15:38:27 +05:30
rust.html.markdown [rust/en] Update the Rust tutorial 2015-01-15 15:14:25 +13:00
scala.html.markdown make corrections 2015-04-16 17:53:40 +08:00
self.html.markdown Update self.html.markdown 2014-10-31 00:44:24 +02:00
standard-ml.html.markdown
swift.html.markdown add optional init and enum with associated values 2015-02-28 19:28:34 +08:00
tcl.html.markdown [tcl/en] Fix typos 2015-03-09 13:57:30 +08:00
tmux.html.markdown Update tmux.html.markdown 2015-04-19 10:59:11 +08:00
typescript.html.markdown [typescript/en] Fix typo 2015-04-21 23:01:08 +03:00
visualbasic.html.markdown
whip.html.markdown
xml.html.markdown Update xml.html.markdown 2015-03-11 17:38:42 -07:00
yaml.html.markdown

Learn X in Y minutes

Whirlwind tours of (several, hopefully many someday) popular and ought-to-be-more-popular programming languages, presented as valid, commented code and explained as they go.

We need YOU!...

... to write more inline code tutorials. Just grab an existing file from this repo and copy the formatting (don't worry, it's all very simple). Make a new file, send a pull request, and if it passes muster I'll get it up pronto. Remember to fill in the "contributors" fields so you get credited properly!

Contributing

All contributions are welcome, from the tiniest typo to a brand new article. Translations in all languages are welcome (or, for that matter, original articles in any language). Send a pull request or open an issue any time of day or night.

Please tag your issues pull requests with [language/lang-code] at the beginning (e.g. [python/en] for English Python). This will help everyone pick out things they care about.

We're happy for any contribution in any form, but if you're making more than one major change (i.e. translations for two different languages) it would be super cool of you to make a separate pull request for each one so that someone can review them more effectively and/or individually.

Style Guidelines

  • Keep lines under 80 chars
  • Prefer example to exposition
  • Eschew surplusage
  • Use UTF-8

Long version:

  • Try to keep line length in code blocks to 80 characters or fewer, or they'll overflow and look odd.

  • Try to use as few words as possible. Code examples are preferred over exposition in all cases.

  • We welcome newcomers, but the target audience for this site is programmers with some experience. So, try to avoid explaining basic concepts except for those specific to the language in question, to keep articles succinct and scannable. We all know how to use Google here.

  • For translations (or English articles with non-ASCII characters), please make sure your file is UTF-8 encoded, and try to leave out the byte-order-mark at the start of the file. (:set nobomb in Vim)

Header configuration

The actual site uses Middleman to generate HTML files from these Markdown ones. Middleman, or at least the custom scripts underpinning the site, required that some key information be defined in the header.

The following fields are necessary for English articles about programming languages:

  • language The programming language in question
  • contributors A list of [author, URL] lists to credit

Other fields:

  • filename: The filename for this article's code. It will be fetched, mashed together, and made downloadable. For non-English articles, filename should have a language-specific suffix.
  • lang: For translations, the human language this article is in. For categorization, mostly.

Here's an example header for an Esperanto translation of Ruby:

---
language: ruby
filename: learnruby-epo.ruby
contributors:
    - ["Doktor Esperanto", "http://example.com/"]
    - ["Someone else", "http://someoneelseswebsite.com/"]
lang: ep-ep
---

License

Contributors retain copyright to their work, and can request removal at any time. By uploading a doc here, you agree to publish your work under the default Creative Commons Attribution-ShareAlike 3.0 Unported licensing included on each doc page.

Anything not covered by the above -- basically, this README -- you can use as you wish, I guess.