Process

I’m definitely a visual thinker/learner (close second to audio learning style), and I also love to map a thing out ahead of time so I don’t have to track it in my brain.

Sometimes that means that if I’m breaking things down into components that I make some wireframe-y sketches! to Here’s a couple of examples of how that looks, from a thing I worked on this weekend:

two-page notebook spread with wireframe sketches done in ink single notebook spread with wireframe sketches done in ink

Bonus: I get to use my fancy fountain pens!

10/6/2019 · process · front-end · sketching

Whoa ImageMagick!

Holy whoa this is cool: by using ImageMagick’s command line interface, you can combine images using terminal commands like:

convert +append a.png b.jpg c.tif

This is super cool if you don’t feel like fussing a ton with Preview.app, or worse, launching Photoshop, etc., OR if you need to convert to a different image type (note the different extensions, above).

I used it today becaue I had a few screenshots I wanted to combine and markup for posting in an pull request. Instead of having to do all that manually, I did this:

convert +append form1.png form2.png form3.png form-all.png

…and then marked up the new image (which was form-all.png) by just by hitting spacebar in Finder and using Markup.

Easy Peasy!

I learned about ImageMagick by Googling combine three images preview mac osx which led me to StackExchange).

I installed it with brew install imagemagick; this led to an error message (Permission denied @ dir_s_mkdir - /usr/local/Frameworks), which was resolved by Googling the Error message, which took me here.

Just a small glimpse into the way that anything involving web dev is time consuming. 😀

Happy combining!

28/5/2019 · errors · command line · quick tutorial · tools

Literally speaking

Yesterday I put in a pull request for the framework that we use at work. It was related to an issue I’d submitted; namely, that I wanted to be able to send folks style guide links to specific variants of components we build.

Building this had a lot of codey type things in it:

// for permalinks to examples
const exampleName = example.name;
const exampleNameNoSpace = exampleName.replace(/\s+/g, '');
const exampleLink = `#${exampleNameNoSpace}`;

However, I did it!

You see, when you look up examples for using these sorts of expressions, programmers like to use variables (like str for string) that feel like they mean more than they do. So many examples used str.replace(/\s+/g that I thought it meant something important. Nope! This was just convention, used by many folks, but not necessary.

And hey, it worked!


One of the main things I had to figure out is how .jsx — combined with the linting we use — would want me to combine the # needed for an anchor link on the same page with the exampleNameNoSpace variable I’d created above it.

These are template literals,” and though I could have concatenated the two parts, ESLint wasn’t having it. The cool thing is that the linter’s warning taught me a new thing I needed to know.

So yeah! That’s what I learned yesterday. How bout you?

31/1/2019 · learning · coding

Hello, World!

This thing looks pretty swell. Let’s see how it goes!

27/12/2017 · hello

View the archives