HNHacker News
TopNewBestAskShowJobs

masto

2,119 karma · joined December 13, 2010

Spent a decade in big tech. I'm trying to be better.
submissionscomments
masto··on Lessons Learned from Twenty Years of Site Reliability Engineering
It depends.

To make up an example that doesn't depend on any of those things: imagine that I've added a new feature to Hacker News that allows users to display profile pictures next to their comments. Of course, we have built everything around microservices, so this is implemented by the frontend page generator making a call to the profile service, which does a lookup and responds with the image location. As part of the launch plan, I document the "big red button" procedure to follow if my new component is overloading the profile service or image repository: run this command to rate-limit my service's outgoing requests at the network layer (probably to 0 in an emergency). It will fail its lookups and the page generator is designed to gracefully degrade by continuing to render the comment text, sans profile photo.

(Before anyone hits send on that "what a stupid way to do X" reply, please note that this is not an actual design doc, I'm not giving advice on how to build anything, it's just a crayon drawing to illustrate a point)

masto··on Tesla Model X Owner Has Had Enough of Minimalism, Adds Physical Buttons
There has been a set of buttons available for a while from a popular aftermarket vendor (https://abstractocean.com/products/s3xy-buttons) that interface through the OBD2 port. There is a good amount of reverse-engineered information out there on Tesla CAN bus messages (e.g. https://github.com/joshwardell/model3dbc).

If you have some coding and electronics experience, it'd pretty much be a matter of gluing some libraries together. Probably easier than gluing the physical buttons to the car.

masto··on EBCDIC Is Incompatible with GDPR
You were making a really solid-sounding technical argument, but then you used the phrase "just needs to", which, for me, triggers a tendency to discard whatever the person is telling me.
masto··on California suspends Cruise's autonomous vehicle deployment
https://www.youtube.com/@JJRicks has almost 200 videos of his Waymo rides at this point, and has probably captured everything one could hope to see them do.
masto··on USB-C head-to-head comparison
For that, I use an FNB58 (which I got from AliExpress - https://www.aliexpress.us/item/3256804478930060.html).
masto··on Contour: Modern and fast terminal emulator
What’s modal about it?

I’m also in the “I’ve never wished my terminal were faster” camp. Certainly I’ve wished the things I run in it were faster, but that’s a different story.

I split my time between macOS and ChromeOS, and I find it easier to just stick to what’s built in. The things that add friction to my development experience are not waiting for tty characters to draw, they are hopping around between the mess of tabs and windows between the browser, VS Code, and terminal sessions, all tied for a distant third; in second place, waiting for builds; and by far and away #1, trying to understand how this goddamn maze of abstraction and indirection and microservices and frameworks works so I can figure out where to actually put my code.

masto··on Amazon acquires Fig
These features are nice, but I've never liked the idea of having to use a whole new terminal application to get them.

I may be becoming a dinosaur, but it's not that I'm not willing to try new things. On the contrary, after many years of being rigid about having one true development environment, I've moved away from Emacs to VS Code, and work from more heterogeneous environments instead of being 100% Mac. So these platform-specific thick client apps no longer feel like the way to go.

masto··on Google restricting internet access to some employees for security
Misleading and/or misunderstood.
masto··on The World Bakes Under Extreme Heat
Don't worry, the WSJ is still perfectly happy to run things like https://archive.is/VYsHY, penned by someone who also claims smoking doesn't cause cancer.
masto··on Mr C's worst electric shock [video]
You’re allowed to move on quietly. A comment complaining about it is such a poor use of the medium. This needs to be a reaction video.
masto··on An Alerting Vista of macOS Sonoma
This is not a particularly new direction for Apple. I just bought a Mac Studio and set it up today. Latest and greatest non-beta (Ventura 13.4.1). I'm not even trying to do anything particularly adventurous, just install a basic suite of applications and get to the point where I can use my machine. I have been besieged by dialogs, popups, and notifications asking me to give a program access to a file or removable disk or my downloads folder, or "informing" me that a setting has been changed, or that something will run on startup, or most intrusively, in half a dozen cases, preventing a program from working until I open the security preferences and find the "Allow" button.

At one point, after rebooting my computer - a required step in the 10-minute process of updating the firmware for my fresh out of the box Apple monitor - I got a dialog that said "The application 1Password is not open anymore" (exactly like https://us.v-cdn.net/5020219/uploads/editor/w1/apqiiyi6lwer....). Clicking the help button opened the classic Apple help panel that grinds your computer to a halt and, in this case, displayed a blank white window. I spent a few seconds trying to puzzle this one out, ending on an Apple discussion forum (https://discussions.apple.com/thread/252590137) with the again-classic mode for those forums where derision and insults are provided in lieu of assistance.

I fell in love with the "it just works" and "an actually usable GUI plus Unix under the hood" and "they actually sweat the small stuff" aspects of the Mac experience that drew a lot of us to the platform in the early days of OS X. Over time, the shine has worn off and many patches have tarnished or even rusted through. The user-annoyance-factor difference between modern Windows and macOS is very slight.

masto··on Closure, from why the lucky stiff (2013)
I'm 48. I don't think age has anything to do with knowing the context behind this. From the other explanations, you apparently had to follow a very specific subculture dedicated to a specific individual. I did not, rather the opposite. I tried to read his Ruby book when it came out and I simply couldn't. No offense to the vast army of folks who enjoyed it -- I think we're all allowed to like what we like.

There's something wrong with the way my brain is wired. I am by accounts an intelligent, capable, successful person, but I am completely unable to "read" comic books. I might as well be staring at a foreign language. When I'm trying to learn a technical topic, I thrive on dry reference material. Put a cartoon in and it's like running into a brick wall.

I don't know where I was going there except I feel like any time this comes up, I have to over-explain myself for not liking that book, because everybody loves that book and I will be burned at the stake for not regarding it as the greatest programming book ever written. It's just my personal experience, and I accept that I'm totally wrong about it, ok? Anyway, shorter version is that I had such a visceral reaction, any time I see "why_" mentioned, my reading comprehension reverts to that of a toddler.

If that's all irrelevant and the point you were making was more like "kids today don't know what PCL is", I am very familiar with PCL and print spoolers, but detached from any context that would suggest printers, they failed to take on any semantic value.

masto··on Closure, from why the lucky stiff (2013)
Would anyone be willing to explain this? Who is "us", what is a PCL, what is a spool, what are these random words? Is this supposed to be a puzzle?
masto··on Earth entering ‘uncharted territory’ as heat records quickly shatter
What else did I see in the news? People are angry they can't buy incandescent light bulbs any more.
masto··on How to Do Great Work
It’s Paul Graham. He’s a poster child for essays about how there’s one way to do things.

If you want to have a successful internet business, code in lisp.

masto··on Google uses in-person office attendance as part of employee performance reviews
Your analysis is spot-on. Almost all of the other comments here are "I want X, so X is better. If you prefer Y, you're wrong and stupid."
masto··on Apple Vision Pro: Apple’s first spatial computer
Doesn't seem that way to me. I'm generally not opposed to jumping on the latest and greatest toy from Cupertino the second it comes out. And I'm a big fan of VR: I own two headsets now, but I was waiting for this announcement before deciding whether or not to buy a Quest 3.

I've decided to buy a Quest 3.

I could elaborate on why, but to each their own. I just don't see this thing fitting any use case for me. I know people who like to watch videos in VR. I hate it. I'm aware that accessing your computer screen through "virtual desktops" is a moderately popular application. Can't stand it. I have never used FaceTime, and certainly wouldn't have anybody with another one of these to call.

We live in a world where forum comments have to be either "this is stupid and anyone who likes it is stupid" or "this is the greatest thing ever and anyone who doesn't like it is stupid". I'm not saying either of those things. I'm saying this is not for me, and furthermore, now that I know that, it has unlocked the purchase of a competing product.

I'm sure there are people who do see their use cases in this product, and also can afford it or its non-pro successor. But my take on it is that the real market will continue to be in games, not putting on a helmet so you can virtually type on a computer.

masto··on PyPI Was Subpoenaed
If you read the whole thing, it's pretty clear they don't have the person's full name and address, and thus did not provide it. They do mention that it will be needed for organizations that sign up for billing when that feature becomes available.

Other than possibly IP addresses, it seems like the only information they had available to disclose was close to the bare minimum needed to operate the service.

masto··on The long road to recover Frogger 2 source from tape drives
This brings back (unpleasant) memories. I remember trying to get those tape drives working with FreeBSD back in 1999, and it going nowhere.
masto··on ChatGPT for Hardware Design
Opened site. Chat popped up in the corner and started making sound effects. Closed site.

I guess it doesn't matter if a few people are annoyed, if the end result of these things is a new increase in conversions. But I wish "don't annoy people" was actually in the product requirements.

masto··on Google will add E2E encryption to Authenticator backups
I wouldn't mind getting my name back.
masto··on Ruby's switch statement is flexible
Raku would like to have a word with you.
masto··on The simplicity of single-file Golang deployments
When I was stuck doing a web application in Java 15 years ago, I hated everything about it except for the deployment story, which boiled down to a single .war file being pushed to the server.

When we upgraded to Perl, I liked that system so we designed deployment around "PAR" files in a similar way, bundling all of the dependencies together with the application in the CI build process, and I wrote a tiny bit of infrastructure that essentially moved a symlink to make the new version live.

Google uses MPM and hermetic packaging of configuration with binaries: https://sre.google/sre-book/release-engineering/#packaging-8...

The way I see it, Docker is basically this same thing, generalized to be independent of the language/application/platform. As a practical matter, it still fundamentally has the "one file" nature.

I don't see what's special or better about compiling everything into a single binary, apart from fetishizing the executable format. In any system at scale, you still have to solve for the more important problems of managing the infrastructure. "I can deploy by scping the file from my workstation to the server" is kind of a late 90s throwback, but golang is a 70s throwback, so I guess it fits?

masto··on Bourbon and Branch Water (2013)
I think you need to consider it not as a chemist, but as a psychologist.
masto··on Dotfiles Management
I very recently put some effort into tidying up my dotfiles, and have a brief writeup at https://chatwithsysop.com/blog/2022/12/31/dotfiles-cleanup (none of this was done with the academic rigor required to withstand a deconstruction by HN, it is just a log of one person's experience with a weekend project).

I chose to use yadm (http://yadm.io) for no particular reasons beyond that I found it first, and it seemed reasonable. It's more just a wrapper around putting GIT_DIR elsewhere.

masto··on For Want of a JOIN
I was recently discussing something that involved knowing whether a string consisted of only a single repeated character. Having spent many years in the trenches with Perl, my first thought was /^(.)\1*$|^$/, which is the kind of thing people dismiss as "line noise" because they haven't spent a few minutes learning a language that can easily express what you want. We have this trend now from people who like languages like Go where answering the question "does this string consist of a single repeated character" begins with "I would now like to reserve space for a 64-bit integer which I shall henceforth refer to as 'i'...", and that's considered a virtue.
masto··on O Holy Crap
When we got our house 7 years ago, we replaced a bunch of appliances with brand new, modern ones.

Fancy French-door Refrigerator: still going strong. I tightened the screw on the freezer handle a couple of times.

Cheap fridge in the basement: still going strong, no repairs

Washer and dryer: still going strong, no repairs

Dishwasher: still going strong. I replaced a dish rack when one of the tines broke.

Anecdata, it's fun and useless!

masto··on Show HN: Mimosa – Collaborative brainstorming with AI suggestions
I put in "How can we become 20% more efficient", seeded a few mediocre ideas, and started hitting the AI button. This is what we've got (I'm going to get promoted to Director for sure!):

* Get interns to fix all the tech debt

* Hire an Agile consultant

* Have a big party to celebrate meeting deadlines

* Fire a whole bunch of people

* Write a letter to your employees to complain about how hard you work (go viral!)

* Write another letter to your employees to complain about how hard you work (go viral!)

* Move all the servers to the cloud

* Bring all the servers to your house and connect them to a home server

* Use more Microsoft products

* Hold all-hands meetings to complain about how hard you work

* Go golfing and then complain that you're too busy to get your work done

* Outsource to India

* Work through the weekend

* Force everybody into the office

* Ignore the problem, find a way to blame the other departments, this is the way it's always been done, it must be their fault

* Put monitors on the wall to check how fast we are

* Spend more on the Scrum Master

* No-meetings weeks

* Lead by example, work harder than your team

* Work harder, longer and smarter

* Take a big stack of papers home to read over the weekend

* Open a free drinks bar in the office

* Make a big production of telling your boss that you're too busy to work late

* Re-write the backend in Ruby using Rails

* Get a lucrative job offer from Google

* Convince your wife to let you build a data center in the shed

masto··on No safe efficient ways to do three-way string comparisons in Go
I seem to recall one of go’s creators snapped back at a similar question about code duplication with “what’s the matter, are your fingers broken?”

I think that sums up the philosophy, though maybe not as well as “Nothing was achieved here”, which I would like to translate into Latin and get on some stickers.

masto··on I cheated on my Microsoft interview (2019)
I don’t think this person would have done badly on the interview if they hadn’t practiced the question in advance. At least according to the narrative, when they first heard the problem they thought about summing the numbers: presumably they would also have gotten there during the interview.

It also begs the question that a direct path to “perfect code” is the intended goal. Admittedly this story takes place quite a while ago and there’s no one approach to interviewing in big tech, but I think it’s safe to say it’s generally a more nuanced evaluation. In a situation like this, the textbook approach is to start by proposing a quick and dirty naive solution, like storing all the seen values in an array, and telling the interviewer why or under what conditions you think it’s a bad solution. You could realize that there’s only one bit needed, so you could track eight values per byte. That’s probably the point at which the interviewer might prompt you to start coding, since there are a few details to get right to show that you know how to implement a simple algorithm, and there’s opportunity for followup about boundary conditions, scaling, big-O, etc.

At that point, you may have enough time for another prompt like “can you think of a way to do it without an array to store all the values?” If the candidate is still stuck, I’d offer them “what if I give you this formula for the sum of the numbers from 1 to N?” Similarly, if at some point earlier on they said “I think there’s a formula for this”, I’d probably give them a minute to think about it and then just tell them what it is. Because I want to move on to see if they can implement it.

Are a lot of FAANG interview questions math puzzles pretending to be programming questions? Unfortunately, yes. It’s hard to avoid when you have a people who are smart at math and not particularly skilled at interviewing. They tend to create questions based on something they’re impressed with themselves for knowing. I’m not suggesting anyone has solved the problem of how to decide, based on 45 minutes talking to someone, whether they’re going to be successful at the job.

← PreviousPage 7 of 11Next →