Justin Duke

Creating Hacker News Share Links Seeded with a URL and Title

I was building out simple share links for a client a while back; they’re a technical client, so a lot of their content makes more sense on Twitter and Hacker News than say, Facebook. Hacker News is a great source of traffic and engagement from a hyper-technical audience, but its sharing ecosystem isn’t super baked out: we wanted a way to pre-seed a link submission with a URL and title, but couldn’t find an obvious way.
Read more →

Floradora

Last week I released Floradora! It’s a tiny little Mac menu bar app. This gif explains it easier than words: In case you don’t get the gist immediately: it’s a thing you click on to get a text box to send yourself emails. It’s basically Captio for Mac. (As a sidebar: if you don’t already own Captio, buy it immediately. It’s tremendously useful.) Why I made it So I’m going to basically lift the product description I used for the iTunes Store, because it’s both folksy and accurate:
Read more →

Notes for a younger programmer

(A living document.) If you are faced with a question to which you don’t know the answer, spend fifteen minutes looking for the answer yourself. Then ask someone else. There is no shame in asking questions. There is a great deal of shame in being too proud to ask questions. Always leave a codebase cleaner than you found it — whether it’s adding documentation, cleaning up syntax, or fixing an edge case.
Read more →

Packing as premature optimization

You are getting ready for a trip to Florida. It’s your first vacation in forever, and you couldn’t be more excited; no work, no stand-ups, just a week of sun and relaxation. You’re even going to pack your bags a day in advance, that’s how excited you are! Your flight is on Tuesday, and usually you end up making a game out of how much stuff you can fit in your weekender before the Uber reaches your apartment; but its a Monday evening, and you’ve finished cleaning your apartment and you’ve got your bags out on the table and everything.
Read more →

Your legacy code matters

Craig Hockenberry tweeted about some stuff a couple nights ago: That site was built with using 1997’s state-of-the-art HTML and CSS. Eighteen years later, it still renders as we intended. — Craig Hockenberry (@chockenberry) November 18, 2015 On the other hand, an app I wrote in 2008 can no longer run on any device or OS version. It’s completely lost to time. — Craig Hockenberry (@chockenberry) November 18, 2015 There’s a whole generation of young iOS developers who don’t lament leaving a legacy of work.
Read more →

Liquid trinkets

I’ve been messing around with a lot of Shopify development the past couple months. It’s a pretty neat platform that I want to talk about more in depth at some point in the future, but the number one cause of frustration 1 is dealing with Liquid, their in-house template rendering engine which seems to pride itself on straddling the line between “holy shit this is awesome” and “holy shit why can’t you do this basic task.
Read more →

Automating App Store screenshots

Things I knew would be bad about iOS development, going in: XCode. App Store’s draconian policies 1 A general malaise accompanied by glancing longingly at old stylesheets, as if they were photos of spurned ex-lovers Things that I did not know would be bad about iOS development, going in: Spending three hours per version taking goddamn screenshots. Seriously, up until recently, this was my workflow:
Read more →

Markdown in Swift

A thought process I had last week: Man, it would be great if I could write descriptions for Barback in Markdown. Wait, maybe I can. There are Markdown compilers for everything, right? Wait, what would it even compile to? HTML? An NSAttributedString? How would that work? Blargh. Let’s just Google things and hope for the best. But for you, reader dearest, I have compiled my solution. It is thoroughly unexciting and likely suboptimal.
Read more →

Simple empty states for UITableViews

Even if you’re not familiar with the term, you’ve probably run into empty states before in apps you’ve used: img { width: 40%; margin-left: 5%; margin: 1em; } It’s a nice little detail that accomplishes two goals: It’s a nice little detail that tells your users you care about the nice little things. It’s a nice little detail that tells your users that they don’t have to spend five minutes waiting for a screen to load because there’s just nothing there.
Read more →

Using webassets with Pelican

If you are like me, you are an idiot. More specifically, you are an idiot about how to handle static files with Python stuff – compiling your SASS, minifying and gzipping your jank, uglifying your javascript, all of that stuff. Until very recently, my process of compiling of all of that stuff prior to pushing it for S3 for Film Scripts Online, one of my new Pelican projects, was something along these longs:
Read more →
© 2017 Justin Duke • All rights reserved • I hope you have a nice day.