HNHacker News
TopNewBestAskShowJobs

aisofteng

588 karma · joined September 21, 2016

submissionscomments
aisofteng··on Ask HN: What's your "it's not stupid if it works" story?
Years ago my team was tasked with greenfield dev of a cloud native app while the platform/infrastructure was also evolving. We worked nights and weekends to get it done on time only to find out at the last second that the platform team had enforced controls on internal services being able to access the internet, requiring authentication to do so. This was news to us.

We were behind schedule and had, I think, three separately implemented/maintained/deployed services that needed to be able to access the internet to do their work. Rather than implementing the intended auth mechanism in each service, writing tests for it, going through code review, and redeploying, I instead added nginx to the base Docker image they all used, configured them to send requests to that nginx instead of as normal, and made that nginx instance man-in-the-middle our own services to attach a hardcoded HTTP header with the right creds.

I man-in-the-middled my own services as a hack - dumb but it worked. It was meant as a quick hack but stayed for I think a couple years. It did end up being eventually being the source of an outage that took a week to diagnose, but that's a different story.

aisofteng··on Ask HN: What's your "it's not stupid if it works" story?
Not quite what was asked but a few of the stories here reminded me of this.

Years ago I was working on developing a new cloud native service. The particular microservice I was working on had to call out to multiple other services, depending on the user parameters. Java 8 had just come out and I implemented what I thought was an elegant way to spin up threads to make those downstream requests and then combine the results using these fancy new Java 8 stream APIs.

I realized at some point that there was a case where the user would want none of those downstream features, in which case my implementation would spin up a thread that would immediately exit because there was nothing to do. I spent a couple days trying to maintain (what I saw as) the elegance of the implementation while also trying to optimize this case to make it not create threads for no reason.

After a couple days I realized that I was spending my time to try to make the system sometimes do nothing. When I phrased it that way to myself, I had no problem moving on to more pressing issues - the implementation stayed as is because it worked and was easy to read/understand/maintain.

To this day, I avoid the trap of "sometimes make the system do nothing". One day, that performance optimization will be necessary, but that day has not yet arrived in the ~7 years since then.

aisofteng··on Alphabet Seeks to Cut 10k Poor-Performing Googlers
Nobody becomes a billionaire off salary. Generally speaking, billionaires come to be billionaires because they created something that has value in the billions.

Someone who has created their own worth saying that there are people being paid salaries without creating enough value to justify said salaries is not tone deaf. I bet most billionaires - at the very least, the self made ones, which is most of them in the US - have a better sense of value than most other people.

The comment isn’t about making too much money. It’s about being given too much money in exchange for what is produced.

aisofteng··on Launch HN: Fig (YC S20) – Autocomplete for the Terminal
I see a lot of negativity here, and I do agree about the daily ping which I see you’re removing, which I think is a good move.

As someone that has done cloud development at a giant corporation that offers public cloud, I think that this tool absolutely has an enterprise use case. In my particular experience at my particular (tens of billion dollars plus yearly revenue) previous employer, our SREs would have massively benefitted from having this. I’ve been woken up at 3am while on call for L3 support just to step out SREs through tools we wrote to help them do their jobs that we failed to adequately train them on and/or that they didn’t have the bandwidth to absorb due to the volume of services they were tasked to support.

From that point of view, supporting macOS first is the right move in my opinion because at enterprises developers are standardizing on macOS, and so are SREs.

This can solve a real pain point. Best of luck! And if it may happen to be helpful, let me know if you’d like to chat about this use case in more detail.

aisofteng··on Show HN: I made a sandbox game to help with financial planning
A strange comment to leave on a social media site.
aisofteng··on Why are boys academically underperforming? [audio]
That’s a different problem. “Fix toxic environments that keep certain types of people out of an honest line of work” is a good problem to solve. That is not the same as “let’s increase the number of people of a certain demographic within an industry”, in and of itself, taken entirely on its own.
aisofteng··on Medicine's Machine Learning Problem
As a fellow practitioner, I entirely agree. Actually, reading this article made something click for me regarding the oft discussed and denigrated “bias in AI” always brought up in discussions of the “ethics of AI”: there is no bias problem in the algorithms of AI.

AI algorithms _need_ bias to work. This is the bias-variance trade off: https://en.m.wikipedia.org/wiki/Bias–variance_tradeoff

The problem is having the _correct_ bias. If there are physiological differences in a disease between men and women and you have a good dataset, the bias in that dataset is the bias of “people with this disease”. If there is no such well-balanced dataset, what is being revealed is a pre-existing harmful bias in the medicinal field of sample bias in studies.

If anything, we should be thankful that the algorithms used in AI, based on statistical theory that has carefully been developed over decades to be objective, is revealing these problems in the datasets we have been using to frame our understanding of real issues.

Next up, the hard part: eliminating our dataset biases and letting statistical learning theory and friends do what they have been designed to do and can do well.

aisofteng··on Ask HN: What does mastery look like in software engineering?
This comment made me realize what my mentor did years ago. He would have the entire team list all possible solutions to a problem, including the obviously bad ones, then have us whittle down the list based on pros and cons of each until we reached consensus on what to do. It was a teaching exercise and I didn’t realize it.

I’ve repeated it that exercise with junior engineers to great effect. Some catch on over time and start intuitively considering the trade offs of a few reasonable solutions to a problem; some don’t.

