Ruby Metaprogramming - Complete Course

所在平台: Udemy

课程主页: https://www.udemy.com/course/ruby-metaprogramming/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**Ruby 元编程:从新手到大师** 本课程旨在帮助 Ruby 开发者掌握元编程的能力,从而提升代码的优雅性和效率。作者通过深入研究和整合现有资料,化繁为简,将原本令人却步的元编程概念,如 Eigenclasses、单例类、Ruby 对象模型等,以小而精炼的视频形式呈现,帮助学习者逐步理解并掌握这一核心技术。 **课程亮点:** * **化繁为简:** 将复杂的元编程概念分解成易于理解的小知识点,帮助学习者逐步建立信心。 * **实战导向:** 通过大量示例,展示如何运用元编程技术提升代码质量,如编写更简洁的测试代码,并揭秘流行 Gem 的“魔法”之处。 * **深度理解 Ruby:** 帮助学习者更深入地理解 Ruby 语言的底层机制和特性,例如作用域的变化等。 * **创造 DSL:** 最终目标是能够独立开发领域特定语言(DSL),如同 RSpec、Rake 等优秀库一样。 **课程结构:** 1. **Ruby 语言洞察:** 讲解 Ruby 中鲜为人知但至关重要的语言特性,帮助理解方法和变量在不同作用域下的可用性,以及作用域如何变化。 2. **SDK 方法解析:** 深入讲解所有与元编程相关的 SDK 方法,并通过实际案例解析流行 Gem 的实现原理。 3. **实践与创造:** 将所学知识融会贯通,动手实践,构建自己的 RSpec、DSL,以及 Rails 中一些常用的“魔法”方法。 完成本课程后,您将成为一名更出色的 Ruby 开发者,能够写出更优雅的代码,编写更高效的测试,理解并运用 Ruby 的强大元编程能力,为自己的业务领域创造专属的 DSL。

课程评论(0条)

课程详情

Just like many other ruby developers, I wanted to learn metaprogramming to make the leap from Ruby novice to Ruby pro. But, approaching the subject felt a bit intimidating. I tried to learn metaprogramming several times and every time I tried, all available materials were referring to even more complicated and less known concepts such as: eigenclasses, singleton classes, ruby object model, classes being objects themselves, etc.So, I spent several months reading about all these concepts and synthesised all available material. At the end, it just "clicked"! It turned out to be very simple! The problem was that there was no single resource where all this concepts were put together. So, I decided to produce this corse. I hope it will save your time and you will find it useful. This video course will teach you ruby metaprogramming by introducing small, simple and less known ruby insights in each video. And once you learn them, metaprogramming will just start to make sense. At the end of the course, you will: Be better Ruby developer who can write elegant code using Ruby's metaprogramming features.Make your test code more concise by writing test that dynamically generate code that covers all test cases.Be able to understand and explain the magic behind the code/syntax in all popular gems.Better understand the Ruby language.and of course write your own DSL's for your business domain (just like rspec, rake, etc.).Course overview Metaprogramming is such an integral part of the Ruby language, that in order to learn it, you need to understand the specific language features of Ruby. This features are less known and not covered in books. But, once you are introduced to them, metaprogramming starts to make sense. That's why, the course will start by introducing several key Ruby language insights. After this section, you will understand why is it that some method or variable is not available in some scope and available in others or how scope changes in your code and more. In the second section of the course, we will cover all the SDK methods that are involved in metaprogramming. Along the way, we will go through several examples that demystifies magic behind most popular gem code as well. In the last section of the course, we will put everything we've learnt into practice and will build our own rspec, domain specific language and some of the rails most popular magical methods.

课程标签

0人关注该课程

主题相关的课程