Better HN
topnewbestaskshowjobs
Log inSign up

physicles

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

Submissions

comment 6y ago · link · parent

I’ve dealt with a few of these too, and the point at which you should just give up and switch to python/bash/anything always comes sooner than you think.

By the way, this is an anti-pattern known as a Turing tarpit: https://en.wikipedia.org/wiki/Turing_tarpit

comment 6y ago · link · parent

Seriously. GP should take the time to read The Subtle Art of Not Giving a Fuck. It got me out of that mindset a couple years ago.

comment 6y ago · link · parent

Learning has a way of increasing job satisfaction and giving you opportunities for larger scope in the future. You can get that in big tech too: my first four years out of college, I was fortunate enough to have some incredible teammates who seemed like gods, and they taught and showed me things it would’ve taken me years to learn on my own, if I ever did.

But then I switched teams and stuck around for 5 more years before leaving out of boredom. I joined a startup, and learned far more in that first year than the last five years in Big Tech. In the span of two years I went from not really knowing how SSL worked to being the architect and primary coder for a couple kubernetes deployments with a few dozen services.

The thing about big tech is that you become super specialized. Sometimes that’s fine, like if you’re a kernel hacker earning $$$, but if you join the wrong team then your world just shrinks.

I don’t ever want to go back to working on a tiny piece of something, even if that something has millions of users. Even if nobody exists on purpose, nobody belongs anywhere, and everybody’s gonna die, I still like the feeling that the work I do somehow matters to the people using the product.

So a dev team of less than 10 is probably the sweet spot for me.

comment 7y ago · link · parent

That has to be the CCP’s long-term goal: they want to stay in power, and they need to build a rich citizenry so people don’t get uppity and decide revolution is better than the status quo.

But while Singapore feels more or less like the west, China most definitely does not, and the gap grows wider year after year.

comment 7y ago · link · parent

I’ve been living in China for some years, and you know what’s surprisingly not a terrible model for a social network? Wechat, if it were rebuilt by people who value freedom and privacy. Think of it like WhatsApp but with a feed — just enough social to help you stay connected with your IRL friends, without turning everything into political discussion.

(And yes, I realize that it’s partly the censorship here that steers people away from politics and keeps it social, but I don’t think that’s all of it)

I don’t see why a social network should also build in first class features for sharing and commenting on news. What’s the old adage about discussing politics and religion? Why should it even be POSSIBLE for me to argue with some nazi I don’t know in the comments section of an article my grandma shared with my uncle? Seriously, wtf?

If you want a site purpose-built for discussing news as it goes viral, Reddit is fine for that.

Interesting things about Wechat’s feed:

- It’s not what you see when you open the app. Instead, the app opens to your messages. This is huge.

- It’s strictly chronological. Yep.

- Each time I open it, the 5th post is always an ad, and it’s labeled as such.

- It’s trivially easy to restrict most people from seeing only the last week, or month, or six months of your posts. People you’re not friends with can’t see your posts BY DEFAULT.

