Notes about const in C++

This article contains some note about using const in c++;

Objective of using const

The main objective of using const is to:

Prevent changes to the data or Make it Read only

More Detail:

  • Prevent the caller change the values of a string in my class;
  • Prevent the caller change a constant value such as Pi, MaxOfPlayer, …
  • Better ownership of a piece of data, it is good to controlled the data by one source;

Continue reading


7 basic things need to know when learning something new in programming

Recently I am learning the ReactJS framework made by Facebook; During the learning process, I have organised 7 important things we need to know when we are learning a new programming language, platform or framework;

learning programming

Continue reading

A “Coding note” for your program

During the days of my development work, a question is usually asked by my colleagues and myself, the question is “What are we going to do?”; As a programmer, we should know clear what should do now and next, but the reality is that we usually get lost while we are coding;

To solve the problem of that, I decide to write a “Coding Note” for my program, which guide me and my team what to do when we are developing the program; The following content will describe how to write a coding note;

Continue reading