As Objective-C developers, we often forget that we can overload functions by return type. This can often help us create neat APIs. This is best illustrated by an example.
Sometimes we want to format some JSON. Here’s an easy way to set up a Service in Automator to make this easier.
We frequently (excuse the pun) need to schedule a repeated action.
Another problem from This year’s Google Code Jam.
I got through the qualification round for Google Code Jam 2014. I usually manage to get through this stage; it’s the first round that I haven’t managed to get past yet.
When this blog was created using Octopress, a new post could be created by
rake new_post in the Terminal. There is no such convenience in
Hakyll, which is currently used as the generator. A small thing, but I wanted to
This is how I roll, you might choose a different path.
I’m sure you’ve been there.
A short video from a live demo of Emacs from Web Rebels in Oslo 2012.
I read somewhere that part of the popularity of The West Wing was that it was entertaining to watch smart people solve difficult problems. I think that’s part of the reason why I find watching live coding videos so entertaining - It’s more fun to watch someone solve a problem than doing it yourself.
A while ago I answered a couple of questions on Stack Overflow using my
.gitignore file as an example. I find it strangely satisfying to find that
there are projects on GitHub that use it, and even the odd blogs has put it up
Sometimes you want to test your localisations but you don’t want to go through the hassle of changing the settings on the simulator, or device, or your Mac for each one. There’s always the fear of setting some language that you don’t understand.
It came about that I wanted to do some work with git and signed tags. It’s been a while since I had looked at this, I’ve got some old entries up on keyservers that date back to 1999, and never on a Mac.
“A coding dojo is a safe place to deliberately practice and develop your coding skills.”
You may have occasion to rename an Xcode project.
On New Year’s eve, Dámasa asked me to calculate some fraction of a fraction and provide the answer as a fraction in eighths. The post had just arrived so I flipped over an envelope and started working it out.
We all know what we should be doing when writing code. Each methodology you choose to use has its own best practices, whether it’s working from full specifications, writing unit tests first, programming in pairs, yadda, yadda. But, as developers, we’re only human, and we’re lazy. We have tools to make things easy for us. Here are a few tips that you can use to help when you’re not as rigorous in your coding as you should be.