Better HN
topnewbestaskshowjobs
Log inSign up

physicles

1,822 karma · joined Feb 3, 2019 (7y ago) · 645 submissions

Submissions

comment 4y ago · link · parent

Yeah I remember hearing that announcement about incentives and thought it was obvious that crappy apps would come to dominate the store. Two things would’ve made the App Store better:

- First-party apps using the same SDK as third-party apps. This would’ve forced the third-party sdk to be awesome from the beginning, but it also would’ve delayed the launch of WP7 by at least 4-6 months. It wasn’t until a couple years later that some first-party apps switched to the public sdk and improvements were made, but by then it was too late.

- Google allowing us to build official apps for YouTube and maps. We even offered to build and maintain it, but they simply refused to allow those apps to exist on our platform.

I still had a wonderful time working on the product 2008-2012, but it’s really a shame WP never made it as a viable third platform.

comment 4y ago · link · parent

It seems you're focusing on the fact that a conditional statement can be logically true independent of whether its hypothesis itself has any merit. (e.g. the proposition "If the sun goes dark tomorrow, then within a few years most people on earth will almost certainly be dead" is sound, even if the sun probably doesn't go dark tomorrow)

But like GP said, the conditional statements themselves presuppose that vaccines are the only variable affecting life expectancy. But that's not true, there are other factors.

comment 4y ago · link · parent

In fact, you can paste a .torrent file into your baidu drive and it’ll download the torrent for you right into your drive. If someone else has already downloaded the same torrent then it basically appears instantly.

The catch is that the only fast way to download files from your baidu drive is to install the client on your computer, which I’d only do inside a VM.

comment 4y ago · link · parent

Finally, someone points out the emperor has no clothes. When customers first started requesting encryption at rest, it didn’t make any sense to me — the threats it mitigates aren’t worth worrying about if you’re using public cloud.

So it is just a checkbox then.

comment 4y ago · link · parent

Yes, went from 40 to 32 about a year ago. One of the best decisions I've ever made.

I'm about 15 years into my career, with about 5 years as senior tech guy at my current company. I have a great relationship with leadership. Another tech guy was already working 4 days (I think it was part of his initial negotiation), so I asked if I could too. I got the OK and took the pay cut.

At 5 days a week, I felt close to burnout for years (the work is interesting and challenging, and therefore tiring). Now work feels sustainable, life is so much better, and I have energy for personal projects. It also helps that the company is already fully remote so I can work from anywhere.

I wouldn't want to do 3 days a week -- projects would drag on 30% longer and I think I'd really feel that hit to my velocity. 4 is the sweet spot for me.

comment 4y ago · link · parent

There’s an important reason to keep up these computer-in-your-head skills: you don’t have an interactive debugger in production, or on customer devices. If you can’t reproduce the problem, then all you have is code and (hopefully!) enough logs to figure out what’s going on and make a fix.

comment 4y ago · link · parent

Terminator for a couple years now, because it has native support for split windows and is otherwise pretty good.

tmux is great, but it essentially breaks multi-line text selection (you end up selecting bits of text from an adjacent pane), an update in any pane will cancel text selection in any other pane, and mouse wheel scrolling doesn't work.

Terminator solves those issues and also has great unicode/IME support -- I can type Chinese directly into the terminal.

comment 4y ago · link · parent

I use k9s every day, love it. Only problem is that the log viewing interface is buggy and slower than kubectl get logs. Still love it though.

comment 4y ago · link · parent

I have a giant doc called rude-qa.md that has a bunch of questions an opinionated new hire (dev or manager) might ask about our architecture, followed by a brutally honest “here’s why we did it this way”. Often the answer is something along the lines of “I didn’t have enough experience designing systems back then. We could switch now but the cost is high and there’s not much benefit”. Humility is key. It really helps clarify my own thinking too.

comment 4y ago · link · parent

Some of my best memories from childhood were waking up early on a Saturday morning and hacking in that blue and white screen in a silent house for a couple hours before my family woke up. No Internet yet, so I got this book[1] for my 10th birthday and went through it cover-to-cover probably several times.

Like so many here, QBasic literally altered the course of my life.