I never reflected on what he was doing there; thanks.

aisofteng··on Deep-learning text-to-speech tool for generating voices of various characters
> running anything related to AI involves GPU instances

This is not true. A _lot_ of AI applications use algorithms such as logistic regression or random forests and don’t need GPUs - partly, of course, because GPUs are so expensive and these approaches are good enough (or more than good enough) for many applications.

aisofteng··on Why are boys academically underperforming? [audio]
Why is “get more women into STEM” a worthy goal in and of itself?
aisofteng··on Dr. Levitt: Your words have power. Use them carefully
Watson is pretty racist himself, actually: https://www.vox.com/2019/1/15/18182530/james-watson-racist
aisofteng··on Fatal brain-eating microbe found in Lake Jackson, Texas water supply
No. If you have a 1% solution (to pick a number) and you add more 1% solution, it doesn’t become 2%.
aisofteng··on The Long-Term Stock Exchange Opens for Business
I think IBM is one.
aisofteng··on The Long-Term Stock Exchange Opens for Business
Indeed, often legal language is left as open to interpretation when new so that the manifestation of reality can polish it over time. This is a new venture; being imprecise about “long-term” now is, in my interpretation, the right move, because it should be refined over time based on how this all plays out.

The idea is good, in my opinion, and will develop over time to become more concrete, most likely.

aisofteng··on The Long-Term Stock Exchange Opens for Business
I’m a senior software engineer and software architect at a tech giant that has been lucky to have the experience of launching a new product twice, operationally treating it as a well funded startup and growing it to multimillion dollar revenue while instilling development practices that ensure quality while also being adaptive to change. I read the job description for the senior software engineer posting, and at first thought I might be a good candidate.

I generally want to dedicate my efforts to long term betterment of humanity, rather than “we make the world better by making a mobile app for dog walkers” sort of thing, so this position is attractive to me. However, this “full stack” position mentions only JavaScript and Rails as required experience.

Is your entire stack Rails and JavaScript? That turns me off entirely (and makes me unqualified).

aisofteng··on Mozilla lays off 250 employees while it refocuses on commercial products
> Sadly, the changes also include a significant reduction in our workforce by approximately 250 people. These are individuals of exceptional professional and personal caliber who have made outstanding contributions to who we are today. To each of them, I extend my heartfelt thanks and deepest regrets that we have come to this point.

From TFA.

aisofteng··on Show HN: Is It Worth the Cost?
What about the cost of operating an equivalent service in house?
aisofteng··on The Wetware Crisis: the Dead Sea effect (2008)
The “better” devs work on creating the things that will provide business value in the future and that require more skill/expertise to create.
aisofteng··on YouTube removed a viral video of two doctors calling for an end to quarantine
The goal of the shelter in place is to “flatten the curve” so that the medical system is not overloaded. According to that article, they believed that their medical system could handle the load and has.
aisofteng··on In 4 US state prisons, 3,300 inmates test positive, 96% without symptoms
See: Simpson’s paradox, where trends in subgroups, taken together, can indicate a different trend.

https://en.wikipedia.org/wiki/Simpson%27s_paradox

aisofteng··on How Big Technical Changes Happen at Slack
Because they sell a product that fits customers’ needs. The tech stack doesn’t matter.
aisofteng··on Ask HN: How to easily transfer files between devices
Impressive effort. I’m sure you looked at it, so I’m curious why not use gRPC? To avoid HTTP?
aisofteng··on Alan Moore on superhero culture
This is in line with some observations I’ve made. If you notice, decades ago, superheroes were imbued with some sort of power and then study it and train diligently, eventually mastering it. The majority now, however, are suddenly thrown into a confusing and frightening world, eventually asserting themselves.

I wonder whether that trend reflects our trends in psychological states or simply on our seemingly more complex, information overloaded world.

aisofteng··on Bringing Google Live Transcribe's Speech Engine to Everyone
The IBM Watson STT service supports this: https://www.ibm.com/cloud/blog/whos-speaking-speaker-diariza...
aisofteng··on Homemade IC (2018)
It’s a common abbreviation. I don’t know how you’ve worked in computing of any sort for decades without coming across it.
aisofteng··on Show HN: Brain Test – Stroop Effect
The Stroop test is not new: https://en.m.wikipedia.org/wiki/Stroop_effect

It’s commonly taught in psychology and neuroscience undergraduate classes.

aisofteng··on Tests show bootleg marijuana vapes tainted with hydrogen cyanide
From your link:

> PHYSICAL HAZARDS: May release toxic fumes in burned.

The article mentions the process of burning it as resulting in hydrogen cyanide, which is consistent with the sheet.

aisofteng··on Why didn't the Romans contribute much to mathematics?
>most Western history lessons completely ignore everything but Western Europe

That’s because they’re Western history lessons. I had world history as a separate class in high school.

aisofteng··on Kei – A small and expressive dependent language
This is standard language that is perfectly readable if you’re familiar with the involved concepts.
aisofteng··on Meeting online has become the most popular way U.S. couples connect: study
>The problem is in the asking. If I see an attractive woman shopping and go speak to her it may be the 10th time she's been stopped in this one trip.

So what?

Do people really rule out meeting a partner and having a family because of a fear of maybe inconveniencing someone?

Page 1 of 16Next →