DEV Community

loading...
Brandon Weaver profile picture

Brandon Weaver

Ruby, Javascript, Lemurs, Puns, and Art. Aspie, He / Him. Currently Ruby Infrastructure and Frameworks @Square. Opinions are my own.

Work

Frameworks Engineer at Square

All 22 comments

Ruby 3 Pattern Matching Applied: Poker

Then you'll probably like the refactor: gist.github.com/bawea...

Ruby 3 Pattern Matching Applied: Poker

Not really, most of the point of these posts is not always to...

Advent of Ruby 3.0 - Day 03 - Toboggan Trajectory

On 1: Enumerable#count vs Enumerable#reduce you're correct, b...

Advent of Ruby 3.0 - Day 02 - Password Philosophy

Yep, you're correct that filter_map isn't technically needed ...

Advent of Ruby 3.0 - Day 01 - Report Repair

Y'know I always forget about ARGF because of how rarely I wri...

Ruby 3 - Set Literal

[1, 2, 3].any? { 1 } Regarding this, yes, that was the po...

Ruby Descending Order Method

def descending_order(n) n.digits.sort_by { |c| -c.ord }.joi...

Deeper Magics: Monoids in Ruby and Rails

No worries, and the same rules apply as with Medium. Feel fre...

What's your best software pun?

TCP is just SYNACKtic sugar.

An Introduction to Yield in Ruby, and filtering class instances

A few asides before I get into it: You can use ruby after...

A Choice

In my personal case I tend to contribute differently to the...

Binary Gap of a Number

Enumerable in Ruby has a lot of handy methods you may enjoy...

Determining class of an object with case equality operator (===)

Be careful of accidentally using strict equality with === l...

correct horse battery staple

Fun fact: The XKCD site was hacked, and the second most com...

Pigeon Organizer Lab

You may enjoy Hash constructors and what you can do with them...

Enumerate Methods

Want another challenge? Try implementing all of the Enumera...

Are there functions similar to Ruby's `dig` in other languages?

Haskell and other functional languages have Lenses, which a...

Game Tic Tac Toe

The fun thing about TicTacToe is you can derive all the pot...

Decorating Ruby - Part Two - Method Added Decoration

Technically in Ruby there's never a point in which methods ...

Causes - a programming language feature concept

It's possible to write the first part, haven't taken a shot...

Tales of the Autistic Developer - The 10x Engineer

I'm already drafting ideas for such a piece :) It may take...

Ruby 2.7: The Pipeline Operator

I would say this is not a very charitable view of Matz's co...

loading...