May 2013
4 posts
This is probably the most useful resource I've... →
A collection of useful .gitignore templates
May 21st
6 notes
May 20th
155 notes
“The 11 in C++ 11 refers to the number of legs [..] nailed onto the dog whilst...”
– Dylan Beattie Twitter / CodeWisdom: “The 11 in C 11 refers to …
May 20th
10 notes
May 18th
4,462 notes
April 2013
3 posts
Apr 26th
4 notes
Apr 10th
507 notes
2 tags
Unittests should follow the F.I.R.S.T. rules
Fast: test should run quickly. If the method you are testing depends on a time consuming operation, mocking this will speed up the test enormously.
Independent: any test could be run at any time and all test should run in any order. This is probably where mocks help less.
Repeatable: test should be repeatable in any environment and at any time. Stubs are the best friends in this case: not only you can run them in any environment but you can easily reproduce any scenario.
Self-validating: the success of a test should be determined in an automated way. In the case you want to make sure a certain operation has been invoked, expectations are probably the only way to go.
Timely: unit test should be written just before production code. Once again, the impact of mocks is huge! They allow to test methods which depend on code that has not been implemented yet. Even more, they allow to test methods which depend modules that have not been designed at all! By using something that does not exists yet, you can design it from the perspective of the client. In this case the client is the System Under Test. This allows you to design API which simple, easy to use and tailored for the client's needs. This technique is called interface discovery"
Apr 5th
2 notes
March 2013
3 posts
Mar 8th
21 notes
Mar 8th
18 notes
Magic (programming) →
dhotson: slashnull: Single-handedly the greatest page of the entire Wikipedia.
Mar 1st
13 notes
February 2013
5 posts
WatchWatch
Building software is hard. Building high-quality software is even harder. And doing either on a tight budget and increasingly limited time is nearly impossible! Truthfully, there are so many more ways to fail in this industry than to succeed. But failing isn’t always a bad thing. Often times we can learn from our own failures as well as those at other companies. This slideshare...
Feb 28th
4 notes
“Some code will be slower than we want because we don’t have time to optimize it,...”
– Yossi Kreinin (via compilers)
Feb 9th
5 notes
Feb 7th
16 notes
Use long flags when scripting →
dhotson: Pro tip.
Feb 5th
2 notes
12 resolutions for programmers →
dhotson: The title sounds like linkbait, but it’s actually a pretty good list.
Feb 5th
11 notes
January 2013
3 posts
Jan 31st
45 notes
Jan 30th
58,989 notes
Jan 30th
101 notes
December 2012
4 posts
1 tag
“If it stinks, change it!”
– Grandma Beck, discussing child-rearing philosophy
Dec 26th
1 note
“[…] After changing teams about a year ago, I came back to C++. IMHO, C++ is the...”
– http://news.ycombinator.com/item?id=4864254 and wtf is this: Universal References in C++11. I mean I can deal with C, at least that has it’s priorities straight, but I rather live with a bit of performance penalty (in your language of choice) rather than deal with the “sophisticated” so-called...
Dec 3rd
5 notes
3 tags
WatchWatch
Oredev Session: Programmer Anarchy
Dec 2nd
Open Source and Constraints →
dhotson: By Kenneth Reitz.
Dec 2nd
2 notes
November 2012
6 posts
compare php with python, javascript and ruby
php:  $ TRUE ? “a” : TRUE ? “b” : “c” > b javascript:  $ true ? “a” : true ? “b” : “c”  > a python:  $ ”a” if True else “b” if True else “c” > ‘a’ ruby: $ true ? ‘a’ : true ?...
Nov 21st
13 notes
Nov 21st
20 notes
Your team should work like an open source project →
Nov 19th
3 notes
Father hacks Zelda game to make Link a girl for... →
mrmoneda: Maya and I have been playing through Windwaker together; she likes sailing, scary birds and remembering to be brave, rescuing her little brother and finding out what’s happening to Medli and her dragon boat. She’s the hero of the story, of course. It’s annoying and awkward, to put it mildly, having to do gender-translation on the fly when Maya asks me to read what it says on the...
Nov 10th
153 notes
Nov 8th
11 notes
Nov 2nd
2 notes
October 2012
7 posts
Bug
creativeprogrammer: Obscure little bug. Wreaking havoc in my code. During my demo. # You little twerp! Where were you during testing?
Oct 31st
7 notes
Being Geek Chic: It's Ada Lovelace Day - Let's... →
beinggeekchic: Here’s some things you can do to honor Ada Lovelace today: 1. Read some of these personal stories on Finding Ada - a site dedicated to celebrating Ada 2. Learn to code or program - HTML, CSS, PHP - so many options! 3. Listen to BBC Radio’s Documentary on Ada 4. Learn…
Oct 16th
24 notes
“Crash the system every-which-way with failure injection. Build table of error...”
– Twitter / TinyToCS
Oct 15th
“I have a text editor I’ve been using myself that is so complicated it makes VIM...”
– Typical Programmer - Linus Torvalds goes off on Linux and Git
Oct 10th
6 notes
Github is the Social Network of the Future →
Oct 7th
3 notes
Hot Damn!: 10 Things to Expect When You Learn to... →
drewdagostino: When I decided to learn web development, it was for business reasons. I was sick of not knowing what I was talking about. Now, I realize that it’s become much more than that. It goes beyond the new languages, concepts, and opportunities. Coding has changed the way I think -…
Oct 5th
62 notes
When I use git stash
wheningit:
Oct 3rd
30 notes
September 2012
8 posts
Sep 10th
91 notes
“You know you are working on clean code when each routine turns out to be pretty...”
– Ward Cunningham
Sep 7th
3 notes
“Clean Code runs all tests, contains no duplication, express the intent of the...”
– Ron Jeffries
Sep 7th
2 notes
“Clean Code always looks like it was written by someone who cares. There is...”
– Michael Feathers
Sep 7th
4 notes
“Clean Code can be read and enhanced by a developer other than its original...”
– Dave Thomas
Sep 7th
3 notes
“Clean code is simple and direct. Clean Code reads like well written prose. Clean...”
– Grady Booch
Sep 7th
6 notes
“I like my code to be elegant and efficient. The logic should be straightforward...”
– Bjarne Stroustrup
Sep 7th
4 notes
Sep 5th
30 notes
August 2012
7 posts
Aug 23rd
14 notes
Nolan Roberson: Thoughts on being a programmer →
nolanroberson: Don’t be an asshole. Simple code is hard to write. Exquisitely simple code is exquisitely hard to write. Just because it’s easy to understand doesn’t mean it was easy to write. In fact, the easier it is to understand, the harder it probably was to write. There are many ways to do something.
Aug 15th
41 notes
Aug 15th
38 notes
Aug 13th
10 notes
How statically linked programs run on Linux →
How statically linked programs run on Linux
Aug 13th
2 notes
It’s somehow paradox: When you start with programming, you try to omit as much as possible, to avoid errors and fuckups. When you get more experienced, you write your code as verbose as possible for exactly the same reason. 
Aug 9th
1 note
How to get paid to do what you love.
@isomorphisms: Easy. Just love programming.
Aug 6th
63 notes