Does anyone here remember that feeling the first time you realized the power at your disposal?

[1] https://www.amazon.com/Mastering-Quickbasic-Rita-Belserene/d...

comment 4y ago · link · parent

Former born-again evangelical Christian here, stopped believing about 10 years ago. I haven't yet found anything like the communities within the churches I was deeply involved in. But I do think it's possible to find outside religion, and I'm getting closer every year.

I've been lucky to live for the last 10 years in a place* where it's easy to form lasting friendships with like-minded, earnest people. For me, I know I'm in the right place when I have friends with whom I can share my insecurities, and they can share theirs, and there's no judgment.

From here I think it's just a matter of prioritizing community whenever it's time to move next, whether it's seeking out groups of friends from our little diaspora or making new friends. That makes sense to do whether I have a partner or not.

(*never expected that Beijing would be so great in this way. I don't know if the expat scene in other major cities is similar; maybe it's just because the community is small here and the city attracts people who prefer not to coast through life)

comment 4y ago · link · parent

Pretty sure GP is a tongue-in-cheek bug report.

comment 4y ago · link · parent

I’d love to see that too. Mormonism for example would rank very high in “Alumni Salary” and “Quality of Alumni Network”, but low in “Diversity”, “Fees”, and “Amount of Bullshit You Need to Swallow”.

comment 4y ago · link · parent

I honestly don’t think that’s relevant.

A whiteboard interview tests your ability to do something you do constantly while writing code: you look at the code you wrote and run it in your head with enough fidelity that you can verify it to a first approximation. If you can’t do that, you’re going to be slower and you’re going to make more mistakes than someone who can.

Small contrived problems like recursion are useful for testing this specific skill. A program to calculate e.g. Fibonacci using recursion isn’t that complicated; to me it seems like table stakes for actually writing new software.

comment 4y ago · link · parent

Spinlaunch as a concept actually has some merit, as it would be one of the cheapest ways to get enormous amounts of mass off the moon’s surface. They’re a couple decades early for that, but I’m still interested to see if they can make it work on earth.

comment 4y ago · link · parent

I just had a terrifying vision of the alternate universe where VBScript became the lingua franca of the web.

JavaScript isn’t perfect, but standardizing on VBScript would’ve been a catastrophic mistake.

comment 4y ago · link · parent

Here's a way to avoid having to push the image (but you do still have to build it).

If you're using k3s and containerd for the container runtime, you can build the image with docker and then load it directly to the place containerd expects it to be stored. Then if the pod's imagePullPolicy is IfNotPresent, simply deleting/restarting the pod will be enough to get your new code running.

The magic incantation is:

docker save the-image-name:latest | sudo ctr -a /var/run/k3s/containerd/containerd.sock -n k8s.io image import -

But for front end development where auto-reload is super useful, I don't use containers at all. Just expose whatever services you need outside the cluster using NodePort or host mode networking.

comment 4y ago · link · parent

> They forgot one con off pull based deployments which is that you need to put a repository key in your cluster where your code is running.

Conversely for push-based deployments, there's a process running somewhere outside your cluster that has admin access to your cluster. Did you analyze the threat models for both push and pull, and decide that push is less risky?

comment 4y ago · link · parent

> The most important metric is consistent and passive income from wealth.

This is an opinion with which reasonable people can disagree.

You write as though it’s impossible to hold a job you don’t love and at the same time work toward self-actualization. This is clearly not true for all definitions of self-actualization that I’m familiar with.

comment 4y ago · link · parent

The question “what is my ideal job?” doesn’t always have to have the same answer. We learn. We react. We have new experiences, which become routine, then we seek novelty again. Or, convince ourselves that it’s a really good deal and stick around.

Relationships are different though. I see work as primarily transactional, whereas personal relationships work best when they aren’t. In a friendship it’s common for both people to grow in the same direction, while a company is inflexible and doesn’t respond to your individual growth so it’s more likely that you’ll “grow apart.”

comment 4y ago · link · parent

Not really, they're just inconvenienced for part of a day. As long as your phone number is linked to your national ID, it's easy to get another SIM card, and you can just ask a friend for help buying another phone.

