As developers, it can be easy to write messy code or for code to bloat and become unwieldy. When this happens you may start to recognise patterns or repeated code. These repeating patterns should be moved into a class for storing these "utility" functions. As your utility classes grow the classes could become a project… Continue reading Packaging and Uploading a package to PyPI
What are they and how do they work? In the past I made use of iPython, but while I have heard often how wonderful Jupyter notebooks are, as I start writing this page, I just do not 'grok' them. This page will evolves as my understanding does. As such, this page is for people new… Continue reading Jupyter Notebooks.
Covid-19: ‘Diary Alert’, Improved Track and Trace
Update 28 April: Germany to move from central database to 'diary alert' approach of distributed data on handsets for improved privacy protection. Many countries are considering making use of a contact tracking app to allow track and trace of Covid-19. There is an app that was initially developed in Singapore, based on detecting contacts through… Continue reading Covid-19: ‘Diary Alert’, Improved Track and Trace
The two that do not fit in the same group are the Python With and Kotlin Use. These functions are for using (or doing something with) a resource that should be released when the operation is complete. Kotlin Let, Apply, Run, Also, With (not to be confused with Python With), are all quite similar. Once… Continue reading With,Use,Apply,Also,Run,Let
Structure: Import, Dependencies & Repositories
Both Kotlin and Python use the keyword "import". At a superficial level, import performs a similar role in both languages, but the steps for each languages achieve what is required are very different. Examining how import works, explores the structure of Python and Kotlin program, and how they are constructed. Import relies on dependencies, and… Continue reading Structure: Import, Dependencies & Repositories