- 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.
- 黑客攻防從入門到精通(實戰秘笈版)
- Learning Neo4j
- Implementing Modern DevOps
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- 基于粒計算模型的圖像處理
- Bootstrap Site Blueprints Volume II
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- Vue.js前端開發基礎與項目實戰
- Vue.js快速入門與深入實戰
- Python高級編程
- Visual Basic程序設計教程
- Swift語言實戰精講
- 精通Python自動化編程
- Solr Cookbook(Third Edition)
- Julia for Data Science