The person who smashes their phone, on the other hand, would be totally screwed. Ubiquitous surveillance means that cell phone theft is basically not a thing anymore because the thief is pretty much always caught.

comment 4y ago · link · parent

Yeah. Partial list of things you currently cannot do in China without a phone (at least, where I live):

- Go to the supermarket (you can ask a friend with a phone to help you order online)

- Take a taxi (usually, depends on the driver)

- Eat at a restaurant

- (Basically, enter any place of business)

- Go to the hospital

- Travel to another province

- Visit any scenic area or large public park

- Get a Covid test

- Visit your friend’s apartment (usually)

What if your battery dies? Super-reliance on cell phones means this is a solved this problem: it’s trivial to rent a charger anywhere there’s a convenience store.

To be clear, I also see this as an anti-pattern. The presence or absence of an expensive connected device should not restrict what a person can do in meat space. A person not carrying a mobile phone is still a person.

But I don’t see how you actually do contact tracing at scale without this. In the beginning of the pandemic, entering a supermarket meant writing your contact info (including ID number!) on a paper ledger at the entrance. Fuck that.

comment 4y ago · link · parent

The older I get, the more I hold the following two thoughts simultaneously in my head:

- "Young people are insufferable. They know nothing but think they know everything."

- "Thank $deity for young people. They have the naïveté to question everything and the energy to try fixing it."

comment 4y ago · link · parent

When I was 9 or 10 I went with some friends and their parents to a park that had a massive tree that was very easy to climb. Two of the boys and I hopped on and just kept going. Finally turned around either because we were shouted down by their parents or because one of us finally had some sense.

Later on that day, a girl from their family was climbing on a low branch (maybe 2m off the ground), fell, and seriously messed up her ankle or knee. She was on crutches for a while.

The boys and I must’ve been somewhere between 8 and 12 meters off the ground. In retrospect it’s one of the most dangerous things I’ve ever done, and I’ve done multi-pitch trad climbing.

comment 4y ago · link · parent

I wrote one of those last week as a sort of poor man’s video editor. Besides aliases for common commands (like extracting a time range without re-encoding), it also takes the tedium out of repeatedly typing file names. Output file names are generated based on the input file name, with a prefix that auto-increments like sql. Input files can be referenced by prefix. It makes a huge difference.

comment 4y ago · link · parent

I agree that keeping a cookbook of stuff pasted from the internet without knowing the fundamentals is an anti-pattern.

For me (and probably for GP), my cookbook is stuff that took me more than a few minutes of tinkering or reading manpages to figure out, and it’s stuff that I use maybe once every couple weeks — not often enough to memorize, and annoying if I have to figure it out again.

comment 4y ago · link · parent

Check upwork or fiver. There are people offering a wide variety of expertise in a format similar to that outlined in the article. I know someone who hired someone to talk about designing building ventilation systems for two hours — it was relevant to his work, so he basically found a way to hire a consultant for a fraction of the normal price.

comment 4y ago · link · parent

Perhaps your colleague sympathizes with the Russian arguments for invading Ukraine (it used to be ours, therefore it is still ours) because he believes China’s similar stance about Taiwan (it has always been a part of China, therefore we are justified in taking it by force).

Is he genuinely curious and intellectually humble, or is he unusually skeptical about western media and prone to both-sidesism (e.g. does he talk a lot about NATO feeding the fire), or is he just a troll?

The brainwash is real, but you’ll never help him by telling him he’s brainwashed. If he’s actually open to it, asking questions patiently and with empathy is the best way to show him where his blind spots are.

comment 4y ago · link · parent

As someone who’s lived in China for some time as a mid-level nobody working in tech, it’s honestly no big deal. Just don’t do anything stupid, like committing a crime or posting about sensitive stuff on wechat, and there’s very little to worry about.

I definitely wouldn’t have the courage to be a journalist here, though. And even for us nobodies, China is becoming less welcoming to foreigners with every year that passes.

comment 4y ago · link · parent

Really shows how the news basically sets the background music for everyday life around the entire country.

My Chinese friends have said that the evening news always comes in three parts: 1. Chinese leaders are busy; 2. Chinese people have good lives; 3. People outside China have not-so-good lives

1
151617
22