Тёмный

Andrew Novikov - Threads, callbacks, and execution context in Ruby 

Ruby Australia
Подписаться 1,6 тыс.
Просмотров 134
50% 1

When you provide a block to a function in Ruby, do you know when and where that block will be executed? What is safe to do inside a block, and what is dangerous? What is a block, after all? Blocks in Ruby are everywhere, and we’re so used to them that we may even be ignorant of all their power and complexity. Let’s take a look at various code examples and understand what dragons are hidden in Ruby dungeons.
Ruby programmers usually don't need to think much about blocks… until they have to. As a contributor to Ruby gems that have callback-based API for developers, I've found that internal implementation details of these gems affects how these callbacks are executed and resulting behavior can be quite surprising sometimes, and I think that good Ruby developer should know inner workings of blocks to better understand execution flow of complex Ruby programs.

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
One billion rows in Ruby - Rian McGuire
41:34
ВОТ ЧТО МЫ КУПИЛИ НА ALIEXPRESS
11:28
Master Multithreading : Thread Pool In C++
20:19
Просмотров 9 тыс.
So You Think You Know Git - FOSDEM 2024
47:00
Просмотров 1,1 млн
Is it concurrent or parallel?
3:48
Просмотров 22 тыс.
ВОТ ЧТО МЫ КУПИЛИ НА ALIEXPRESS
11:28