Packt
Ruby Fundamentals and Basic Programming Concepts

通过 Coursera Plus 解锁访问 10,000 多门课程。开始 7 天免费试用

Packt

Ruby Fundamentals and Basic Programming Concepts

本课程是 Learn to Code with Ruby 专项课程 的一部分

包含在 Coursera Plus

深入了解一个主题并学习基础知识。
4.5

(10 条评论)

初级 等级

推荐体验

1 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度
深入了解一个主题并学习基础知识。
4.5

(10 条评论)

初级 等级

推荐体验

1 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度

您将学到什么

  • Install and configure Ruby on various operating systems.

  • Apply object-oriented programming principles in Ruby.

  • Write and debug Ruby programs using various methods and control structures.

  • Utilize advanced Ruby features to develop complex applications.

要了解的详细信息

可分享的证书

添加到您的领英档案

作业

5 项作业

授课语言:英语(English)

了解顶级公司的员工如何掌握热门技能

Petrobras, TATA, Danone, Capgemini, P&G 和 L'Oreal 的徽标

积累特定领域的专业知识

本课程是 Learn to Code with Ruby 专项课程 专项课程的一部分
在注册此课程时,您还会同时注册此专项课程。
  • 向行业专家学习新概念
  • 获得对主题或工具的基础理解
  • 通过实践项目培养工作相关技能
  • 获得可共享的职业证书

该课程共有8个模块

In this module, we will introduce you to the Ruby programming language, its historical context, and its comparison with other languages. You'll learn how to set up the development environment on macOS and Windows, including installing essential tools like XCode, Homebrew, rbenv, and VSCode. By the end, you'll write and run your first Ruby program using both the Terminal and PowerShell.

涵盖的内容

17个视频2篇阅读材料

In this module, we will delve into fundamental programming concepts using Ruby. You'll learn about different methods for outputting text, such as 'puts', 'print', and 'p', and how to use escape characters to format strings. We will also cover basic arithmetic operations, string concatenation, and handling exceptions, providing a solid foundation for further Ruby programming.

涵盖的内容

11个视频

In this module, we will focus on variables in Ruby, teaching you how to declare and use them effectively. You'll learn about variable scope, parallel assignment, and swapping values. We will also introduce constants and cover common exceptions like 'NameError', ensuring you can handle variables confidently in your programs.

涵盖的内容

8个视频1个作业

In this module, we will explore object methods in Ruby. You'll learn how to call methods on different objects, chain methods for efficiency, and use the 'inspect' method for debugging. We'll also cover the concept of the 'nil' object, string interpolation, user input with the 'gets' method, and converting objects between types, providing a comprehensive understanding of Ruby object methods.

涵盖的内容

11个视频

In this module, we will introduce Booleans and predicate methods in Ruby. You'll learn about the equality and inequality operators, mathematical comparisons, and how to use predicate methods that return Boolean values. We will also cover methods with arguments, including handling multiple arguments and specific methods for Float objects, enhancing your ability to write logical and efficient Ruby code.

涵盖的内容

10个视频

In this module, we will focus on defining and using methods in Ruby. You'll learn how to create methods with parameters, pass arguments, and manipulate these within your methods. We'll discuss the scope of local variables, how to return values explicitly and implicitly, and how to set up optional parameters with default arguments, equipping you with essential skills for creating reusable and modular code.

涵盖的内容

9个视频1个作业

In this module, we will introduce blocks in Ruby, focusing on their use with methods. You'll learn how to declare block variables and pass data between methods and blocks. We will also cover iteration methods such as 'upto', 'downto', and 'step', enabling you to write concise and powerful loops in your Ruby programs.

涵盖的内容

5个视频

In this module, we will explore conditionals in Ruby, teaching you how to create branching logic with if, elsif, and else statements. You'll learn to combine conditions using logical operators, set precedence with parentheses, and nest if statements for complex logic. We will also cover the case statement and the ternary operator, providing tools to write clean and efficient conditional logic in your Ruby programs.

涵盖的内容

16个视频1篇阅读材料3个作业

获得职业证书

将此证书添加到您的 LinkedIn 个人资料、简历或履历中。在社交媒体和绩效考核中分享。

位教师

Packt - Course Instructors
Packt
1,186 门课程292,430 名学生

提供方

Packt

从 Software Development 浏览更多内容

人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.
自 2018开始学习的学生
''能够按照自己的速度和节奏学习课程是一次很棒的经历。只要符合自己的时间表和心情,我就可以学习。'
Jennifer J.
自 2020开始学习的学生
''我直接将从课程中学到的概念和技能应用到一个令人兴奋的新工作项目中。'
Larry W.
自 2021开始学习的学生
''如果我的大学不提供我需要的主题课程,Coursera 便是最好的去处之一。'
Chaitanya A.
''学习不仅仅是在工作中做的更好:它远不止于此。Coursera 让我无限制地学习。'

学生评论

4.5

10 条评论

  • 5 stars

    80%

  • 4 stars

    10%

  • 3 stars

    0%

  • 2 stars

    0%

  • 1 star

    10%

显示 3/10 个

ES
4

已于 Mar 7, 2025审阅

Coursera Plus

通过 Coursera Plus 开启新生涯

无限制访问 10,000+ 世界一流的课程、实践项目和就业就绪证书课程 - 所有这些都包含在您的订阅中

通过在线学位推动您的职业生涯

获取世界一流大学的学位 - 100% 在线

加入超过 3400 家选择 Coursera for Business 的全球公司

提升员工的技能,使其在数字经济中脱颖而出

常见问题