Other articles


  1. Simple code. Stabbing at polymorphism

    Uncle Bob and some other people claim that polymorphism is the default way to structure code. I want to explore this idea a little bit.

    Let's take the example from the book (Chapter 3 Functions, Switch Statements ), I have transated the java code snippet into python:

    def calculatePay(e: Employee …
    read more

    There are comments.

  2. The hanging attribute

    I have not practiced writing for the long time, so this might be not my best text, but here we go.

    The problem I named "The hanging attribute" can be highlighted with the following example. Let's assume that we have a class Item which we sell:

    class Item:
        item_id: int …
    read more

    There are comments.

links

social