Use combination of section and column:width to arrange text in multiple columns.( Border is displayed for clarity.)

A. Lets start with regular text

 because you work within collaboration and other people do not follow those rules - compiled code will pick the first function matching the name from the library (people ignore compiler & linker warnings) ,  certainly not your version. With long names chance of clash is smaller.

B. this text is in the left column

define everything only once per program. E.g. if 2 independent classes work on the same array declare its dimension in an independent header file included by both. Later  you will change dimension of this array and forget to edit one of 7 headers - it will cost you a day to find who is writing over memory of other class member.

C. this text & figure is in the right column 

write your code to mach to the input format rather than convert input file to another format with 3rd party software just so you can read it as you like. Say convert 2D array in to one vector. In the future you may need to do it 10,000 times - it is wast of time

D. now we write again in wide single column

always make compiler happy so it does not generate warnings. You are not smarter than ~1000 payed programers who wrote compiler - trust them you are missing sth. If you do not understand the warning it is even worse - it means you do not understand how compiler is interpreting your code. Change you code so you know what compiler is doing with it.

  • No labels