Open in app

Sign In

Write

Sign In

Brad Dunn
Brad Dunn

469 Followers

Home

About

Pinned

Documenting Javascript Projects

With JSDoc, Flow, and Documentation.js — We all (hopefully) know how important good documentation and reference material is to a successful software project. Without good documentation, a particular library may be next to impossible to use. Without a reference to how different components and methods work in isolation, let alone examples of how all the different…

JavaScript

6 min read

Documenting Javascript Projects
Documenting Javascript Projects
JavaScript

6 min read


Sep 10, 2021

Use CSS Sprites — This is one of the easiest ways to reduce the number of server calls. Instead of loading ten individual images to the site, sprite loads one single image file combined using a collection of images. You can use background-image and background-position properties in CSS to display the desired image segment. By doing this, you’re reducing the number of server requests required.

9 Best Practices for Optimizing Frontend Loading Time
1K
4

Nethmi Wijesinghe

Is this still the recommendation with the advent of HTTP/2, and HTTP/3 on the horizon?

Is this still the recommendation with the advent of HTTP/2, and HTTP/3 on the horizon? My understanding is now it is preferable to have lots of smaller, individual assets. It might be worth revising or clarifying this section because it's no longer true that you should reduce the number of requests above all else if you are also adopting HTTP/2. Here's a good article that gets into the "why" behind this not necessarily being a best practice anymore.

1 min read

1 min read


Apr 17, 2018

To Library or Not to Library

Things to look for when auditing a new dependency for your project — There’s an old adage that states the best programmers are lazy. This idea was likely first introduced in the classic article “Why Good Programmers Are Lazy and Dumb” by Philipp Lenssen. In the article, Philipp outlines why a ‘lazy’ (and ‘dumb’) programmer is desirable, specifically: Lazy [is desirable], because only…

Open Source

5 min read

To Library or Not to Library
To Library or Not to Library
Open Source

5 min read


Feb 20, 2018

Quick & Dirty Scripting

Scratch an itch without over-engineering a solution — I’m not sure where I heard this originally, but I’ve always been a believer in the idea that an engineer’s greatest asset is laziness. On its surface, this seems like a terrible philosophy to live your professional career by — and it would be, if taken at face value. However…

Vagrant

7 min read

Quick & Dirty Scripting
Quick & Dirty Scripting
Vagrant

7 min read


Jan 30, 2018

Create a List of Toggle-able Settings in JavaScript

A bite-size blog post on a JavaScript problem I could not Google. — On a recent project I was playing with I had a need for maintaining a list of settings that had an on/off or true/false nature to each list item. Although I ultimately found what I needed buried in a few code snippets on the React Native documentation, it took me…

JavaScript

3 min read

Create a List of Toggle-able Settings in JavaScript
Create a List of Toggle-able Settings in JavaScript
JavaScript

3 min read


Jan 23, 2018

Computer: Start Dictation

This article was dictated with voice. Impressed? — Usually I would consider myself to be a good faller. Being tall and gangly, im alway tripping over something or accidentally knocking something over. Words like graceful are not usually used to describe me. …

Artificial Intelligence

4 min read

Computer: Start Dictation
Computer: Start Dictation
Artificial Intelligence

4 min read


Dec 5, 2017

Tooling in React Native / Javascript

All the little goodies that make development in javascript less of a PITA. — Javascript is an extremely powerful and flexible language, but it’s no secret that the language has a bit of well-deserved notoriety for being a little — shall we say — fast and loose when it comes to receiving and interpreting feedback when things go wrong. If you are lucky, you…

JavaScript

8 min read

Tooling in React Native / Javascript
Tooling in React Native / Javascript
JavaScript

8 min read


Nov 14, 2017

Programmer === Student

Learning is part of the job description. — You just completed your computer science degree. Or maybe you are transitioning from another career via a 12-week bootcamp. Let’s assume all went well during your interviews, and you’ve just landed your first job. Congrats! You have arrived! Finally you are no longer a student — you are a professional… …

Programming

4 min read

Programmer === Student
Programmer === Student
Programming

4 min read


Oct 24, 2017

Take a picture, it will last longer

Demystifying snapshot testing in Javascript with Jest. — At 4Thought Studios, we use javascript extensively on our early-stage project Epochly. Our project is built using the React Native project maintained by Facebook’s engineering team. Naturally, we also took a look at their offering for testing in javascript called Jest. Jest is a wonderful product, and is truly standing…

JavaScript

4 min read

Take a picture, it will last longer
Take a picture, it will last longer
JavaScript

4 min read


Oct 3, 2017

Better Modals in React Navigation

An annoying design problem with a reusable solution. — Update: It’s been brought to my attention that this (admittedly hacky) approach stopped working on the newest versions of React Navigation. This was always a stop-gap, so I expected this approach to eventually fail. That being said, Jaiwant Mulik came up with a solution that works on React Navigation v1.1.2…

JavaScript

5 min read

Better Modals in React Navigation
Better Modals in React Navigation
JavaScript

5 min read

Brad Dunn

Brad Dunn

469 Followers

Tech dude.

Following
  • Darius Foroux

    Darius Foroux

  • Tim Denning

    Tim Denning

  • MIT Media Lab

    MIT Media Lab

  • The NYT Open Team

    The NYT Open Team

  • Sjoerd Nijland

    Sjoerd Nijland

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech