Przejdź do głównej zawartości


Wyświetlanie postów z marzec, 2016

Be a human, not a compiler

A recent reading inspired me to make an observation on programming skills and differences between those the masters and the laymen.

This is not the kind of information you will learn at university or a conference. This can change your professional attitude, so read on.

From the very beginning of our programming education we are talked into thinking like a compiler. We gradually develop the thinking that in order to write a decent piece of code we need to ask ourselves questions like these below:
how is this thing going to be evaluated by the computer?will this index ever go out of array boundary?can this variable overflow under any circumstances?will this statement correctly modify / concatenate / process these numbers / strings?is it then this pointer that is going to point at the result when the function returns? After years of doing that, we are even inclined to judge others at job interviews by how they are able to answer these questions. The funny (and upsetting, at the same time…