Published inJavaScript in Plain English·Jul 15, 2021Use JavaScript Sets to Return Unique Elements from ArrayUsing The JavaScript Set Constructor to Return Unique Elements From an Array — A Set is an iterable object that holds a collection of unique values. An array is also an iterable object that holds a collection of values, but the values in an array do not have to be unique. We can use the Set constructor to create a new Set from…Programming3 min readProgramming3 min read
Published inJavaScript in Plain English·Jul 11, 2021ERDs: Why You Might Want to Consider Using One For Your Next ProjectDatabase schemas can get pretty gnarly and it can be difficult to visualize the relationships between your tables. This can cause some serious time delays and is often a source of frustration during the planning stages. Enter the ERD, or “Entity Relationship Diagram”. ERDs can help us design our schemas…Programing4 min readPrograming4 min read
Published inGeek Culture·Jul 3, 2021Consuming GraphQL APIs in Ruby Without Additional LibrariesConsuming GraphQL APIs in Ruby Without Additional Libraries With GraphQL you can query a single endpoint and get back exactly the data you need. Nothing more, nothing less. Sounds nice right? It gets better! If you are currently consuming a regular ‘ol REST API and they also happen to have a GraphQL API available, you can massively reduce…Programming5 min readProgramming5 min read
Published inJavaScript in Plain English·Jun 25, 2021Recursion 101: What is a Recursive Function?Simply put, a recursive function is a function that calls itself inside of itself until a condition is met. In most cases, when using JavaScript, it is best to use iteration rather than recursion since JavaScript is not optimized for recursion. …JavaScript5 min readJavaScript5 min read
Published inJavaScript in Plain English·Jun 19, 2021How I Would Approach and Solve this Classic Technical Interview QuestionBeing watched and analyzed while you attempt to solve a problem you have never seen before can be pretty intimidating. Especially when whether or not you land the job depends on it. In this Article we will take a look at one variant of a classic technical interview question. …JavaScript7 min readJavaScript7 min read
Published inJavaScript in Plain English·Jun 11, 2021How to Resize an Input Box to Avoid Overflow in a Functional React FormLast week I wrote a very similar article on how to resize the text to fit an input box with static dimensions. This week, we will look into resizing the input box to fit the text. It’s too bad that neither has a pure CSS solution, but it can easily…Programming5 min readProgramming5 min read
Published inJavaScript in Plain English·Jun 6, 2021Resize Input Text to Avoid Overflow in a Functional React FormI can think of several cases where being able to change the font size to fit the dimensions of an input field would come in handy. In fact, It’s very surprising to me that this is not something already baked into CSS. …JavaScript5 min readJavaScript5 min read
Published inJavaScript in Plain English·May 30, 2021Using a Pure JavaScript Library in React: Utilizing Information from the Library to Re-Render a ComponentA pretty common theme in my articles is the proper way to use state and/or state hooks. Mutating state directly is a big no-no. If we mutate state without creating a new object, we can lose functionality and cause some strange behavior.JavaScript4 min readJavaScript4 min read
Published inJavaScript in Plain English·May 23, 2021How to Build an Analog Clock Using HooksLooking to class things up with an analog clock? Well, you have come to the right place. In this article, we will look at one way to build a simple analog clock in React using functional components. …Web Development5 min readWeb Development5 min read
Published inJavaScript in Plain English·May 2, 2021Using Hooks to Create a Live Search Feature in ReactWho doesn’t love a nice live/instant search feature? They save the user the hassle of typing out the full query and they can be especially useful when trying to find something in a list that has already been populated. In this article, we will set up a live search for…JavaScript4 min readJavaScript4 min read