1,822 karma · joined Feb 3, 2019 (7y ago) · 645 submissions
comment 6y ago · link · parent
For example, in an application you can use things like types and functions to make explicit the coupling between different parts. You can iterate and verify changes on the time scale of a few seconds (instead of waiting for a lambda deployment). You can use all the tools for exploring source code we’ve developed as an industry over the decades. And you can atomically change the entire application simply by deploying it.
Of course serverless has its use cases. But evolving a system like this article shows, without most of the tools and guarantees we enjoy when dealing with code, seems like an exercise in pain.
comment 6y ago · link · parent
Powers of 2 are incredibly helpful too: I can estimate that the square root of 4000 is around 60 because 4000 is close to 2 to the 12th, for instance. As a coder it’s well worth your time to memorize powers of 2 up to at least 2 to the 16.
comment 6y ago · link · parent
comment 6y ago · link · parent
The day after I got back we found out we had a case of covid-19 in our apartment block, so we were one of the first to get restricted entry/exit — each unit gets 2 cards and you have to present it when you enter or leave through the single open gate. I did 2 weeks going outside just twice to buy food, then slowly relaxed a bit. Many of my chinese friends are still basically not going out at all.
Now’s an exciting time for China because we’re at basically zero new cases in the country (had 4 new ones in Hubei yesterday, the rest were all retournees from outside the country). So since yesterday, it’s mandatory hotel quarantine for everyone who enters the country.
Really getting worried for my family and friends in the states though. Gonna have some long talks about how to prepare.
609.
Call for Volunteers – NECSI’s Distributed Ventilator Project(medium.com ↗)
1 points · by physicles · 6y ago · discuss
comment 6y ago · link · parent
- On Linux you have to learn bash anyway, because in the normal course of work you run across bash scripts everywhere.
- Everything on Linux is designed around the Unix philosophy and Unix tools, so PowerShell will feel out of place, and it'll be harder to find examples online. Also, Linux stuff is all configured via text files anyway, so PowerShell's object model is much less enticing.
- The shell's programming environment isn't that important because your scripts shouldn't be that long -- beyond 100 lines or so, you'd be way more productive using an actual programming language like Python instead.
I used PowerShell on Windows for 4-5 years professionally and it was great (finally ditching command.com was a revelation). Now, I've been using Linux, bash and stuff for about 3 years, and it's great. I guess I prefer the Linux environment because it feels tighter and faster.
comment 6y ago · link · parent
But it’s working, and at this point I’d rather be here than in many other countries.
comment 6y ago · link · parent
Now that I’m on Linux and doing open source stuff, I’d never consider using PS.
comment 6y ago · link · parent
Two and a half 9’s is a whole different story. We achieved about 20 hours of downtime last year even without HA on k8s bare metal in Alibaba cloud. But I’m uncertain whether that’s a feat we can repeat this year.
comment 6y ago · link · parent
- I’ve never hit the file system stuff. We all use Linux; all our code runs on Linux. I’m curious who the people are who are using Go on Windows.
- Network timeouts are a stupid gotcha I first hit about six months into my go tenure. You can set read/write timeouts on the Transport that’s used by the connection though; not sure why that isn’t covered.
- The wall clock time thing is new to me and looks crazy complicated; I’m angry that it’s something I have to know about now. It’s bad enough that time.Time operator == and .Equals() behave mostly but not quite the same.
Something that’s not in the article: the tooling situation (autocomplete, source navigation, and so forth) IS STILL WORSE THAN IT WAS TWO YEARS AGO. The old tools were perfect but were never updated for module support. gopls is still an unfinished mess; last week I had to write a script that auto-kills it if it uses more than 3GB of memory.
comment 6y ago · link · parent
Also, as another poster pointed out, humidifying a large room in winter requires several liters of water per day. The cost of distilled water would quickly dwarf the cost of the humidifier itself, so other types of humidifiers besides ultrasonic (namely evaporative ones, where the main danger is mold, which distilled water doesn't help you with) are more economical.
comment 6y ago · link · parent
Svelte's reactivity was also something we had in Splash, the Microsoft-internal UI framework that was used to build the Zune desktop app and Windows Phone 7/8. I haven't enjoyed building UI since then, but with Svelte I can finally enjoy frontend development again.
comment 6y ago · link · parent
Disclaimer: I work for a company that makes low-cost air pollution sensors.
comment 6y ago · link · parent
That’s probably possible for two reasons. First, the app’s principal designer maintains Steve Jobs-level creative control on the product. Second, as a sibling pointed out, Wechat primarily makes money from other stuff besides posts going viral﹡.
There’s not even a “repost” feature. You literally have to open the article, copy the URL, and create an entirely new post on your timeline. It cuts down on low effort sharing (of course, if you’re the government, you like this because it also slows the spread of so-called “improper information”)
Facebook died for me when it became possible for me to see Nazis arguing in the comments of an article my grandma posted. I mean what the fuck, how did we ever get there.
﹡ which unfortunately involves vacuuming up as much data about every aspect of everyone’s life as possible. It’s impossible to understate how pervasive Wechat is: if you only have this app and no other, you can still live very comfortably here.
comment 6y ago · link · parent
The closest thing to trending is that you notice that a bunch of your friends are all posting about similar stuff. Like when Li Wenliang, the whistleblower-doctor in Wuhan, died, or when everyone bored at home in quarantine was posting photos of brooms balanced to stand on end.
comment 6y ago · link · parent
I think it stems from a mismatch between the perceived cost and the actual cost of changing software, which one of the first comments on the article captured:
> That’s my take – the perception that software is simple to change, which stems from the lack of understanding of its inherent complexity by users, and the fact that it is, up to a certain point – is what makes requirements volatile.
Part of the problem too is that the actual cost of changing software varies by an order of magnitude or more, depending on how fluent the developer is with the tools they’re using, and how good they are at accommodating change. If that’s not something even we as a profession (if you can call it that) have been able to reliably quantify, expecting a client to understand it is beyond the pale.
I’ve been programming for most of my life, so if I see an app then most of the time I can get a sense for how long it’d take to build. But I still have this nagging feeling that building software — the act of translating what’s in your head into working code — seems to take way longer than it ought to.
comment 6y ago · link · parent
Other more complicated dating techniques like radiocarbon dating and ice cores are too abstract or complicated, and therefore easier to hand wave away as containing too many unprovable assumptions. For instance, serious YEC people like to point out that we're assuming that the speed of light or radioactive decay rates were constant in the recent past. If it seems insane to cling to bad arguments like this, welcome to the world of science-minded YEC people.
But tree rings... everyone has seen tree rings, and everyone knows that sometimes they're thicker and sometimes thinner. That's hard to argue away. The YEC camp tries: they point out we're assuming there's one ring per year. But when I realized that this really was their best argument, I had to give up YEC and find out how deep the rabbit hole went. About a year later, I was an atheist.
comment 6y ago · link · parent
The people in my compound who were confirmed to have the virus (we found out on the 12th) got it at a family gathering over the new year holiday in Shanghai. So obviously they weren’t wearing a mask then.
What seems to be making a difference in China — it’s no longer spreading like wildfire, if you believe the official reports* — is self-quarantine. Most of my friends have barely left home since the beginning of February. For a while, some restaurants that were still open wouldn’t let people sit together in parties larger than 2. And at least in Beijing, everyone who returns to the city after travel must undergo mandatory 14 day home quarantine, with fines or punishments for those caught violating (https://www.nytimes.com/reuters/2020/02/14/world/asia/14reut... though enforcement varies from place to place).
* Wuhan/Hubei are a tragedy no matter how you count. But at least Beijing is doing OK. I mostly trust the official numbers, simply because the Party has a strong vested interest in mounting a response commensurate with the threat. They can’t let the virus spread too much and rip apart the capital; neither can they afford to tank the economy for several months longer than necessary to contain the threat. Even with all the censorship, if you find yourself fighting against reality, reality wins.
comment 6y ago · link · parent
I’ve used this to figure out how much time I spent on certain tasks by sampling it Monte Carlo style. And sometimes when I run into some weird non-googleable problem, it happens again a few months later and the solution is in those files.
It’s like my own real-life syslog. Or like a scientist’s lab notebook.
comment 6y ago · link · parent
I think this is all based on experience. You know when the tests are going to give you value, because you know when you’ve been burned by a lack of tests in the past. You put tests where you’re worried about bugs appearing.
I write tests when 1) they help me bring up code (you’re gonna do some interactive test/debug cycles in the beginning, might as well do that with tests), or 2) I can’t sleep at night because the code is subtle or complex and I worry about its continued correctness, or 3) there’s a bug and it’s easy to write a regression test for it.
Sometimes writing code without tests is like putting sand into a pile: it works fine for a while, but as soon as you start overloading it, whole faces suddenly shear off. You can shore it up with your hands, but above a certain scale you’re battling to prevent collapse. Tests are like scaffolding you put in place to keep the sand from sliding away.
comment 6y ago · link · parent
If I have five pizzas, would anyone argue that the variable storing that fact should have a value of 0x0004? On the other hand, if there’s a stack of five pizzas, they’re either numbered 0..4 or 1..5 depending on your religion.