This is my first attempt to experiment with concepts in C++, and yes, it’s amazing. So far, most of us we use templates, and this helps us to write modular and clean code without repeating ourselves. It’s always nice to start with a simple example and say that we want to write a function that
Sometimes you need to clean up the task by performing a final step before the node closes. For example, when we have a hardware interface and send move commands to the wheelbase, we need to send 0 velocities after the termination of the spinning while loop to stop the robot. In python and more specifically
Virtual functions and the magic of calling the correct version at run time, correct? How does it work? This is just a very draft explanation and by no means an extended detailed one. So, the compiler converts the name of the virtual function into an index into a table of pointers, which is called the
Doxygen is the de facto standard tool for generating documentation from annotated C++ sources, but it also supports other popular programming languages (we want Python as well). As in every other software tool, the best way to learn it is starting to use it in your everyday life. There are many examples and tutorials online.
Many times, many people get confused about the difference. I was looking to set up a TCP server using Boost (of course). There is a tutorial by Mahreen Tahir saying that: But what if there are more than one clients trying to connect to the server? In case we don’t want our main program to
What more exciting than using individual threads in your programs. In multi-core systems and even in micro-controllers where you want multi tasks with different priorities, threads come to the rescue. Boost for C++ is a valuable asset. I searched for related info and tutorials and I found a very nice series published in http://antonym.org/ More
Source control in the development procedure is not a luxury, it is essential. Don’t think of it necessary only when you work in a team. Pick up good habits early and apply it even if you work alone. It will enhance your work quality and sometimes it will become your saviour. This article will only
Developing code for iOS means that you are going to use at least one UIViewController in your app. This is one of the elements of the Model-View-Controller (MVC) design pattern and it is really helpful to understand its lifecycle. There are certain methods that called automatically when the view controller is loaded, presented and hidden.
Don’t underestimate the enumerations in Swift. If you come from C or objective C there is a nice surprise for you. Enumeration are not based on integers, can have methods, initialisers, computed properties and conform to protocols. Additionally, we are going to learn about associated values as well, a powerful feature that is engaged in
Structures is not another type in swift. If you have background in C or objective C you will be impressed with the functionality of structs in swift. Structures have initialisers, methods, comfort to protocols have extensions…convinced? Well, if start thinking that are like classes you are right but…only similar. Major difference is that structures are