📜 ⬆️ ⬇️

Ruby Programming Tutorials - Classes Continue

On Saturdays, at 15:00 MSK, free remote Ruby programming lessons for schoolchildren and students are held. The course is designed for beginners to learn programming and can be considered as an introduction to programming in general. The complexity of the presentation and topics are largely determined by the audience of the course. Under the cat read about our progress

In the last 4 lessons we managed to do the following:
* Found out that Ruby is an object-oriented language, and got to know the classes Fixnum, Bignum, Float, String, Array, Range, Hash
* Derived multiplication table
* Wrote a method that calculates the sum of digits of a number in any number system
* Calculated 100!
* They wrote their own implementation of the Range class (the MyRange class) and mixed it with an Enumerable admixture
* Added sum and product methods to all containers
* Added, multiplied and divided rationally complex numbers with absolute precision
* Found out about container methods (Enumerable) each, map, select, all ?, any ?, inject
* Understand the difference between sort and sort !, uniq and uniq !, succ and succ!
* Understand why there is no ++ operator in Ruby
* Learned how to do split and join and walked a bit over regular expressions.
* We tried to understand what is the block associated with the method and touched the lambda

Broadcast will be carried out using VNC (desktop) and VLC and Mumble (voice) . You must register for free on the cde.ru website in order to gain access to the Mumble virtual audio room, where my voice will be heard and everyone can ask questions.
')
The course is still waiting for new listeners. Do not worry that we have passed so much. We will repeat everything, and besides, I try to make each lesson independent.

Do not forget to set the alarm!

Source: https://habr.com/ru/post/109789/


All Articles