the first 20 hours

文章摘自《the first 20 hours:how to learn anything ...fast!》 如何学习编程章节。

原文:Summary: How I Learned to Program using Ruby

  • I spent some time learning what “programming” and “web applications” are in general, then deconstructed these skills into smaller sub-skills that are easier to understand and practice.

  • I set my target performance level by choosing two specific projects I wanted to create, then defined what those projects would look like when finished.

  • I deconstructed those projects into smaller sub-steps then identified which sub-steps seemed most important.

  • I made sure I had the tools I needed to work (like the latest version of Ruby), and that I was able to find and use any additional tools I needed.

  • I found a few reliable sources of programming information, but I skipped canned tutorials in favor of jumping in and writing the actual programs.

  • I worked on the most important sub-steps first, like figuring out how to test programs on my computer, push the finished application to production, etc.

  • I used reference examples to get started and build confidence, then tested various approaches to figure out how to program the features I wanted.

  • When I made an error, the program crashed and gave me an error message, creating a fast feedback loop.

  • After getting an error, I experimented with several ways to fix it. If I couldn’t fix the problem myself, I searched for help.

  • I kept using the build / test / fix approach until my programs were complete.

     

    概要:学习ruby编程的方法

  • 首先花了一些时间了解普通编程和web应用编程之间的共性,然后,把他们分解成简单易懂并且易于练习的小技巧。

  • 通过选择两个特殊的项目来设定目标项目的难易程度。然后定义这两个项目做完之后所具有的功能。

  • 把项目分解成更小的模块,找出最重要的模块。

  • 确保已经有了所需要的开发工具(比如最新版的ruby)。

  • 待补充

  • 首先完成最重要的子任务,比如如何自己测试这个项目,如果把最终版本做成产品等

  • 开始会参考一些例子来增加自信,然后尝试各种方法实现我想要的程序

  • 当我犯了错,程序崩溃并且给我返回一个错误提示信息,这时候要创建一个快速反馈机制

  • 出错后,尝试各种方法来解决这个问题,如果自己无法解决,我会寻求别人的帮助

  • 我会一直使用构建/测试/修复知道我的项目成功完成。

你可能感兴趣的:(TO,programming,how,learn)