Husband, father, entrepreneur/software engineer. Interested in politics, tech, philosophy, crypto, and current events. Founder @reserverabbit ✡️
Sep 3, 2023 • 10 tweets • 3 min read
Also the reason you want to use cookies (and not only localStorage) is that the cookies are automatically sent to the server by browsers when loading pages and can be validated server-side. Local storage isn’t and you can only validate it after page loads (with useEffect).
However, as previously mentioned cookies often get wiped out due to expiration and browser settings. So you need localStorage as a backup if you don’t want the user to have to keep logging back in every few days.
@benawad The session key can be generated by the server with md5(‘some_constant_string_for_salt’+username+timestamp). Or you can make your own method. It just should be long enough that it can’t randomly be guessed.
Nov 12, 2022 • 13 tweets • 2 min read
1) Monero is a cryptocurrency that hides the senders, receivers, and amounts of all transactions while being a publicly visible blockchain.
Super interesting but how does this work? Well I spent some free time the last few weeks studying the literature. High level summary:
2) Wallets have public/private view and spend keys, allowing creation of one-time addresses not visibly linked to the keys.
The Monero coins originate from mining, and these are the only publicly visible amounts. They are sent to one-time outputs owned by the miners.
Nov 10, 2022 • 10 tweets • 2 min read
A list of various pieces of software techniques I’ve picked up in the past few years. Some are just my own opinions so take heed of that:
1. It’s better to keep all your variables as constant by default. Mutable ones are an exception.
2. Type safety is better than no defined types. TS is better than JS. Makes it easier to refactor.
3. Async programming (esp. with ‘await’) is super useful. When the thread is waiting for I/O, it can automatically jump elsewhere in the code and do other stuff.
Jul 4, 2022 • 14 tweets • 4 min read
1/ @AlgodexOfficial - where did it go wrong and why didn’t it take off after the Mainnet launch?
Here’s my thoughts on my first attempt into crypto entrepreneurship: 👇
Many others were involved too but I am not sharing everything out of respect - so can’t give the whole story
2/ I started the project last April in 2021 because #Algorand had no DEX, and as an avid fan I was impatient to fix this. There was clearly a *ton* of pent-up demand for a DEX - this was quite obvious.
After I launched the project, we soon tons of community and VC interest.