Ancestors

Toot

Written by Nate Hopkins on 2025-01-24 at 19:26

Ruby's predicate (?) and bang (!) methods make code speak for itself:

empty? → returns boolean

sort! → mutates, danger ahead

vs:

isEmpty() → less expressive

sortInPlace() → verbose

Language design choices like this make Ruby a joy to write.

=> More informations about this toot | More toots from hopsoft@ruby.social

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113884974072213861
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
245.590954 milliseconds
Gemini-to-HTML Time
0.437171 milliseconds

This content has been proxied by September (3851b).