Writing first ray tracer
One of the many goals I had for 2017 were:
One of the many goals I had for 2017 were:
Practical usage of generic programming can be narrowed down to two forms:
UILabel is one the most smart view in UIKit family. It knows a lot
about itself. If you constraint it to a certain width, the UILabel can
calculate the height for itself. Another smart thing about UILabel is
that is saves you machine cycles by not redrawing its content unless
something is actually modified. And if you use NSAttributedString, you
can in fact draw a more sophisticated text content.
Today, I want to talk about a curious case I discovered while playing with generic programming with Swift.