Using the switch(true) pattern in JavaScript
The switch true pattern isn't well known but it is incredibly useful. It's not a JavaScript specific pattern, but I use it in almost every single project.
The latest blog posts to take off on Hacker News. 3,497 posts.
The switch true pattern isn't well known but it is incredibly useful. It's not a JavaScript specific pattern, but I use it in almost every single project.
In shell scripting you sometimes come across comparisons where each value is prefixed with "x". Here are some examples from GitHub:
Science News, Physics, Science, Philosophy, Philosophy of Science
This is my main computer, a Thinkpad T410 with a 1st generation Intel Core i5 and 8 GB of RAM. It runs Arch Linux with Xfce.
People appear to enjoy the blog posts about me porting different compilers to OpenBSD . What I would like to do for the next couple of posts beginning with this one is to take a step back and de-complexify these programs. Both the D compiler and the GNU Modula-2 compiler are highly complex pieces of software. But at…
The future of work is a pyramid scheme, where every person sells his favorite person to the next person.
A redacted document showed extremely sensitive information. Google's lawyer accidentally made it public.
Author's Note After Release I'm really blown away by the reception of this article. It has spread far wider than I could have ever imagined. The many comments and discussions it has prompted that essentially confirm what I believe is truth by not just fellow engineers but many
The new Mayor of the city of Rome, Ignazio Marino, just announced his intention to destroy one of the city’s central roads, the Via dei Fori Imperiali, and turn the area around the old Roman Forum into the world’s largest archaeological park. Reactions have ranged from commuters’ groans to declarations from…
A bug that plagues thousands of open-source ML projects.
This post is a basic introduction to running HTTPS servers and clients in Go using TLS. It assumes some familiarity with public-key crypto. Feel free to check out my earlier posts about RSA and the Diffie-Hellman Key Exchange ; TLS uses the elliptic-curve version of Diffie-Hellman. I won't be covering how the protocol…
Final Installment of the Misinformation Trifecta
Design your hiring process to find the right people to strengthen your teams' weaknesses, rather than trying to find the best people. Instead of "how can we find the smartest people?" think about "how can we find the people who will make our team stronger?"
Yesterday I found myself googling how to do something that I’d think it was pretty standard: How to download multiple files from AWS S3 in parallel using Python? After not finding anything reliable in Stack Overflow, I went to the Boto3 documentation and started coding. Something I thought it would take me like 15…
I'm evaluating new SaaS business ideas, and I wanted to share a little bit about exactly how I'm evaluating them.
The hiring process could stand some improvements.
<p>Like many engineers, I got thrown into management without any real guidance. I thought management was just telling people what to do. I thought there wasn’t any real science to it; you just needed to feel your way through it. I was wrong: there’s a whole field of study here, and you can learn a lot by…
This programmer does not like the PSD File Format:
Or, “how not to GIS”.
I recently updated Pixel Wheels banner image on Google Play. That triggered a review of the game: shortly after the update I received a message telling me Pixel Wheels was "not compliant with Google Play Policies". What nefarious activity does the game engage in? Sneak on users? Mine bitcoins?
In March, I got an email from SpaceX saying Starlink was available at my address, and I could pre-order. I paid $500 for the equipment, plus $25 for a Volcano Roof Mount, and $99 for the first month of service, and a few weeks later, I got the kit you see in the image above. I was a little too excited about getting…
Apple’s new privacy rules will only work if Apple enforces them — even in China.
I have a hunch that once people saw the economic potential of software, they started looking for ways to "scale it up" and we haven't stopped searching yet.
It all started with the big bang! We nearly lost 33 of 36 disks on a Proxmox / Ceph Cluster; this is the story of how we recovered them.
*If you’re the owner of this website and have questions, reach out to Bluehost. We’re happy to help.
Over the last few months I have been on and off digging into the history of early PC networking products, especially Ethernet-based ones. In that context, it is impossible to miss the classic NE2000 adapter with all its offshoots and clones. Especially in the Linux community, the NE2000 seems to have had rather bad…
How Figma and Canva are taking on Adobe—and winning In 2010, Photoshop was ubiquitous. Whether you were editing a photo, making a poster, or designing a website, it happened in Photoshop. Today, Adobe looks incredibly strong. They’ve had spectacular stock performance, thanks to clear-eyed management who’ve made bold…