PinnedAndrew SmitArray Method Madness: a review of .push() .pop() .shift() .unshift() .slice() & .splice()When I first started out in my coding journey, I found myself getting confused over the differences in common array methods. Taking a…10 min read·Oct 26, 2022----
PinnedAndrew Smit:Why are: colons: :all over: the: place: :in :Ruby ?Explain it to me like I’m 5…4 min read·Feb 4, 2023--1--1
PinnedAndrew SmitDynamically Render Multiple JSX Elements “X” Amount of Times in React.jsI came across a bit of code that solved an important issue for me. There’s plenty of ways we can reuse this code, but for this example, our…5 min read·Dec 6, 2022----
Andrew SmitSeed data with image attachments via ActiveStorageIn my most recent rails project, I had utilized ActiveStorage in my backend so that I can associate pictures with instances of a Post…5 min read·Jun 16, 2023--1--1
Andrew SmitCombining .uniq & .tally in Ruby.uniq is a method that eliminates all the duplicates in an array, returning an array that contains only the “unique” elements.5 min read·Feb 5, 2023----
Andrew SmitPassing Props in React.jsWhen I first started React, I ran into an issue where I misunderstood how information was passed to other components and how the data from…4 min read·Dec 4, 2022----
Andrew SmitUsing .sort( ) on arrays of stringsSince we all hate the recipes blogs that start with a mountain of a story before they show the actual recipe, I’ll start this blog with…7 min read·Nov 26, 2022----
Andrew SmitPassing Arguments to your Event Listener’s Callback FunctionWhen declaring an event listener, we need to provide the event listener with two arguments; “what to listen for” and “what to do when it’s…4 min read·Nov 18, 2022--1--1