Funny code is the practices to improve data structure and algorithm. I love the reason why those things are very important. Imagine that if you work with millions or trillions of transactions, what happens if your code is not optimized. You might experience it before. I think I have a lot of bad experience in that.
Tyoe of Tensors: https://dibyendudeb.com/tensors-in-deep-learning-an-introduction/