HNHacker News
TopNewBestAskShowJobs

avl999

1,323 karma · joined August 26, 2019

submissionscomments
avl999··on In Praise of Stacked PRs
Thanks this looks interesting, I will definitely give it a shot.
avl999··on In Praise of Stacked PRs
It is more about being unblocked than however long it takes for the PR to be merged in even if it is really fast. It is not always possible to pair/mod on a change.

Getting folks to quickly review PRs is difficult as doing so breaks the flow state of other people and results in constant thrashing and context switching between the work they are doing are reviewing PRs.

Even if the team is committed to quickly reviewing PRs, you are always going to have times when a bunch of people are in a meeting, while a couple are at lunch and a couple are knee deep in another issue and no one can look at your PRs for hours and you need to keep yourself unblocked.

avl999··on In Praise of Stacked PRs
There is a tradeoff... smaller, digestible PRs result in thorougher and faster reviews but it gives up the "1000 feet view" of the larger feature as far as the reviewer is concerned.

Large PRs preserve the larger "1000 feet view" of what you are working on but are likely to be slower to get responses on and most likely less thorough thus a larger chance of things being missed.

Almost everyone I've worked with prefers smaller review so I just accept that trade-off of 1

avl999··on In Praise of Stacked PRs
I do stacked PRs at work, they work great until someone suggests an invasive change in a PR lower down in the stack. Does anyone have ideas on how to deal with merge conflicts in this type of flow? For example let's say I have the following stack of PRs

PR1 -> PR2 -> PR3 -> PR4

The reviewer reviews and suggests a change in PR1, this change causes a merge conflict in PR2 and therefore in PR3 and PR4 as well. And then you have to go in manually resolve the exact same merge conflict all the way through you PR stack in each of the PRs. This gets annoying and hard to work with.

Does anyone have a better way of dealing with this pattern of merge conflict? I've tried using git rerere which in theory sounds helpful but doesn't seem to do anything when I strike this issue.

avl999··on Raspberry Pi Pico W: your $6 IoT platform
Only PI SoC products have had availability issues, Pico microntrollers have been readily available in both individual pieces and in bulk.
avl999··on Interview with the author of “Buy Now”, a book about Amazon
The only thing Amazon monopolized is a great product for its customers at an excellent price-point. Very few services come to match the value proposition that Amazon provides.
avl999··on Fresh is a new full stack web framework for Deno
Massive eyeroll
avl999··on Consider disabling HTTPS auto redirects
It is not "completely useless" or a "theoretical attack vector". This literally happens in the wild. There were reports of Comcast and ISPs in India MITM'ing traffic injecting ads into their their customers' tcp streams a couple of years ago.

> Enabling HTTPS redirect means the fallback is no longer working, and if the browser doesn't let you in, you basically lost access to information even though it is still right there, just inaccessible.

This is the equivalent of saying that "since phantom issues with preflight checks on airplanes can sometimes result in cascading delays of flights on an entire airport therefore we should get rid of preflight checks on commercial airliners".

avl999··on Netflix lays off 300 more people – almost 3% of its staff
Well AppleTV shows tend to get pretty good reviews on Rotten Tomatoes, tv critics certainly aren't the "hacker news crowd". I do agree that AppleTV's content is targeted to be more niche than the much more broader content of Netflix which is trying to produce something for everyone. But that allows them to have good quality control over their product and there is nothing wrong with producing less content but content targeted at a niche. HBO found a lot of success in the pre-streaming era following a very similar model.
avl999··on Netflix lays off 300 more people – almost 3% of its staff
From where I see it Apple TV is trying to be to streaming services as HBO was to broadcast/cable network in the pre-streaming era. Back then, broadcast/cable networks would crank out shows like a lot of streaming services are doing to day but HBO would have a much more limited selection but what they did put out was aimed to be high quality (where quality here is defined by critical approval; and production values).

AppleTV like HBO is trying to follow a strategy of focusing on the quality of the product over quantity. It seems that most of their shows esp as of late get excellent reviews and look very expensive. It probably doesn't have the viewership of the bigger streaming services like Netflix/Max/Disney+ who have more populist content but they are managing to differentiate themselves from the other services.

avl999··on Netflix lays off 300 more people – almost 3% of its staff
What Netflix needs is pilot episodes instead of straight to series orders. Some of the shows that get greenlit and get minimum one season are so bad that if they had any kind of pilot/quality control process they'd never make it on beyond episode one (and thus release resources for multiple seasons of the shows they cancel or a good quality new shows). I watch some Netflix shows (eg Another Life/The I-Land) and wonder how they ever get made, it's like no one is paying attention.

They also need to give shows some kind of ending even if they are not part of their long term plans. Having a library of shows without ending is not attractive to customers.

AppleTV has been running circles around Netflix (and other streaming services when it comes to quality), what is the last critically acclaimed series on Netflix? I am not saying that your shows need to be critically acclaimed but you can't be in a state where your shows are getting panned criticlaly and on top of that not giving endings to your semi popular shows.

