Tips and Tricks

  • We present a list of programing tips and tricks. With these tips users can increase their productivity on the computer programming and make their overall computer experience a lot more enjoyable. This section will grow over time as new entries are added and current entries updated. We will cover a wide range of topics in C++ programming applied to scientific programming. You are welcome to bring your own suggestions
    This page is an on-going work in progress and will be updated periodically, stay tuned.

C++ scientific code snippet

Tips and Tricks

An example of how STL (Standard Template Library) can be used to write scientific code. In our programming environment we make an extensive use of this kind of technique. From our experience, it helps to write better code that is easier to understand and less error prone.

Basic Things worth Knowing About Bind Adapter

Tips and Tricks

C++11 added a new adapter called bind (bind1st and bind2nd are now deprecated since C++11). I give some hands-on examples of everyday life usage as a scientific programmer of this adapter.

Creating Pair of Objects Using Boost Range and Lambda

Tips and Tricks

We present a little example of the use of boost range and the lambda expression, supported by C++11, that show manipulating range is made easy and don’t need extra programming of function for simple task.

Usage of Boost and STL in Scientific Programming

Tips and Tricks

I present a mathematic algorithm taken from our scientific programming environment. It demonstrates that by using concepts borrow from Boost and STL as well as new features of C++11, we can write clean code that is easy to maintain and to understand.

clients and partners

Autolog