Longest word length in a sentence

Published On: April 30, 2020 by Ted Martin

I recently had a task that involved finding the word of the greatest length in a string. Think about how terribly tedious such a task would be manually. Gratefully computers …

The Gods, Fate, and Misfortune

Published On: April 20, 2020 by Ted Martin

I've been reading Shakespeare's Commedy of Errors and am struck by Aegeon's sense of 'fate'. Namely, that the gods and the laws of nature stood as an inexorable …

Accidental Global Variables

Published On: April 16, 2020 by Ted Martin

JavaScript accomodates distinctions at the variable level with let and const; they should be used.

However, one is bound to engage with legacy code that still uses var. Beware of …

The MacBook Air 2020: Perfect for Web Development

Published On: April 14, 2020 by Ted Martin

The 2020 MacBook Air is the perfect web development machine. Here is my list of priorities:

  1. Great screen
  2. Great trackpad
  3. Great keyboard
  4. Great build quality
  5. Unix like OS

It also …

Making a Clock with React Hooks

Published On: April 13, 2020 by Ted Martin

I've been working through the documentation at reactjs.org. It is excellent.

However, as an exercise, I'm making anything class based into Hooks.

Under "Main Concepts - State and …

SSH Permissions

Published On: Jan. 6, 2020 by Ted Martin

SSH keys are hard for beginners. They're even harder to move them from one computer to another; often they just seem to stop working. One common problem is incorrect permissions. …

Building your own blog in Rails

Published On: Oct. 14, 2019 by Ted Martin

WordPress is a great Open Source project. It is the right tool for so many projects. Nevertheless, if your seeking to learn more about coding, why not role your own …

Using Gravatars in Rails

Published On: Sept. 1, 2019 by Ted Martin

Gravatars are a great way to show user images in a Rails application. There are gems for adding this functionality but rolling your own solution without adding new dependencies is …