Documentary Review: 2015 NBA Champions: Golden State Warriors

My thoughts after watching how the Warriors dynasty took off

Bowen She

5 minute read

To me, I started to hear that Stephen Curry was a thing after they beat Cavs led by Lebron James in 2015. However, during then, I was indulged myself in Dota2 and after Yao retired and the hype finale to see Dirk Nowitzki beat the most talented team Miami Heat, I had lost my interest in NBA for the most part reason that I didn’t like superstars grouped together to make the game less fair for other teams. So for those years during 2012-14, I barely watched NBA and just skimmed over monthly…

How-TO use load balancer

Load Balancer -- Glossary explanation in summary from Grokking the system design interview

Bowen She

6 minute read

Load balancer is another critical component in distributed system. it helps to spread the traffic across a cluster of servers to improve responsiveness and availability of applications, websites or databases. LB also tracks of the status of all the resources while distributing requests. If a server is not available to take new requests, or is not responding or has elevated error rate, the load balance will not pass on requests to that server.

Advanced Topics in Python

We are gonna discuss some advanced topics beyond common usage in string, list, tree in python. See what we've got here..

Bowen She

2 minute read

class myIterator:
    def __init__(self):
        pass

    def __iter__(self):
        return self

    def __next__(self):

The protocol to create an Iterator contains two main parts: __iter__ and __next__. The __iter__ returns the object we want to iterate over and the __next__ mehtod is automatically on eahc iteration and that returns the value for the current iteration. Notice: Python 2 use next and Python 3 use __next__()