Tony Mai Blog

The Musings of a Growing Developer
js
Feb 0
Feb 0

From Ruby Hashes to JavaScript Object Literals

From the perspective of someone who has a primer on Ruby and jumping onto JavaScript, I noticed something used very often in Ruby that is missing from JavaScript: Ruby Hashes. How can such a powerful data type not exist in other object-oriented languages? If you are also completely new to JavaScript and have the same […]

  Read more
ruby
Jan 0
Jan 0

Ruby Classes, Instances and Inheritance

Launch Your Understanding From 0-60 with Ruby Classes Just as with any object-oriented programming language, class is an important part of Ruby. Everything in Ruby revolves around objects, and all of these objects belong to a class. Unlike in other languages, where each object can have multiple classes, objects in Ruby can only belong to […]

  Read more
work
Jan 0
Jan 0

Drug Addiction in the Tech World

“People graduate to doing things that they never thought they would have done.” – Michael Johnson While doing some research on cultural problems facing the tech world, I found all kinds of issues that are common: women in technology, brogrammers, sexism and sexual harassments, lack of diversity and cultural awareness, lack of respect for public […]

  Read more
enumerable-map
Jan 0
Jan 0

A Tear-Down of the Enumerable map Method

What does map do? Here is the map method: map { |item| block } And here is what it returns: #=> new_array Essentially, map is an Enumerable method that runs a code block once for each element of the object and returns a new array of of the results of the block. If you’re just […]

  Read more
mindsets
Jan 0
Jan 0

Learn More Effectively – Maximize on Your Personal Thinking Style

The Concrete Sequential Thinker’s Journey If you are unfamiliar with Anthony Gregorc’s Mind Styles Model, it is an organized way that aims to show how our minds think. The model breaks down the way we think into two perceptual qualities (concrete and abstract) and two ordering abilities (sequential and random), totaling to four different combinations […]

  Read more