Ruby
优雅的代码,还有 Rails。
Ruby was designed to make programmers happy, and it shows: code that reads almost like English, where everything is an object and a block can say a lot in one clear line. This track starts from zero: printing and irb, values and symbols, decisions, arrays and hashes, blocks and iterators, then methods, classes, mixins and errors. It ends with Ruby on Rails, the framework behind GitHub and Shopify: a first tour, then models and migrations, views and forms, and tests.
Every lesson is short, checked with quizzes, and full of small programs you can run yourself.
- 课时
- 14
- 时长
- 2 小时
- 级别
- 初级
本课程的内容目前为英文。
- 铜牌 可挑战
- 银牌 可挑战
- 金牌 未解锁
准备好证明自己了吗?
三场考试正等着你:铜牌、银牌和金牌。
学完后你将能够
- Write Ruby scripts, run them, and try ideas out in irb
- Work with strings, symbols, arrays and hashes the Ruby way
- Process collections in one clear line with blocks,
map,selectandsum - Model your own data with classes, modules and mixins
- Raise and rescue errors with
begin,rescueandensure - Read a Rails app: routes, controllers and Active Record queries
学习旅程
1 第 1 单元Ruby basics
Print, store values, make decisions, and process arrays and hashes with blocks.
0 / 62 第 2 单元Objects and Rails
Methods, classes, mixins and errors, then a first look at Ruby on Rails.
0 / 43 第 3 单元Next: Rails for real
Migrations and models, views and forms, and tests for a real Rails app.
0 / 4