Andrew Scripts

Musings about Programming and Programmer Life-Skills

Category: Programming

My One-Way Git Workflow (or, How to Git Well)

There are a lot of git workflows out there. This is mine, based on working with Git for 10-something years now. It makes use of git rebase, so turn away now if you’re scared of rebasing (and then go read this and realize it’s just another tool). BONUS: be sure to check out my handy git helpers too!

Read the rest of this entry »


Mock Response – One Thing Well

Mock Response

Great little service that lets you ask for any HTTP status code response you want, to enable testing for different conditions. Also has a great list of all of the different HTTP status codes.

via One Thing Well

Prism: An awesome new syntax highlighter | Lea Verou

Introducing Prism: An awesome new syntax highlighter | Lea Verou.

Lea Verou is essentially the CSS goddess of our times. This blog post highlights the syntax highlighter she made for Dabblet. Among the many highlights is the ability to extend the highlighting for pretty much any language you’d want, and this little gem:

I decided not to support IE8. Prism won’t break on IE8, it just won’t work. I don’t think many people using IE8 and below are able to read code, so I don’t see the point.

Lazy people innovate – [self animate];

Lazy people innovate

Great article about the power and need for innovation. Why ‘reinvent the wheel’ when you can use what’s already proven to accomplish stuff?

I consider myself and my code to be a bit ‘hacky’. That is, I’d rather cull together bits and pieces of things others have done and ‘make it work’. Part of me has long felt that this is sub-ideal, that to be a truly great programmer I should create everything from scratch.

But creating new things leads to new bugs. Using the tried-and-true leads to fewer bugs. A great programmer doesn’t slave away to make a new framework every time he encounters a new problem. He thinks, long and hard, about the most efficient way to solve the problem. Sometimes that does require something new, but most of the time you can reuse or repurpose what’s already out there.

Here’s to the hackers! To the lazy ones! 😉

%d bloggers like this: