Lessons from UNO

The vanilla UNO itself is a simple game to implement. Initially I thought of doing a completely command-line based interface, but that gets very unwieldy. So I quickly switched to termui. Being built for dashboards, the UI library itself isn’t the most glamorous and I am contemplating moving to bubbletea. But that has to wait. session with 4 players In this post, I will note down a few of the stuff I have learned while implementing this prototype....

<span title='2023-04-18 19:41:54 +0530 IST'>April 18, 2023</span>

CORS and Cookies

Articles and Libraries Explains CORS including some of its origin story Go CORS middleware General notes Cross-origin requests, are resource-scoped. In REST terms, the server can decide whether to allow cross-origin requests to a particular API or not. That capability is naturally exposed by the Go middleware above - and you can wrap any handlers (which correspond to paths) you have for which you want to enable CORS. In python frameworks, a @cors(....

<span title='2023-02-08 22:37:45 +0530 IST'>February 8, 2023</span>