aristotelesbr

@aristotelesbr@ruby.social
55 Followers
87 Following
240 Posts
Desenvolvedor, filósofo do ruby, apaixonado pelo cosmos, resolvo problemas e faço coisas rodarem na web. Canhoto após adulto. 👾
Abouthttps://aristotelescoutinho.com.br
O que é considerado "natural" para muitos, pra mim exige esforço extra e se tem algo que aprendi é que a verdade incomoda quando não segue o roteiro social. Às vezes só queria um manual para: "não faça isso", mas aí eu lembro que tem gente que me ama justamente por ser assim. 😅🥲🤣
Você não é maior porque tem mais, só tá mais longe de lembrar de onde veio.
Python is the biggest frontend for C that exists?

TIL: You can pass modifies to generators using curly braces. For example, create a decimal column with precision and scale 🤩

#ruby #rubyonrails

Here are two elegant approaches to extract values: one assigning at match time and another using pattern matching from Ruby version 3.2. Tks Nobu and Jerimy Evans. 🚀 #Ruby #Coding #PatternMatching
Starting from version 3.2, pattern matching in #Ruby has been refined. For the example I shared, the correct match is for 3 elements, not 4, using the MatchData#deconstruct method. Thus, I don't consider this approach valid. 🧶
@caleb I find the quirky behavior of some declarations really interesting. For instance, constructs like def | are allowed, whereas |> is understood as two separate operators. 😄

@svoop @jeremyevans0

thanks for your insight! I was using Ruby 3.1 and wasn't aware of that behavior.

why is it not possible to define methods as "|>" in #Ruby ? 😶