- The Ruby Workshop
- Akshat Paul Peter Philips Dániel Szabó Cheyne Wallace
- 179字
- 2021-06-11 13:04:41
Summary
In this chapter, we learned about program flow. Program flow is a foundational concept in programming that allows programmers to change execution paths dynamically depending on any number of conditions. A core concept within program flow is understanding the Boolean data type along with its truthy operators, AND (&&) and OR (||).
We learned that Ruby supports different program flow options, such as if and unless, which are logical inverses of each other. The decision to use one or the other depends on the programmer, who should opt for readability and maintainability.
We also learned how to loop and were introduced to Ruby blocks, which are bundles of code that get executed along with each iteration of a loop. Bundling code into reusable chunks is also a foundational concept. Another way to bundle code is by using methods, which we've looked at only briefly so far. In the next chapter, we will go into greater depth about methods by learning how to define them, how to set different types of parameters, and how to return values from them.
- Web程序設計及應用
- Boost程序庫完全開發指南:深入C++”準”標準庫(第5版)
- CockroachDB權威指南
- AWS Serverless架構:使用AWS從傳統部署方式向Serverless架構遷移
- Learning Data Mining with Python
- Visual Basic程序設計教程
- NLTK基礎教程:用NLTK和Python庫構建機器學習應用
- C/C++常用算法手冊(第3版)
- 鋒利的SQL(第2版)
- Visual C++應用開發
- Getting Started with Laravel 4
- Yii Project Blueprints
- C/C++程序員面試指南
- Python機器學習之金融風險管理
- HTML+CSS+JavaScript網頁設計從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)