April 2011
35 posts
The Gamification of Twitter →
An in-depth look at how the ‘gamification’ of apps in recent years is designed to get users to keep coming back.
3 tags
The Startup Kids - Documentary About Web... →
Can’t wait to see this. First project I’ve seen on Kickstarter that motivated me enough to sign up and donate to something.
4 tags
Interface Segregation Principle (SOLID Part 4)
Part of my SOLID programming principles series.
What Is The Interface Segregation Principle?
The interface segregation principle states that interfaces should be broken up in a logical manner, and that complex objects should use multiple interfaces.
Benefits
The benefits of this principle is that is allows people to use only the parts of objects that they need, and can prevent having to...
2 tags
Generating Backgrounds with Prime Numbers →
AMAZING concept. Great way of using math to make something beautiful.
Spirograph Math →
Try -116, 65, 118
find any other cool ones?
Question Your Work →
7 tags
3 tags
Tumblr and a Blog?
I’ve been writing more long-form pieces lately (like this one) and it’s got me thinking. Is the tumblr the right avenue for content like this, or should I look into having a more ‘traditional’ blog instead?
jonbeckett: More annoyances →
jonbeckett:
The Tumblr API does not return the avatar image URL of a user, their home address, or their bio
The Tumblr API does not allow you to retrieve those you follow
The Tumblr API does not allow you to retreive those following you
Sure, there are ways of working around all these things, but it’s…
If anything this is going to make APIs more common. Why bother writing clients...
2 tags
3 tags
Introducing Test-Driven Development with Rails 3 →
JQuery 1.5.2 released →
3 tags
*Nix Quick Tip: Operate on Multiple Files
learning a bit of bash scripting and getting familiar with the command line can make a lot of actions simple, and allow you to automate tasks. I’ve been working on improving in this area, and here is a nice little trick I’ve found recently.
Firstly, here’s a way to get a list of files in a directory, with only the filename on each line:
ls -l | awk '{print $9}'
you can use...
March 2011
32 posts
If I waited to know “who I was” or “what I was about” before I started “being...
– Austin Kleon - “How To Steal Like An Artist (And 9 Other Things Nobody Told Me)” (via allisonweiss)
3 tags
4 tags
Using Composition Instead of Inheritance
Favoring Composition over inheritance is a quote from the gang of four book about design patterns. Today I want to take a another look at the TeaPot class example I used when talking about the Open/Closed principle.
To review, here is how our object was structured in the previous post.
TeaPot Class
class TeaPot() {
function TeaPot() {
//constructor
}
function makeTea() {
...
4 tags
Liskov Substitution Principle (SOLID Part 3)
Part of my SOLID programming principles series.
What is the Liskov Substitution Principle?
This Liskov Substitution Principle states that you should be able to replace any object with a sub class of that object and have all of the code still function properly. Any code that uses these objects does not need to know or care what it is getting passed.
Benefits
The benefits of this principle...
3 tags
Tangentially — it’s amazing how many people say exactly this and...
– -Peter Kastings from the Google Chrome development team, in response to someone thanking them for keeping Chrome simple.
read the rest of the Q & A over on reddit