• 1 Post
  • 365 Comments
Joined 2 years ago
cake
Cake day: June 24th, 2023

help-circle

  • Yes, I was shocked at how small it is. I had no experience working with such limited resources going into this project. Our router had 32MB of storage. At one point I was looked into adding a python interpreter, and it was like 11MB. The Lua interpreter is like 250KB. Tiny!

    Also, the ternary operator has the best syntax of any language I have ever used.

    x = [condition] and [true value] or [false value]

    No question marks or colons or anything weird. It’s a logical extension of && and || after commands in bash using keywords since it is a verbose language. I wish every language had this syntax.

    For contrast, python is:

    x = [true value] if [condition] else [false value]

    It just seems weird to me to have the condition in the middle.



  • I was the lead engineer on an Openwrt router for 2 years at my old job. Their documentation is complete and utter shit, but their design is extremely intuitive. Whenever I said to myself, “hell, let’s just try this and see if it works,” it had an insanely high success rate.

    I didn’t know Lua going into this project, but when I left the company, it made me really wonder why more people don’t use Lua. It’s a really nice language.

    I really enjoyed having my own open source router that I could just drop new features into by adding packages and recompiling. I was sad when I had to send all my dev units back.




  • It was accidental.

    So I started working at a startup right after I graduated college. They couldn’t pay a competitive wage, so they gave me a ton of stock. A year into working there, about half the company was laid off. I survived. They begged us not to leave the company by giving us more stock. I started interviewing elsewhere, because I have bills to pay, but I never got any other jobs. Then one day they handed me an envelope. It contained paperwork for even more stock. I thought it wasn’t going to be worth the paper it was printed on, so I kept looking for other jobs. Never found one.

    Well, a few years go by and the company starts doing very well. Then we got bought out. Suddenly all the worthless stock they gave me was worth a fuck ton of money. The buying company bought ALL of it. Even unvested shares. One day they wrote me a really, really big check, then I went and bought a house.

    It was absolutely life changing, and I tried to throw it away at every chance I got. I got so lucky.















  • Probably not that bad compared to others, but I opened my drawer to get ready for work one day and the little fucker was staring at me. After a brief moment where we were both shocked staring at each other, he scurried into the back of the dresser, behind the drawer. I was running a little late for work and had a very important meeting with our hardware vendors, so I closed the drawer and left. I ended up wearing something that was in the dryer as it was the only thing not covered in cockroach germs.

    I got home that evening and couldn’t find the little fucker anywhere. I washed all my clothes again, because it freaked me out having a cockroach touch all my clothes. I wiped down the inside of all of the drawer with a Clorox wipe. I just couldn’t find him.

    Days later, my wife comes running out of the bathroom and says the little pervert tried to attack her while she was on the toilet. The cockroach was actually in the light fixture. I sprayed it with some bug spray, probably a little too liberally. But he was super dead after that.

    Crisis solved!