1. The Pragmatic Programmer [Highlights]

    Rather than construction, software is more like gardening— it is more organic than concrete. You plant many things in a garden according to an initial plan and conditions. Some thrive, others are destined to end up as compost. [...] You constantly monitor the health of the garden, and make adjustments (to …

    read more
  2. 6 Take-Aways after Reading "The Signal and The Noise"

    The Signal and The Noise by Nate Silver is a must-read book for those interested in predictions. It is not a technical book. You will not learn any algorithm. However, it presents a series of real-world scenarios when predictions did work and where predictions did not work. The book is …

    read more
  3. Weighted Random Sampling with PostgreSQL

    You have a table like the following:

    CREATE TABLE weights (
    color varchar primary key,
    weight float
    );
    
    INSERT INTO weights (color, weight)
    VALUES
    ('red', 8),
    ('blue', 3),
    ('green', 10),
    ('yellow', 10);
    

    The table lists the weights associated with certain colors. Imagine a weight representing how much you like that color.

    Now …

    read more

social