Image credits to pin: https://www.pixiv.net/en/users/961667 Django How to customize the User model in Django? In this post I explain three methods to extend or customize Django’s User model, without having to rewrite it from …
Image credits to ときわた: https://www.pixiv.net/en/users/5300811 Django Databases Differences between Django select_related and prefetch_related Django’s select_related and prefetch_related methods are used to reduce the number of queries made to the …
React Opinion Why using React.FC could be a bad practice? When we use Typescript with React and we want to pass a children as prop to one of our components , we need to indicate …
Go Go: profiling or basic profiling of CPU usage In addition to unit test testing and coverage measurement in go , this programming language is capable of profiling the …
Go Testing Go: basic testing and coverage Go already has a testing module in its standard library that is ready for our use, we just need to import it and use it. …
Go Go: race conditions on goroutines and mutexes In past posts I talked a bit about goroutines, deadlocks and channels . But there is another quite interesting issue …
Go Go: channels, understanding the goroutines deadlocks When working with channels there is a quite common error that occurs when you are not familiar with the concepts, the …
Go Go: use of channels to communicate goroutines So far I have explained how to run a goroutine, execute code concurrently with the goroutines and wait for them to …
Go Go: introduction to goroutines and concurrency As I mentioned in the introduction to the go programming language: go is a specialized concurrency language . It is a …
Go Go: package import and module management In go you can consider a package as all the files contained in a directory and a module as a collection of packages. To …