Form Validation and Cookies 🍪
I recently updated how GraphUF, one of my personal projects, handles form inputs. Before, form inputs were joined and converted into a CSV string, then passed as a query parameter to a redirect. The backend then parsed the CSV string and validated each value with regex. After speaking with Adhip, one of my MLH mentors working at Meta, I learned of a better approach: input validation in the frontend and using a cookie to pass around values.
Bug Hunt - OOM Killer
Not a bug but a feature! The Out-of-Memory killer is an important Linux mechanism.
Bug Hunt - WSL Hang
This is the first post in a series of candid bug hunt posts where I will describe an interesting bug I ran into, and how I eventually fixed it. As this is the first of these posts, I will explain the general structure that I will try to follow in future posts.