Lessons learned the hard way

Photo by Marty Southwell on Unsplash

The Problem

I ran into a problem where I wanted to create an ecto query that would nest an and/or statement inside my where clause. If you don’t understand that it's probably because it's hard to put into words…


Photo by Torsten Dederichs on Unsplash

The Problem

I needed to select all items from a database that had a jsonb array column that contained a string…


Build your project’s own component library

Photo by Filiberto Santillán on Unsplash
  1. Common logical components


Photo by DDP on Unsplash

npm install from a git repo

Photo by Dayne Topkin on Unsplash


Photo by Bernard Hermant on Unsplash
Apple apple…

A continuation of the game you play on your own right here, in this piece

Photo by Carl Raw on Unsplash

1. (True/False) Functional Arguments (Numbers, Booleans, Strings, Null, and Undefined) Are Passed by Reference

2. (True/False) Consider the Following Code, Do the Comments Represent the Correct Output?


A tutorial for writing a simple authentication React Hook

Photo by Artem Sapegin on Unsplash

Get Your Context Set Up

This isn’t too hard. If you’re on the latest version of React, then you should have Context…


The game you play on your own right here in this article

Photo by Sebastian Davenport-Handley on Unsplash

1. What Does the Following Code Console Output?

var bar = null;console.log(typeof bar === "object");

2. What Does the Following Code Console Output?

(function(){
var a = b = 3;
})();

console.log("a defined? " + (typeof a !== 'undefined'));
console.log("b defined? " + (typeof b !== 'undefined'));

3. Everything in React Is a _______ .

a) Module


Using the best date library in the world

Photo by Chad Kirchoff on Unsplash

.add()

moment().add(Number, String);
moment().add(Duration);
moment().add(Object);

Number and string

Avery Duffin

Im a software engineer, react developer, inventor, salesman, family man, religious, and outdoor connoisseur

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store