A Pile of Sand

Been in the IT community for many years I sometimes wonder, do we ever learn from our mistakes? It is as if it does not hurt too much when we repeatedly do the same mistakes or just jump the fence where it is lowest instead of where it is correct. Alternatively, just do a proper planning even though it seems a waste of time in the beginning