By Unknown Sabtu, 10 Mei 2014 BSD bugs compatibility Library Optimization Portability Copying code != Copying implementation A little over a week ago, I wrote an article about some common porting mistakes for a new library - LibreSSL. I've since received multi...
By Unknown Minggu, 27 April 2014 bad code bugs c99 compatibility good code language Library open source Optimization Portability pure failure strlcat strlcpy LibreSSL: The good and the bad OpenSSL & LibreSSL OpenBSD recently forked the popular SSL/TLS library OpenSSL into LibreSSL . Most of the reaction to this that I...
By Unknown Selasa, 02 April 2013 API binary C++ 2011 C++-0x compatibility file descriptor files Function Pointers good code insane ideas lambda functions language Library Optimization Portability protocols Designing C++ functions to write/save to any storage mechanism Problem A common issue when dealing with a custom object or any kind of data is to create some sort of save functionality with it, perhaps w...
By Unknown Selasa, 29 November 2011 API competition files GCC Optimization Reading in an entire file at once in C++, part 2 Last week I discussed 6 different methods on how to quickly get an entire file into a C++ string . The conclusion was that the straight forw...
By Unknown Selasa, 22 November 2011 API competition files GCC good code insane ideas Optimization How to read in a file in C++ So here's a simple question, what is the correct way to read in a file completely in C++? Various people have various solutions, those w...
By Unknown Minggu, 16 Oktober 2011 API code search Google Optimization pure failure searching Goodbye Google Google announced they're shutting down Code Search . I found Google Code Search to be invaluable in the kind of work I do. I saved tons...
By Unknown Minggu, 19 September 2010 bad code directory file descriptor fstatat good code Hashing language Library open source opendir Optimization readdir searching sorting torture Optimizing your file dialog Recently, someone asked me why is it that the custom file dialogs in some programs I wrote are able to load a file list so much faster than ...
By Unknown Sabtu, 24 Juli 2010 factory Function Pointers good code insane ideas Optimization parameters types Simplifying bootstrapping for virtual constructors Last week I demonstrated a solution to the virtual constructor problem. My solution avoids many issues with the factory function solution. ...