Articles:  VMWare review  Useful software

This weblog has moved! You shall get redirected. If not, please just go to a new place yourself: blog.kowalczyk.info

Krzysztof Kowalczyk's Weblog
Blog or you'll be blogged.


daily link  Friday, August 02, 2002


C Interfaces and Implementations. Finished reading C Interfaces and Implementations. Another one down, millions more to go. Good advanced book on C that mostly wants to teach how to design (and implement) good, re-usable interfaces. It does that by showing full design and implementation of 24 interfaces (e.g. better memory allocation primitives, better string-handling primitives, lists, dynamic arrays, bit vectors, sequences, threads, etc.). The book is not about analyzing/designing algorithms or data structures but about practical issues of how to design good interface (which is surprisingly hard). The book is very to the point (doesn't have the flowery prose of many O'Reilly books, which for some might be an advantage and for some a disadvantage). Two tips from the book (there are many others) worth remembering:
  • the only way to get good performance is by profiling. Always prefer a clean code over what you think is more efficient code. First you might be wrong (as most people are) and second you might not need the speed in the first place (if you speed up by 100% code that only takes 1% of total execution time, you'll improve total execution time by only imperceptible 0.5%).
  • use assert() generously (but beware of stupid mistakes)
   permalink  

 
August 2002
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Jul   Sep


Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

pine street



Copyright 2002 © Krzysztof Kowalczyk.
Last update: 9/20/2002; 11:48:02 PM.