coffee-adventure

所属分类:人工智能/神经网络/深度学习
开发工具:CoffeeScript
文件大小:48KB
下载次数:0
上传日期:2015-10-13 15:35:58
上 传 者sh-1993
说明:  CoffeeScript编程初学者指南
(A Beginner s Guide to Programming in CoffeeScript)

文件列表:
Gemfile (49, 2015-10-13)
Gemfile.lock (3276, 2015-10-13)
LICENSE.md (764, 2015-10-13)
_config.yml (436, 2015-10-13)
_includes (0, 2015-10-13)
_includes\exercises.html (1149, 2015-10-13)
_includes\footer.html (842, 2015-10-13)
_includes\head.html (1700, 2015-10-13)
_includes\header.html (330, 2015-10-13)
_includes\intro.md (2153, 2015-10-13)
_layouts (0, 2015-10-13)
_layouts\chapter.html (183, 2015-10-13)
_layouts\default.html (217, 2015-10-13)
_plugins (0, 2015-10-13)
_plugins\litcoffee.rb (1721, 2015-10-13)
_sass (0, 2015-10-13)
_sass\_base.scss (2852, 2015-10-13)
_sass\_layout.scss (2681, 2015-10-13)
_sass\_syntax-highlighting.scss (2748, 2015-10-13)
answers (0, 2015-10-13)
answers\1 (0, 2015-10-13)
answers\1\1.litcoffee (61, 2015-10-13)
answers\1\2.litcoffee (94, 2015-10-13)
answers\1\3.litcoffee (87, 2015-10-13)
answers\2 (0, 2015-10-13)
answers\2\1.litcoffee (128, 2015-10-13)
answers\2\2.litcoffee (470, 2015-10-13)
answers\3 (0, 2015-10-13)
answers\3\1.litcoffee (89, 2015-10-13)
answers\3\2.litcoffee (77, 2015-10-13)
answers\3\3.litcoffee (194, 2015-10-13)
answers\4 (0, 2015-10-13)
answers\4\1.litcoffee (60, 2015-10-13)
answers\4\2.litcoffee (114, 2015-10-13)
answers\5 (0, 2015-10-13)
answers\5\1.litcoffee (157, 2015-10-13)
... ...

# A Coffee Fueled Adventure > A Beginner's Guide to Programming in [CoffeeScript](http://coffeescript.org/) So, you want to learn how to code? Great! This tutorial aims to help you get the basics down. It's divided up into a bunch of chapters which teaches different core concepts of programming. Within these chapters, besides a bunch of text, you will find small snippets of code. It's recommended that the reader not just read these, but actually copy them and run them interactively using the CoffeeScript [REPL](http://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop). This hands-on approach will allow the reader to get familiar with writing code. Eventually, the snippets will get more complex and you will want to move on to writing the code in separate files. A text editor that works great for this is [Atom](https://atom.io/), which incidentally is written in CoffeeScript itself. If Atom isn't your cup of coffee (okay, no more bad puns), you can take a look at the excellent [Sublime Text](http://www.sublimetext.com/) editor. Or you can just use your own favorite text editor, if you already have one. At the end of each chapter, there will sometimes be a few exercises for the reader to solve. Usually, these are also solved by using the REPL, or writing a small script, but in some cases they will require the reader to modify an existing application. These applications are constructed as examples of how several of the concepts taught in this tutorial can be used in concert to solve a particular problem, or just create a fun app. Since these applications are often run in the browser, they cannot be started like the rest of the snippets and scripts in this tutorial. To aid with this, each application has been equipped with a fully automated build environment using [gulp](http://gulpjs.com/). This means that all you need to do is run the `gulp` command and let gulp do all the hard work for you. Before you start the tutorial you will want to follow the installation instructions found below to get everything set up. ## Chapters 1. [Types](chapters/1-types.litcoffee) 2. [Operations](chapters/2-operations.litcoffee) 3. [Variables](chapters/3-variables.litcoffee) 4. [Functions](chapters/4-functions.litcoffee) 5. [Conditionals](chapters/5-conditional-statements.litcoffee) 6. [Data structures](chapters/6-data-structures.litcoffee) 7. [Loops](chapters/7-loops.litcoffee) 8. [Classes](chapters/8-classes.litcoffee) 9. [Errors](chapters/9-errors.litcoffee) 10. [More operations](chapters/10-more-operations.litcoffee) **Fun fact:** Since the chapters are written as literate CoffeeScript files, you can actually run them! You can try it out with the following shell command: ```sh coffee chapters/03-functions.litcoffee ``` ## Installation First of all, [Node.js](http://nodejs.org/) needs to be installed. You can find installation instructions on the Node.js website. Then, install CoffeeScript, Bower and gulp globally, with the following shell command: ```sh npm install -g coffee-script bower gulp ``` Next up, we need to grab a few submodules: ```sh git submodule update --init ``` Each submodule uses [npm](https://www.npmjs.com/) and [Bower](http://bower.io/) to track their dependencies. You can install them all at once using this command: ```sh git submodule foreach 'npm install && bower install' ``` **Tip:** If you need some more help with the installation; check out the [wiki](https://github.com/FredrikAppelros/coffee-adventure/wiki/Installation)!

近期下载者

相关文件


收藏者