avl999··on GitHub Copilot for individuals available without waitlist, with free trial
I have given my coworkers, friends and family members a waiver to punch me in the face until I come to my senses the day I decide to use this tool.
avl999··on SpaceX said to fire employees involved in letter rebuking Elon Musk
Musk is a total snowflake who cosplays as some sort of defender of free speech.
avl999··on Why do you need LinkedIn? (non-recruiters)
LinkedIn helps me keep in touch with people that I worked with at past jobs. Yes you can swap emails/phone numbers but emails frequently get buried, people may change phone numbers as they move, additionally emails don't have any discoverability (eg what is Victor who I worked with 8 years ago doing these days... ohh he is working at company XYZ, that's interesting I am considering applying at company XYZ maybe I can ask him what he thinks of the company from the inside).

The recruiter spam is a small price to pay for the incredible professional value that LinkedIn provides for me.

avl999··on Tinygo: LLVM-based Go compiler for microcontrollers, WASM, and CLI tools
Another advantage of tinygo is that unlike "Go proper" FFI with C code is blazingly fast, which makes it a reasonable option for inter-oping with C-library- whereas use of Cgo is actively discouraged in "Go proper" due to performance and other reasons. So using board specific libraries which are very likely to be in C is doable via tinygo.
avl999··on GitHub user sends notification to 400k users
> Some people have their email set to live ping which would make it much more annoying.

That sounds like a "those people" problem. We don't hold people who use door knobs to account for the sake of a small number of people who like to lick door knobs and then get sick.

> I imagine it also cost a small fortune for Github to send this many emails.

That sounds like a problem for Github for not implementing any kind of checks and balances on their perfectly open feature if for some reason sending emails is expensive for them.

avl999··on Bolt announces layoffs
Their careers page weirdly shows them still 'hiring' for lots of tech and non-tech roles https://www.bolt.com/careers
avl999··on Expert: Monkeypox likely spread by sex at 2 raves in Europe
These kind of posts is exactly why the WHO naming scheme for viruses discourages naming viruses after animals, places, people or landmarks. Best case it can cause a misunderstanding, worst case lead to people to actively arrive at wrong conclusion.
avl999··on Microsoft Opens New HQ in Toronto
Not true... it is much easier for an American to move to Canada (and vice verse) due to the TN Visa. Essentially no process or redtape, all you need is an job offer in one of the qualifying professions (Software Engineering is one of them) and an American can literally present that to immigration 2 hours before their flight at the airport and get a visa stamped on their passport.
avl999··on Sweden to Apply for NATO Membership
> So Putin has quite literally achieved nothing.

If he achieved "nothing" that would infact be preferable for Russia to the state they are in now. What he did is an equivalent of the manager of your team pulling a couple of all nighters over the weekend to do a "hero-refactor" on your codebase for "improvements" and then deploying it into production only for everyone to discover that the "improved" code has massive performance regressions, worse user experience and is harder to maintain... worse it can't be rolled back easily and the process of rolling it back will be slow and annoying, that is if the manager who made those changes even admits that it should be rolled back in the first place.

avl999··on Heroku: Core Impact
I have never used Heroku so I have no dog in this fight but it oddly seems like a weird smear campaign, esp accompanied by threads promoting it's competitors and all these weird brand new 'throwaway' accounts posting in these threads. I get that they have an ongoing issue but a month ago Jira had a multiple weeks long outage and it basically only got like 1-2 threads total that made it to the front page that I saw (one about the initial outage and one the postmortem).
avl999··on Coinbase Q1/22 Shareholder Letter [pdf]
I had no idea Coinbase was paying so much. Even most of FAANG doesn't pay that much. My total comp when I was at AMZN after 5 years at the company circa 2019 came no way near 500k, and this was was with great reviews from both my manager and peers.
avl999··on Bugs that the Rust compiler catches for you
I root against rust because of its annoying evangelists (not calling this article that but the more general behaviour of the rust community).
avl999··on Netflix’s big power clash and rivalries behind the crash
One thing I appreciate Netflix for is atleast they are willing to do the bare minimum and give me 720p on Linux. I am also an Amazon Prime subscriber but Amazon is literally forcing me to pirate their shows because they refuse to serve more than 480p on Linux. Was trying to watch Jack Reacher last weekend and the quality was so bad that it was probably 360p, gave up after 3 episodes and ended up torrenting the season, which is a shame because I want to support shows I watch so they get more seasons.

In 2021 streamers should be supporting atleast 1080p for Linux but if they can't I can live with 720p like Netflix does, but serving 480p is just disrespectful and looks awful on any decent size modern monitor.

avl999··on Lenovo ThinkPad P1 Gen3 Review – with Linux
I don't want to have to keep track of charging yet another device, esp one as important and frequently used as headphones. Heck, some days I forget to plug in my phone to charge let alone headphones. Not worth the headache esp when there is another version of the device available with "infinite battery life". If some people prefer wireless and don't mind having to deal the potential inconvenience of always having it charged then more power to them... my problem is when companies try to push wireless headphones on us by taking away the 3.5mm jack.
avl999··on Lenovo ThinkPad P1 Gen3 Review – with Linux
> This mindset is similar to what people with wired headphones think of Airpods et al. It's not an apparent benefit when you're in the bubble of thinking it's normal to have a wire going across your torso all day and hearing the thuds and bumps propagate through the wire to your ears. But when you buy a pair of wireless buds and have them for a week - you don't go back. You've discovered freedom.

