@schlink Yep! As someone already mentioned, this is De Morgan's law.
You can also compare the truth tables:
Been a while since I've written any blog posts (especially of the technical variety), so I'm pleased to present to you "Stacking Optionals in TypeScript":
I'm working with some code where a function takes a `date` parameter, and if no date is provided, calls Date.today _in the default argument constructor_.
The functional programmer in me finds that absolutely horrifying.
I'm not sure why calling an impure function in the argument constructor bothers me so much more than calling it in the body of the function would – but it sure does!
"Rust is for Professionals"
> Of all the programming languages I've used, Rust seems to empathize with its users the most.
Has the Town seen this yet? https://www.bell-labs.com/institute/blog/plan-9-bell-labs-cyberspace/
So I created an Evangelion title card generator because why not ?!
Try it here: https://thomasorus.github.io/evangelion-episode-generator/
Ugly code: https://github.com/Thomasorus/evangelion-episode-generator
Now go and troll your friends. #theWorkshop
@metasyn I was trying to figure out how to maintain an atomic counter column.
I initially started out using Serializable isolation, but after a lot of debugging it turned out that what I actually wanted was Repeatable Read isolation.
Turns out, Serializable isolation performs page-level locking, so you can run into scenarios where concurrent updates to different rows in a table can fail if they are on the same page.
This week I learned more than I'd ever thought I'd know about transaction isolation in Postgres
@neauoire That definitely sounds like a good precaution, especially since the ocean is not known for being benevolent 😨
I think one benefit of building so much out in the open like you do is that it lessens the need for these sorts of digital continuity plans.
@johannesg I think it is important to consider the overhead/burden that leaving behind digital possessions brings. I've never really had to deal with this before, so I didn't think about that while writing this. Thank you for bringing it to my attention!
Being selective about what you end up offloading onto your successors seems to be a prudent decision.
Today I'm launching shards on my website: https://maxdeviant.com/shards/2020/introducing-shards/
These are a way for me to write down and share my rough, uncut thoughts without all the ceremony and polish of a proper post.
Shards also appear in my Atom feed, so subscribe to that if RSS is your thing: https://maxdeviant.com/atom.xml
(Also, let me know if there are improvements I can make to my RSS feed, I'm not a big RSS person).
@neauoire This is the most I've kept up with AoC of any year!
I don't know whether it's due to the puzzles (content and/or difficulty), the language I'm using, or just that my skillset has grown.
宝霞龙. 26. Conjurer of code. Devourer of art. Pursuer of æsthetics. Soli Deo gloria. He/him.
Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.