Python assignment by reference

When hand holding goes wrong Assignment by reference vs copy assignment In case you accept doing assignment at all in your language you need to choose which way to pass your objects when assigning to new variables or calling functions etc. There are two general ways; You either copy it or just tell where the original is. We could imagine some combination of these if parts of the object is heavy to copy but let’s keep it in our pants. …

Posted on

Trying out some webdev stuff

Learning log for building the lair npm vs yarn While npm was the initial package manager for node.js facebook people wrote yarn due to npm not being deterministic and not having a version number lock. Seems good to have. npm now supports these things but yarn is more popular so I will stick to that as i assume it will have better support, updates etc. Using react React seems popular enough and bootstrap looks good and simple. …

Posted on