What is abnormal is that in 2022 people think it is acceptable to be forced to use wireless headphones and have to constantly have to think and worry about keeping them charged, esp when they are used in a context where you quite possibly have them plugged in your ear all day.

Wireless headphones have their place (primarily in outdoor active settings in audio only contexts for small periods of time). But if you are sitting in front of your computer all day, there are these magical devices called wired headphones with infinite "battery life" and world class sound quality that you don't have to worry about being out of charge in the middle of an important meeting. Unlike wireless ones they also guarantee audio always being insync with video if you are watching a video regardless of the type of device/machine/operating system you are using them on, something I have never been able to get consistently working to my satisfaction with bluetooth headphones.

avl999··on Lenovo ThinkPad P1 Gen3 Review – with Linux
Thinkpads work. They don't make user hostile choices like zero-upgradability and zero-repairablity, the touchbar, replacing the esc key with the touch bar 'key' (only to roll it back) like the the macbooks. They also don't make confusing usability decisions like the giant ass trackpad that routinely registers false positives as you type.

I recently got an old refurbished Thinkpad T430 for casual use when I am not near my desktop and installed Debian + LXDE on it. T430s are models from 10 years ago and is more enjoyable to work on than the 2019 MacBook Pro provided by my employer that I have to use for work. The only way I can make the MacBook tolerable is by using it in clamshell mode connected to monitors + physical keyboard/mouse so I don't have to interact with the actual hardware. It takes off like a rocket engine and warms my side desk pretty well (not to mention physically hot to touch, can't even imagine using it on my "lap"), docker is crap on it, not to mention the cmd-ctrl nonsense in addition to the things mentioned earlier. I have already dropped my Thinkpad a couple of times in pretty bad falls as it has survived whereas I don't have the same level of confidence in the MacBook.

avl999··on Making Faster B-Trees with Go Generics
A lot of it is cargo-culting based on comments of the go-team members and applying the advice of go team members as a blanket as opposed to applying it more surgically in the context of your application.

For example I used to get a lot of pushback from the go community when using an assertion library, for those not familiar, go's testing library doesn't have support for asserts so you end up writing a lot of code like

  if  want != got {
    t.Fatalf(....)
  }

this gets esp annoying as you deal with more complex objects. Many in the go community criticize using an assertion library to write simple assertions as in other languages for your tests, citing that the go team members are against casually bringing dependencies in your project. Not realizing the intent Go Team's "statement against dependencies" is a targeted word of caution urging people to think about the dependencies they bring into their project rather than a blanket attitude against dependencies.

Almost certainly Go Team would not advise against bringing in a build time time dependency that is not even gonna be part of the binary you ship that will make your tests easier to write and error messages consistent.

avl999··on Python’s “type hints” are a bit of a disappointment to me
I find it interesting how we have come full circle on static typing. When I was in University 2009-2013... and years leading up to it, dynamic typing was becoming the hot thing after years of Java/C/C++ dominance. Statically typed languages were looked down upon and talked about as being analogous to "Enterprise", "suit and tie" type soul crushing software development. We had people fulling in Ruby/Rails bandwagon, Java/C/C++ starting to become deprecated from university curriculum in favor of Python... JS starting to eat the front end and HN startups were talking about how they write their entire stack in a flavor of Lisp.

And now, just a few years later- Rust, Go are two of the hottest languages around, TypeScript is eating JavaScript, Python/Ruby have added static typing constructs, C# continues to do well in its niche and even Java of all languages has become somewhat cool again even though being Oracle product.

It's been an amazing transition to watch in action play out in front of my career, I can't even imagine those who have been in the industry for 30-40years who have probably been through a dozen of these cycles.

avl999··on Ask HN: Switching from Java Back end dev to systems programming dev?
The term "Systems Programming" is pretty wide and encompasses everything from databases and distributed systems which can and are written in Java (eg Cassandra, Zookeeper, Kafka) to really low level embedded devices with only a few kb of memory.

I am not sure if you are committed to the later but for the former you can do that in Java by the finding the right company. I also think (but don't have anything to back it up other than anecdotes) that the job market for the former is much bigger than if you solely restrict yourself to embedded systems, not just in Java but also in Rust/Go where a lot of companies are making that type of software.

For embedded device playing around, you could do some fun projects with micro-controllers (eg Raspberry Pico or ESP32):

* Write tiny db library (think sqlite with a smaller set of features)

* Write a multitasking OS for the Pico (easier than writing an os for traditional machines as you don't really have to support peripherals, you could look at FreeRTOS api and try to implement something that looks like it)

← PreviousPage 2 of 9Next →