Better HN
topnewbestaskshowjobs
Log inSign up

thinkharderdev

1,874 karma · joined Jun 12, 2019 (7y ago) · 701 submissions

https://www.thinkharder.dev

[ my public key: https://keybase.io/thinkharder; my proof: https://keybase.io/thinkharder/sigs/Ibpz0COsvz2qYl2K8YfzrhucHf2rcZIxityh5WvYC_k ]

Submissions

comment 4y ago · link · parent

I recently went down a rabbit hole of watching speed climbing on YouTube. It's really mesmerizing: https://www.youtube.com/watch?v=n4n6xfu8VDU

comment 4y ago · link · parent

I've never had such sweaty palms in my life as when watching that part.

comment 4y ago · link · parent

I agree in general, but in the case of CEOs giving public remarks it's safe to assume they are talking their book. Regardless, I don't see it as particularly relevant that people have been pessimistic about technologies that turned out quite successful. For every instance of "they said revolutionary product X was crazy but it turned out to be wildly successful" there are probably a 1000 instances of "they thought revolutionary product X was crazy and it failed miserably and faded into irrelevance." In other words, you have to actually articulate a reason why you think VR will be as successful as Meta claims it will be rather than make a "they laughed at Einstein/Semmelweis/etc too" argument. And with respect to VR I just don't see it. I've played games on the Occulus and they are pretty fun but I just don't see what the value proposition of VR is beyond gaming. And VR gaming can still be a huge industry but I just don't see it being anything more than that. Whereas I think the value proposition of smartphones was fairly obvious. It of course wasn't clear than any particular phone (like the original iPhone, perhaps especially the original iPhone given that it only worked for one carrier at the time) would break through. So it could have been that Ballmer was completely correct if things had turned out slightly differently. But some smartphone would have broken through. I don't think VR is the same. It's not just that there is uncertainty over which particular product will take off, but uncertainty about how big the eventual market for VR products and services will be in total.

comment 4y ago · link · parent

Didn't listen to Lex Friedman's interview with Wolfram but I thought the Mindscape episode with Wolfram was excellent. Sean Carol is obviously deeply knowledgable about the subject at hand and managed to ask interesting, penetrating questions without being adversarial and making Wolfram defensive.

comment 4y ago · link · parent

Funny, I think the same of Rogan. Give both their guest lists to Tyler Cowen.

comment 4y ago · link · parent

I think it's perhaps possible that Ballmer, as CEO of a major competitor, was not engaging in dispassionate analysis and in fact there was a non-zero chance that the iPhone would gain significant market share.

comment 4y ago · link · parent

Wow, I really have no interest in OS development but that is one of the best resources I have ever seen for understanding Rust. Just read the section on async/await and it demystified everything I didn't understand.

comment 4y ago · link · parent

I think a big factor in Go adoption was exactly this. If you wanted a language that could be used for system-y programming (i.e. something that AOT compiles to a native binary) then Go was the only game in town (before Rust came onto the scene) aside from C/C++. And the tooling for C/C++ development is pretty atrocious. I hadn't done any C++ dev in a long time until relatively recently and was pretty shocked to see how bad it was. It's amazing that there is still no reliable way to manage dependencies and the various C++ package managers out there (vcpkg, conan, etc) are still extremely finicky.

comment 4y ago · link · parent

Yeah, I agree that Critical Mass is wildly counter-productive but would also be extremely surprised if anywhere close to 10-20% of regular cyclists participate in such events.

comment 4y ago · link · parent

I think 10-20% is a wild overstatement. There are certainly cyclists who do stupid and inconsiderate things (and in my experience those people are generally reprimanded by other cyclists), but just because they are doing something that you as a driver find inconvenient doesn't make them assholes. For instance, riding side-by-side is often a deliberate strategy because cars will often try to pass you without veering into the opposite lane or slowing down at all. Depending on the width of the traffic lane this is probably illegal (at least where I live and you are required to give cyclists 3 feet of space when passing). Riding side by side just forces the driver to do what they should be doing anyway. Likewise, if a cyclist is in the road despite their being a bike lane, it is quite often for a reason. Believe it or not we do not enjoy riding within inches of cars and try to avoid it if possible. Sometimes bike lanes are full of debris and broken glass and it is safer to ride in the lane than have a tire blowout at high speed.

comment 4y ago · link · parent

The other insane anti-pattern I see in US cities is to have the bike lane directly next to on-street parking. So if someone parks and opens the driver's side door it opens directly into the path of any oncoming cyclists. Almost every regular bike commuter I know has a story of being "car doored" or at least having several close calls.

comment 4y ago · link · parent

Why not choose another route to drive where you are not endangering cyclists? Why not choose one of the many other ways to get where you are going so that you don't have to be in other people's way? Why not relax and realize that having to slow down your vehicle for 30 seconds in order to pass a group of cyclists safely is an incredibly minor inconvenience? I can keep going but I think you get the point. We live in a society where we share some resources with other people. Sometimes that causes contention. Sometimes when I'm walking on a sidewalk I'll come up on a parent pushing one of those double strollers slower than I am walking. I find it slightly annoying because they are in my way. But I am also an adult who realizes that the world does not in fact revolve around my desires, so I slow down and wait for an opportunity to walk around them, smiling politely while I do.

comment 4y ago · link · parent

Where should they do it?

comment 4y ago · link · parent

You're right, I shouldn't have said "of this kind" because in this case I don't think any sane person would think this was nefarious. But my point was just that, to use you example, the only way you would know that said database had confidential information in it would be to "decrypt" it. Then it is a question of why you did that. Was it malicious? No, but a sufficiently bad faith actor my try to argue that it was so you should be careful.

Take another example. Say you fire up Wireshark in on a public network like a coffee shop and see some unencrypted network traffic with confidential information in it. The packets were delivered to your computer and there for anyone to see. But why are you capturing traffic that wasn't intended for you (in the broader sense)? What if the traffic IS encrypted but with weak encryption that is easily cracked? As soon as you step off the path of "I am viewing information which was clearly meant for me" you're in a gray area. Of course as a society we should recognize that people who do these things and then responsibly disclose them are doing a valuable public service, but not everyone understands these things. Or in this particular case, some people are heavily incentivized to make bad faith arguments in order to deflect blame from their own screw ups. So it's worth being careful.

comment 4y ago · link · parent

Right, you should be furious at the people who created the site because they are absolutely at fault. But X is at fault for ludicrously bad security practices and Y exploited said bad security illegally are not mutually exclusive.

But to use your example, if you accidentally ship you credit card to me amongst a bunch of other papers, it would still be illegal for me to sell the information on the dark web. Likewise, if the reporter in question took the SSNs and sold them on the dark web that would presumably be prosecutable as well. Now if I just took the credit card and returned it to you, I don't think any reasonable person would consider that illegal (and I certainly hope that no prosecutor would try and bring a case for it). My only point is that we ultimately are making judgements about malicious intent.

To be clear I don't mean to imply this is just some misunderstanding either. Obviously the MO governor is just being a blowhard to try and deflect blame for a really bone-headed screw up. But I see a lot of discussions in security/hacker circles where people seemingly think that if security is bad enough, then whatever you do to exploit it cannot possibly be illegal. But I don't think that is true and people should keep it in mind.

comment 4y ago · link · parent

I think the argument would go something like "just because there was a flaw in the security doesn't mitigate malicious exploitation of that flaw." To take an analogy, if a bug in a banks website allowed you to make negative transfers (i.e. "pay" someone a negative sum and move money from their account to yours) then you would almost certainly be prosecuted for exploiting that bug. Even exploiting it as a proof of concept so you could report the vulnerability to the bank would probably be dicey territory.

Ultimately there has to be a judgement of intent which at some level requires subjective assessment. In this case it is blindingly obvious that the reporter was acting in good faith so ti seems unlikely any reasonable prosecutor would pursue this case, or if they did any reasonable juror would convict.

comment 4y ago · link · parent

The thing is though, I think this is basically correct. They probably could prosecute the reporter if they really, really wanted to. Not that I think they could actually convict someone who was obviously acting in good faith to report a security vulnerability, but security research of this kind seems like such a gray area legally speaking. In general we wouldn't treat an obvious flaw in physical security as a mitigating factor for theft. That is, if I drop my wallet in a public place it is still probably theft for someone to pick it up and take the cash inside.

To be clear, this is in NO WAY a defense of the way the government acted in this case which was both insane and harmful, but just to say that a lot of what makes things illegal is subjective judgements about intent. This is why professional pen testers (the careful ones at least) generally specify in very clear terms what the scope of their engagement is (and still sometimes end up getting arrested). I can only imagine that doing independent security research is a mine field.

comment 4y ago · link · parent

50 years ago would be 1972. In 1972 if you were filling up the gas tank of the best-selling vehicle you would be filling the gas tank of a VW Beetle with gasoline infused with a potent neuro-toxin. None of that screams quality or long-term thinking to me.

comment 4y ago · link · parent

I'm not at all sure that this is true beyond some very specific products. Clothing probably fits this model (modern "fast fashion" clothing is really cheap crap that will not last) but for most other products, things are getting both cheaper and higher quality.

comment 4y ago · link · parent

I'm not sure that this is a great heuristic. Most of the financial instruments that, for example, were at the root of the 2007-9 financial crisis are relatively easy to explain (you can find innumerable articles providing explanations of what a CDO is that I believe the average person can understand quite easily).

> Even though this is a shoot from the hip blog it does point at the fact that while globalization has seemingly made some costs cheaper for wealthy westerners

Arguably the largest benefits of globalization has been the global poor and not wealthy westerners. In some cases this has come at the expense of the western middle and working class (who are ~85th percentile globally) in specific sectors, which is why I think it is so contentious in the west.

comment 4y ago · link · parent

I agree. I think people on HN generally underestimate the extent to which developers themselves push to work on new features instead of maintenance. It's often a different kind of feature though. I can't count how many times in my career devs (including me!) instantly jumped to "we need to rewrite X using new framework Y" in response to technical debt in X.

comment 4y ago · link · parent

This article seemed pretty incoherent:

> Companies and business leaders don’t care if jobs are hard or annoying or take longer than they “should”. The difference between a user story taking a day or 3 days is negligible compared to its business value.

And then literally two sentences later:

> They care about time to market.

comment 4y ago · link · parent

Back in the dark ages, my first project as a professional software engineer was working on a web app for something or other. I had to write a JS function to figure out whether the current year was a leap year. It didn't go well....

It was a painful experience but it aught me a valuable lesson. To this day I would sooner write my own bootloader than roll my own date/time library.

comment 4y ago · link · parent

No idea, haven't tried either. In general anything you have to run under Rosetta seems pretty slow.

comment 4y ago · link · parent

One piece of advice I always offer to younger software engineers about corporate politics is to ALWAYS try your best to make sure you have a relationship with your manager's manager. Cutting out links in the corporate telephone game is invaluable sometimes.

comment 4y ago · link · parent

There's a basic communication problem IME. When I've been in this position (an impossible deadline) it's been because some Sr VP or C-suite type decides that something HAS to be done by a certain date. Like, they want to unveil a new product/feature at CES or some other trade conference so the date is fixed. So this filters down through 3-4 layers of management to you, the dev lead who actually has to build the thing. You take one look at it and it is basically impossible and you can list the 17 reasons why. BUT the problem is that the person that needs to be convinced is the Sr VP/C-suite type. So your analysis has to go back up, filtered through 3-4 layers of managers, each less technical than the last. And of course nobody in that chain wants to disappoint their boss so they hedge/soft-pedal your analysis at every layer. Now the SVP/C-suite type, who typically does in fact have good reasons for wanting this project done by whatever deadline they set originally, only gets a watered-down, possibly incoherent version of you analysis of why the project is impossible by the given deadline. Not surprisingly, they don't find it convincing.

tl;dr; everything in a large corporation is a game of telephone where everyone is incentivized to muddle the message. So any deadline/commitment handed through multiple levels of management is really difficult to negotiate. And the more unrealistic it is, the harder it is the negotiate. Nobody wants to tell their boss that the thing they want done in 3 months will actually take 2 years.

comment 4y ago · link · parent

Well I am writing this on a new M1 MacBook Pro which is the best laptop computer I have ever owned. And that is because Apple developed their own chips that are an amazing leap forward in power efficiency, so I can have a laptop which I do heavy, CPU intensive work on all day without worrying about the battery.

comment 4y ago · link · parent

I still don't really grok move semantics in C++ but is there a difference between assigning output to an out parameter and returning a value using std::move? Conceptually they seem the same to me but from what little I understand std::move doesn't quite do what I think it does.

comment 4y ago · link · parent

Right, but there are many, many use cases for creating string in which you don't need some specific sanitization. Most of the time when I am using a format string I am not worried about sanitization.

comment 4y ago · link · parent

It's not looking for compromised devices, just anything with an open port. Conceptually they are just running an nmap scan of the entire public IP range and aggregating the results in a searchable index.
1
101112
24