Archive for the ‘Software Development’ Category

C++ Programming Tips

Saturday, April 25th, 2009

Apart from having the discipline to always do things properly, these are the top 10 principles and concepts I think anyone who wants to be a truly excellent C++ programmer should adhere to and use: Object Orientated Designs Design Patterns Standard Libraries Templates Descriptive Names Const Correctness Values, References and Pointers Namespaces Embedded Documentation Avoid [...]


Code completion (IntelliSense) for C++ in Vim with OmniCppComplete

Friday, March 20th, 2009

C++ autocompletion is possible with VIM. This is officially the coolest tech discovery I’ve made this year. And it’s easy to setup. Here’s how to configure C++ IntelliSense for Vim, with an example that demonstrates how to enable code completion for the the C++ Standard Template Library (STL). 1. Download You need the following: Vim [...]


How to insert the output of a command in VI

Friday, February 27th, 2009

To insert the output of a command (e.g. ‘ls’) below the cursor, type: :r !ls or :read !ls


How to insert the contents of a file in VI

Friday, February 27th, 2009

To insert the contents of a file called /tmp/myfile.txt below the cursor, type: :r /tmp/myfile.txt or :read /tmp/myfile.txt