/micro_blog
jan 17, 2026
microphone check 1 2 what is this
jan 15, 2026
JavaScript gets a lot of garbage, so I feels kinda cliche to complain about it, but its entirely deserved. Take reversing an array for example: reverse() mutates the array, while toReversed() returns the changed array. toReversed() was implemented years after reverse(), and there is no way to tell its any different without looking to the docs. To reverese a string in Ruby, you use reverse, which returns the reversed string/array. To use a mutative version, use reverse!. This style of using a bang to mark dangerous and safe versions of a method is consistent across the language. This allows devs to have an intuitive understanding of how a method works based off its name. It just feels so much more 'thought out' than JavaScript.