Code documentation written as code! How novel and totally my idea!
Go to file
2014-11-24 19:44:25 -06:00
de-de casing fix 2014-11-01 20:18:11 +01:00
es-es Capitalize language names for translations. 2014-10-12 14:24:42 -07:00
fa-ir [javascript/*] typeof is an operand and not a function/method - fix usage / remove parens 2014-08-09 21:41:12 +02:00
fr-fr Update yaml-fr.html.markdown 2014-11-14 17:08:27 +02:00
hu-hu fixed orthographic and grammar mistakes 2014-03-07 07:38:07 +01:00
id-id fix syntax error 2014-03-14 18:19:06 +00:00
it-it Merge pull request #566 from slavni96/master 2014-03-11 16:28:01 +01:00
ja-jp Review docs for added rouge lexers and update those with new highlighters 2014-09-08 13:08:28 +02:00
ko-kr Capitalize language names for translations. 2014-10-12 14:24:42 -07:00
nl-nl Merge pull request #820 from Jell-E/master 2014-10-28 23:03:03 +02:00
pl-pl Add @ukom Polish Perl translation from PR https://github.com/adambard/learnxinyminutes-docs/pull/341 2014-10-17 21:19:08 -05:00
pt-br [groovy-pt] Translation of Groovy page to pt-br 2014-10-18 19:52:45 -03:00
pt-pt Fixed typo 2013-12-04 11:34:42 +00:00
ro-ro fixed typos, a little bit of formatting 2014-05-07 18:53:23 +02:00
ru-ru Update java-ru.html.markdown 2014-11-15 16:55:39 +03:00
tr-tr Capitalize language names for translations. 2014-10-12 14:24:42 -07:00
vi-vn Fix Vietnamese Git guide typo and update content 2014-10-25 09:59:01 +07:00
zh-cn Update markdown-cn.html.markdown 2014-11-14 17:07:42 +02:00
amd.html.markdown Attempt at fixing amd file's markdown on site. 2014-10-18 13:19:07 -05:00
bash.html.markdown Merge pull request #839 from westurner/patch-1 2014-11-01 13:36:53 -05:00
brainfuck.html.markdown make explanation richer 2013-09-21 05:01:47 +09:00
c.html.markdown fix #873 2014-11-24 17:37:55 +01:00
c++.html.markdown correcting the setName method 2014-10-27 09:06:43 +05:30
clojure-macros.html.markdown Added Clojure macros 2014-01-19 20:33:06 -08:00
clojure.html.markdown pointless change to test auto-deploy 2013-10-27 22:42:13 -07:00
coffeescript.html.markdown Fixed very small spelling mistake 2014-09-14 13:18:43 -06:00
common-lisp.html.markdown [Common Lisp/en] Add a missing argument to (walker) 2014-10-27 20:01:55 +01:00
compojure.html.markdown Merge pull request #762 from matthiasn/patch-2 2014-09-12 13:15:06 -05:00
csharp.html.markdown fix typo -> re(s)pository pattern 2014-10-07 20:38:14 +02:00
css.html.markdown Update the CSS tutorial 2014-09-21 00:22:26 -07:00
dart.html.markdown Authors -> Contributors 2013-07-03 22:59:13 -07:00
elisp.html.markdown Syntax errors. Regexp needs to be greedier. 2014-04-29 22:10:55 +02:00
elixir.html.markdown [elixir/en] Replace Records section w/ Structs one 2014-10-18 14:00:32 +03:00
erlang.html.markdown Fix typo in words calculate and area, one more 2014-09-11 12:20:32 +02:00
file.erb Added filename parameter 2013-06-29 20:19:14 -07:00
forth.html.markdown Reword arrays introduction. 2014-11-18 12:19:12 +00:00
fsharp.html.markdown Authors -> Contributors 2013-07-03 22:59:13 -07:00
git.html.markdown Added ourselves to the contributor section 2014-11-24 19:44:25 -06:00
go.html.markdown [go] Fix no new variables on left side of := 2014-09-22 12:11:49 +00:00
groovy.html.markdown Another way of checking List.contains and some headers 2013-09-02 13:02:53 +01:00
haml.html.markdown Added info on indentation and escaping html, typos 2014-10-18 12:25:42 +01:00
haskell.html.markdown Fix some inaccuracies in haskell.html.markdown 2014-11-21 17:44:26 +00:00
haxe.html.markdown Update haxe.html.markdown 2014-02-15 23:10:35 +03:00
hy.html.markdown [hy/en] Introductory tutorial to hy language 2014-01-11 12:48:56 +05:30
java.html.markdown [Java] Maps description little fix. 2014-11-01 22:32:51 +03:00
javascript.html.markdown Merge pull request #832 from isomorphisms/patch-5 2014-11-12 19:53:49 +02:00
json.html.markdown [json/en] JSON should not use single quote delimited strings 2014-09-21 18:27:43 +02:00
julia.html.markdown Capitalize language names. See #137 2014-10-12 12:24:52 -07:00
livescript.html.markdown Remove references to hash and hashtag in favor of number symbol 2014-04-14 11:15:08 -07:00
lua.html.markdown Capitalize language names. See #137 2014-10-12 12:24:52 -07:00
markdown.html.markdown Add a couple missing parts to the markdown doc from @ukom PR https://github.com/adambard/learnxinyminutes-docs/pull/341 2014-10-17 21:09:51 -05:00
matlab.html.markdown Temp fix for Matlab syntax highlighting 2014-11-18 10:19:11 +00:00
neat.html.markdown Fixed up so it builds 2013-09-08 22:52:09 -07:00
nim.html.markdown Ruby syntax for nimrod for now 2014-09-21 22:31:07 +02:00
objective-c.html.markdown Review docs for added rouge lexers and update those with new highlighters 2014-09-08 13:08:28 +02:00
ocaml.html.markdown Recursive function a little bit to recursive 2014-10-18 11:44:44 +08:00
paren.html.markdown link to racket 2014-05-26 18:04:02 +02:00
perl6.html.markdown 0 // 5 = 0 2014-11-16 12:16:26 -05:00
perl.html.markdown Shortens line lengths of comments in Perl guide 2014-06-10 10:06:08 -07:00
pets.csv Create pets.csv 2013-06-29 03:38:34 -04:00
php.html.markdown Capitalize language names. See #137 2014-10-12 12:24:52 -07:00
pogo.html.markdown added javascript highlighting 2013-09-20 12:43:05 +02:00
purescript.html.markdown Learn Purescript in Y minutes 2014-08-31 23:26:56 +02:00
python3.html.markdown Apostrophe fixes as per Python 2 tutorial 2014-11-12 02:04:50 +11:00
python.html.markdown [python/en] Fix 80 col limit and clarify a few points. 2014-11-17 01:26:19 -06:00
r.html.markdown Remove misleading example of NA in Levels section 2014-11-01 01:37:26 -02:00
racket.html.markdown Fix typos from issue 447. 2014-03-20 12:37:13 -05:00
README.markdown Update README.markdown 2014-11-09 10:25:00 +01:00
red.html.markdown Update red.html.markdown 2014-02-07 20:34:08 +01:00
ruby-ecosystem.html.markdown [ruby-ecosystem/en] 'ruby' -> 'Ruby' (cont. cont.) 2014-07-07 21:50:27 +01:00
ruby.html.markdown Typo 2014-11-20 16:26:56 +00:00
rust.html.markdown Rust tutorial -> The Rust Guide 2014-10-14 16:42:39 -04:00
scala.html.markdown Some work on the Scala page 2014-11-14 15:01:16 -08:00
self.html.markdown Update self.html.markdown 2014-10-31 00:44:24 +02:00
standard-ml.html.markdown [standard-ml/en-en] Some format fixing, variable renaming, some more about exceptions 2013-12-16 21:42:15 +01:00
swift.html.markdown - update examples 2014-10-17 21:22:28 -05:00
tmux.html.markdown Correct contributors 2014-10-31 15:57:52 -04:00
typescript.html.markdown Review docs for added rouge lexers and update those with new highlighters 2014-09-08 13:08:28 +02:00
visualbasic.html.markdown An assortment 2013-08-01 11:24:23 -07:00
whip.html.markdown Little typos fixed. 2014-08-12 20:35:42 -05:00
xml.html.markdown remove white space at the end of both xml files 2014-05-31 15:18:05 -07:00
yaml.html.markdown [yaml/cn]: add last translation 2014-06-01 09:39:22 -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 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.

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.