Posts

Showing posts from December, 2023

Learning to learn

Proper "chunking" of knowledge is like developing specialized modules in the brain so as to solve future problems. This can be true for studying programming. You have to properly "chunk" concepts like data structures and algorithms so as to access the plethora of algorithms that exist to model your problems so as to solve it with computation. You have to have a solid foundation and this foundation is built from "chunks". Decomposition of a problem requires a break down of a problem into subproblems that can be solved computationally.

Mutated Tuples?

https://docs.python.org/3.6/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works The docs explain that a tuple throws an error but is assigned despite being immutable. The object pointed to stays the same and is mutated in place and when the result is reassigned the interpreter throws an error stating that an immutable cannot be modified yet the assignment is successful. This voodoo is beyond my reckoning!