June 2011
28 posts
Jun 30th
20 notes
2 tags
Consequences of writing 135 lines of code, spread...
leonsbuddydave: 3 hours total of section-by-section debugging to find the out of range memory error caused by putting a + where there should be a -. I did something like that today, but it was 12 lines in 1 function, a - where there should have been a ->, and a compiler error that could be tracked down very quickly.
Jun 30th
10 notes
2 tags
Damn Funny Code Comments →
//I am not sure why this works but it fixes the problem. Who was reading my code?
Jun 27th
1 tag
Jun 26th
1 tag
Jun 26th
1 note
1 tag
Jun 26th
1 tag
Jun 26th
2 tags
Jun 25th
CogniFit's blog: Coffee As Brain Food →
cognifit: Our parents always warned us that coffee could stunt our growth or that it cause osteoporosis. Still a report in the AARP Bulletin describes the myriad health benefits of coffee!! Many scientific studies have been done and are being done on the effects of coffee on human health. Only cigarettes have been studied more than coffee. Among the benefits of coffee: It may reduce the risk...
Jun 25th
5 notes
1 tag
Edsger Dijkstra's note on starting array indices... →
For those of you who wonder why programmers like to count from zero.
Jun 21st
6 notes
3 tags
Jun 18th
2 tags
Jun 17th
112 notes
1 tag
Jun 16th
3,470 notes
1 tag
NDA with a side of QB and Haruhi
Today I received the non-disclosure agreement that I’ve been expecting. I haven’t signed it yet (and as such am not covered by it at the time of this writing) as there’s one sentence which is unacceptable. I don’t expect it will take long to figure out if that will be resolved by removing the offending portion or by adding a clause to better protect my interests, so it...
Jun 15th
9 notes
3 tags
Adapting a Timer Class to Qt Quick [PDF 195K] →
Continuing with learning how to adapt existing classes for use from QML, I took the TimerDisplay class from Typica and, with minimal changes, adapted it for such use while also retaining the ability to use it as a data source for the class it previously inherited. This might not be a great class to use for an example as everything the adapted class does could have been handled in JavaScript...
Jun 14th
1 note
1 tag
Jun 14th
1,713 notes
2 tags
“Programs must be written for people to read, and only incidentally for machines...”
– Abelson & Sussman, SICP, preface to the first edition (via spantz) It’s unfortunate that most programs are not written with human readability in mind and, perhaps as a consequence of this, many programmers have never sat down with the code for a non-trivial program and read it in full to...
Jun 12th
10 notes
3 tags
Jun 12th
1 tag
Jun 9th
24 notes
3 tags
Jun 7th
1 note
2 tags
Golden Rules for Bad User Interfaces →
Don’t do this.
Jun 7th
2 tags
For the past few months I’ve had Elements of Programming (Alexander Stepanov and Paul McJones, 2009) next to my bed, the back of its jacket tucked where I had left off reading it. I don’t know why it took so long for me to pick this one back up, but over the weekend I finished reading the last few chapters of this dense, equational treatment of iterator methods. Interesting to...
Jun 6th
Reblog if you are a programmer
joethought: I’d like to follow as many of you as I reasonably can.
Jun 6th
41 notes
3 tags
alert("future is now"); →
hendrixski: We never see that which is closest to us. That is why after all this debating about what the NBL (next big language) will be, we failed to realize that there already is an NBL in our midst. There is a language out there which is: unrivalled in the number of consumers who use applications… an indispensable part of every programmers toolbox running on every platform: Windows,...
Jun 5th
5 notes
1 tag
Jun 5th
8 notes
4 tags
What's Wrong with IDEs?
My comment on that last reblog has a snip about IDEs (Integrated Development Environments) that could probably be taken in the wrong way. I didn’t mean it in any kind of elitist get off my lawn sense. For certain tasks involved in programming, such an environment can be useful and for these tasks I do use them. I’ve found certain tools and techniques for programming that work well for...
Jun 4th
5 notes
3 tags
Coding Tip (Notepad++)
forloop: Windows Coding Tip: If you need to look something up in a code file without loading it up into your full blown IDE then Notepad++ is fantastic, free and open source! Amongst other things it sports the following features… Tabbed documents Automatically reopens tabs you had open last time it was run Syntax highlighting Code folding Line numbering It’s also nice for those of...
Jun 4th
3 tags
Jun 2nd
1 note