- When your friends post, you can only see comments and likes from your own friends. (it's easier to notice unexpected connections, which could be an upside or a downside depending on your situation)

- If you want to re-share something, there’s no button for that: you have to open the page, copy the link, and post it again. This is obviously intended to make the censors’ jobs easier, but adding friction also cuts down on low effort sharing.

How it’s otherwise different from Facebook:

- There’s no such thing as viral posts. Sure, the same link might get shared in thousands of private groups, but the discussion isn’t shared. I think this is a feature, not a bug. Again, there are plenty of websites specifically for discussing news with strangers as it goes viral.

- It’s mobile-first (basically, mobile only). You can’t see the feed on PC, so if you want to write an angry tirade about f-ing Yankees fans on your friend’s post, you’re gonna get sore thumbs. Again, adding friction means less trash makes it on the network.

- Everyone has it hooked up to payment, so splitting the bill at the end of dinner is trivial. There’s even a feature for sending a bill to a group with N people that splits it N ways and shows who has and hasn’t paid.

- (Probably some other stuff, but I basically stopped using Facebook 7 years ago when I moved to China, partly because my parents and old friends are on there sharing news stories I'd rather not know their stance on)

Even aside from the censorship, Wechat isn’t perfect — its interface hasn’t changed in the 7 years I’ve been using it, so stupid stuff like pinning contacts or putting groups in a separate tab or even goddamn EVENTS aren’t things you can do in the app.

But as a social network, it’s got most of the value while being way less problematic than Facebook.

comment 7y ago · link · parent

I’ve been using Typora for about three years. One of my favorite pieces of software for sure.

comment 7y ago · link · parent

Dang, we were relying on zoom.us for cross-GFW conferencing. It was even more reliable than wechat. Are there any good alternatives, except Skype for Business?

comment 7y ago · link · parent

True. But then you need to first teach the student about pointers/references, linked lists, and then binary trees. The point of this article was to explain recursion to an absolute beginner.

comment 7y ago · link · parent

Yep, it’s common enough that it’s considered an anti-pattern. It’s called “distributed monolith.”

comment 7y ago · link · parent

> Keep a record of "stupid errors that took me more than 1 hour to solve"

I’ve been doing this for the last three years, but electronically, and it’s amazing. In my home folder there’s a giant text file that’s like my personal log file. It gets a new line at least once an hour, when cron pops up a box and I type in what I’m working on. And for those times when I’m working on stuff that’s perplexing, I write to it as a stream of consciousness — “tried this, didn’t work” “wonder if it could be due to xyz” “yep, that was it.”

I’ve used it a few dozen times to either look up how I solved a weird problem, or why I decided to do something a certain way. I’ve even built pie charts of how I spent my time in the last quarter by sampling it Monte Carlo style.

comment 7y ago · link · parent

I agree. The only problem I see with “boolfixes” (as an old colleague called them) is the call site readability issue that the author pointed out. If you have the purpose of the bool right there at the call site, as with mandatory keyword arguments in Python, that issue goes away.

comment 7y ago · link · parent

Allow me to view log lines nearby a specific line that showed up in a search, kind of like grep -C n. Use case is that I’m seeing HTTP 500s from my web service. I can isolate the log lines for those requests, but if I want to see the extra lines (perhaps for a crash) that led up to it, I have to remove my search filter and manually set a time range that’s small enough that it returns fewer than 1000 lines.

That, and retention policies. I just had a disk fill up because Loki keeps saving data.

That said, I’ve been using Loki for several months and I love it. Keep up the great work!

comment 7y ago · link · parent

More important than whether it’s easy or hard, is the fact that it’s unnecessary. GKE is great and you only pay for your compute (as opposed to EKS, which is over $140/mo for the control plane, a move which always struck me as a terrible business decision).

I maintain two prod and two test environments: AWS+kops (since before EKS existed), Alibaba+kubeadm (because China), and two local ones that used to be minikube but are now just kubeadm. I spent a total of about two months getting the knowledge to do that, and these days I spend about 4 hours a week on maintenance. I do minor version upgrades but put off major ones because there’s not much business value and upgrades can break stuff.

It’s my least favorite part of my job. I’d rather be coding or doing architecture, which is what I spend most of my time doing. We’ll be moving the AWS stuff to GKE in a couple months. Still haven’t heard much on the quality of Alibaba’s offering. Their IaaS is solid but some of their other services will sometimes throw errors that return 0 hits on google, no documentation, which scares me.

comment 7y ago · link · parent

Perhaps I don’t understand the design decisions behind Helm, but it’s always struck me as having a severe impedance mismatch with k8s itself. It defines another entirely different schema, and relies on an agent running in your cluster that’s also trying to reconcile desired state with actual state (which k8s itself is also doing). I’m skeptical that you could use it extensively without also understanding the k8s stuff underneath it.

kustomize came along just as it’s become untenable for us to copy/paste config to multiple environments. I like that it’s pretty much the simplest possible way to customize yaml, and plan to dive in soon.

comment 7y ago · link · parent

The hardest part about learning a new language is maintaining motivation.

Learning a new language isn’t a hobby you can just add to your life like knitting or cooking. It’s more like an ambitious diet and exercise program, except the payoff is even less motivating. If you look good, everyone sees. If you can speak Japanese, nobody cares but other people you talk to whose English is worse than your Japanese. Like exercise, if you invest anything less than four hours a week, you won’t make meaningful gains, and it’s often months before you get anywhere. It’s a slog.

The trick (if you can call it that) is to find something you really want to do, badly, that you NEED your L2 to do. For Japanese learners, maybe maybe wanting to watch anime is enough. For English learners, maybe it’s watching American TV and movies. For Americans learning an L2, immersion is the pretty much the only viable approach.

Immersion is just a hack to motivate yourself by making your life almost unbearably difficult, with learning to speak your L2 the only way out.

Looking back on six years living in China and learning Chinese while working (borderline fluent in some topics but woefully inadequate in others), if I could do it over again I would:

1. Spend a few months getting the fundamentals down: learn pronunciation, drill it with a patient native speaker, go hard at 10+ hours a week book studying. (I did this)

2. Move somewhere to either work or study only in your L2, and where there’s barely any English speakers. Live there for a year or more. (I didn’t do this; I lived in a large city and had mostly English speaking friends and my work was in English)

There’s no way to fluency without spending hundreds of hours talking with people in your L2: ~500 hours for Spanish, ~1500 for Chinese or Arabic.

1
1819202122