Code documentation written as code! How novel and totally my idea!
Go to file
2015-10-18 18:38:01 +02:00
cs-cz Fixed typo 2015-10-14 21:11:05 +02:00
de-de Update ruby-ecosystem-de.html.markdown 2015-10-18 00:34:14 +08:00
el-gr Update scala-gr.html.markdown 2015-10-18 00:02:18 +03:00
es-es tmux spanish translation 2015-10-17 14:05:01 -04:30
fa-ir Fix for issue #1248 [fa-ir, zh-cn, ko-kr, es-es, ru-ru, fr-fr, de-de] 2015-10-05 15:20:35 -05:00
fr-fr [css/fr] Corrects some French mistakes 2015-10-18 18:38:01 +02:00
hu-hu Ruby hungarian translation 2015-10-09 02:41:08 +02:00
id-id Fix #1289 2015-10-04 22:44:34 +02:00
it-it Add myself as a translator 2015-10-18 13:36:42 +02:00
ja-jp [julia/ja] Added missing lang: ja-jp 2015-01-13 09:29:15 +09:00
ko-kr Fix for issue #1248 [fa-ir, zh-cn, ko-kr, es-es, ru-ru, fr-fr, de-de] 2015-10-05 15:20:35 -05:00
nl-nl Translated YAML to dutch 2015-10-17 11:43:49 +02:00
no-nb translating done 2015-04-26 16:22:36 +02:00
pl-pl Slight language improvements and fixed typos 2015-10-16 23:28:36 -05:00
pt-br Correção de palavra. 2015-10-17 19:53:33 -03:00
pt-pt [scala-pt] Fix variable names on while cycle 2015-10-10 16:51:07 +01:00
ro-ro line length tweaking.. 2015-08-07 12:50:36 +03:00
ru-ru Merge pull request #1350 from chashmeetsingh/patch-2 2015-10-18 00:49:34 +08:00
ta_in json values translated to tamil 2015-10-18 11:35:38 +05:30
tr-tr [objective-c/en-fr-ru-tr-vn] Enable syntax highlighting 2015-10-09 15:34:27 +01:00
vi-vn fix typo 2015-10-17 15:33:10 +07:00
zh-cn Fix for issue #1248 [fa-ir, zh-cn, ko-kr, es-es, ru-ru, fr-fr, de-de] 2015-10-05 15:20:35 -05:00
amd.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
asymptotic-notation.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
bash.html.markdown [bash/en] use $var with quotes in conditions 2015-10-14 21:10:28 +05:30
brainfuck.html.markdown Change link format 2015-03-24 22:24:49 +02:00
c.html.markdown Cleaned up c file 2015-10-15 14:50:20 -04:00
c++.html.markdown [C++/en] Added in Enum information 2015-10-17 06:05:54 -04:00
chapel.html.markdown Typo: "thought of" not "though of" 2015-10-08 07:14:24 -04:00
clojure-macros.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
clojure.html.markdown Copy arrow docs from french. 2015-10-18 00:31:19 +08:00
coffeescript.html.markdown Merge pull request #1424 from AndyBrown91/coffeescript 2015-10-09 20:00:54 +02:00
coldfusion.html.markdown Update coldfusion.html.markdown 2015-10-09 08:43:12 -04:00
common-lisp.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
compojure.html.markdown Use keywords in POST/PUT examples 2015-05-30 11:43:37 -06:00
csharp.html.markdown Fixed indentation in csharp file. 2015-10-17 19:50:09 -04:00
css.html.markdown fix merge conflict in css.html.markdown 2015-10-13 10:06:11 -04:00
d.html.markdown Make the code compilable 2015-10-15 16:55:10 +02:00
dart.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
elisp.html.markdown editorial revert of a change, remove trailing whitespace 2015-05-22 23:05:37 +02:00
elixir.html.markdown Fixed spacing with Elixir comment. 2015-10-17 20:49:58 -04:00
erlang.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
file.erb Added filename parameter 2013-06-29 20:19:14 -07:00
forth.html.markdown Merge pull request #1433 from zlarsen/forth-typo 2015-10-09 23:25:22 +02:00
fsharp.html.markdown Typo: "easily" rather than "easy" 2015-10-08 09:00:59 -04:00
git.html.markdown [git/en] Fixed 'git push' documentation 2015-10-18 13:54:06 +02:00
go.html.markdown Added Go Mobile information 2015-10-14 12:03:05 +05:30
groovy.html.markdown Update groovy.html.markdown 2015-10-06 16:49:21 -03:00
hack.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
haml.html.markdown Merge pull request #1438 from chashmeetsingh/patch-8 2015-10-12 23:07:44 -05:00
haskell.html.markdown change haskell's operator $ description wording 2015-07-06 10:40:05 +02:00
haxe.html.markdown [haxe/en] Adding colon after comments 2015-05-20 14:29:05 +02:00
hy.html.markdown Changed function name to match function call 2014-12-16 22:33:08 +05:30
java.html.markdown Fix Spacing Inconsistency (Switch Statement) 2015-10-16 21:50:34 -04:00
javascript.html.markdown [javascript/en] Small typo fix 2015-10-18 05:46:35 -04:00
json.html.markdown Fixed incorrect information about commas in JSON doc 2015-10-13 22:02:06 +02:00
julia.html.markdown try to make string change clearer 2015-10-10 14:34:55 -04:00
latex.html.markdown Update latex.html.markdown 2015-10-18 00:13:47 +08:00
livescript.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
lua.html.markdown Capitalize language names. See #137 2014-10-12 12:24:52 -07:00
make.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
markdown.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
matlab.html.markdown [matlab/en] Added simple class example to Matlab 2015-10-08 21:20:37 +02:00
neat.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
nim.html.markdown Sugar Assert fix 2015-10-07 21:19:50 -04:00
objective-c.html.markdown [objective-c/en-fr-ru-tr-vn] Enable syntax highlighting 2015-10-09 15:34:27 +01:00
ocaml.html.markdown Update ocaml.html.markdown 2015-10-17 15:06:28 +03:00
paren.html.markdown link to racket 2014-05-26 18:04:02 +02:00
perl6.html.markdown Removed references to compilers other than the Rakudo. 2015-10-15 19:31:38 -03:00
perl.html.markdown Add example of post-condition for loop. 2015-10-10 11:44:50 -07:00
pets.csv Create pets.csv 2013-06-29 03:38:34 -04:00
php.html.markdown Merge pull request #1578 from AkshayKalose/patch-2 2015-10-18 00:06:54 +08:00
pogo.html.markdown Fixed typo at the end 2014-12-22 13:26:30 +01:00
purescript.html.markdown readded haskell syntax highlighting, added line about running examples in psci, removed >'s 2015-10-13 01:25:56 -07:00
python3.html.markdown Added instructions for input operations in Python3 2015-10-14 21:16:18 +05:30
python.html.markdown Merge pull request #1471 from ankitaggarwal011/python27-input-operations-add 2015-10-14 09:47:42 -05:00
pythonstatcomp.markdown.html Update and rename statcomppython to pythonstatcomp.markdown.html 2015-03-08 22:34:12 -04:00
r.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
racket.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
README.markdown Merge pull request #1588 from mclehman/master 2015-10-17 23:56:48 +08:00
red.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
ruby-ecosystem.html.markdown Ruby 1.9.x is also retired 2015-10-06 16:08:41 +02:00
ruby.html.markdown Fixes output on combining strings and operators 2015-10-17 12:16:14 -04:00
rust.html.markdown Mention meaning of asterisk. Explain *ref_var2 2015-10-11 09:39:39 +05:30
sass.html.markdown Adding sections on Sass functions, import, partials, and math operations. Adding some comments regarding best practices. Adding section on compatibility. 2015-10-14 15:22:46 -05:00
scala.html.markdown Fix compile errors of the English and French Scala tutorials 2015-10-10 16:49:53 +01:00
self.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
smalltalk.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
standard-ml.html.markdown Fix indentation 2015-06-06 12:53:33 -04:00
swift.html.markdown Merge pull request #1381 from cwalk/swift-2 2015-10-09 10:08:24 -05:00
tcl.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
tmux.html.markdown Added tmuxinator in References 2015-10-18 06:27:36 +05:30
typescript.html.markdown [typescript/en] Fix typo 2015-04-21 23:01:08 +03:00
visualbasic.html.markdown removing whitespace all over 2015-10-07 23:11:24 -04:00
whip.html.markdown Little typos fixed. 2014-08-12 20:35:42 -05:00
xml.html.markdown A minor typo. 2015-10-15 19:37:44 +05:30
yaml.html.markdown [yaml/cn]: add last translation 2014-06-01 09:39:22 -07:00
zfs.html.markdown Adding a putting it all together section, and some additional reading 2015-10-17 02:06:18 -07:00

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 and 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.