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 6y ago · link · parent

Thanks! That is incredibly helpful.

comment 6y ago · link · parent

Those aren't mutually exclusive though. Even in the most optimistic decarbonization scenarios we would still need to start removing CO2 from the atmosphere to avoid >2 degrees of warming.

573.

Ask HN: Evaluating an Equity Package at a Startup

8 points · by thinkharderdev · 6y ago · 5 comments

comment 6y ago · link · parent

Yeah, I've tried to do the multi-profile thing in Chrome and always ended up giving up in disgust after a while because the UX is hard to deal with. Lately I've just been using different browsers for different "profiles" (social media, work, general internet browsing, etc) with. Between Safari, Chrome, Chrome Canary, FF, FF Nightly you can have a lot of different "profiles" and using something like https://www.choosyosx.com the day-to-day UX is not bad.

comment 6y ago · link · parent

By default? It can break a lot things that people expect to work and can make browsing the web slightly more annoying (harder recapcthas etc). You can enable first-party site isolation in your Firefox preferences which will effectively provider a container for each site (as far as I understand). But it's pretty annoying at times.

comment 6y ago · link · parent

I would argue that linear regression is under the umbrella of ML. And probably the most important ML technique for existing businesses. A lot of the "low hanging fruit" for existing business cases is not necessarily discovering how to use regression analysis on existing data (which is probably already happening at a lot of places) but how to operationalize and continually update linear regression models so you can make them a mission-critical part of the infrastructure.

comment 6y ago · link · parent

MSFT just pushed a UI update to Outlook on Mac that is actually really nice. I'm hoping that maybe they've finally got their UX together and Teams will improve. Pretty sure my company will be axing Slack in favor of Teams in the next year or two. Maybe by then it will have a reasonably good UX.

comment 6y ago · link · parent

Right, this is where Lambda really does shine. The problem is when it becomes "everything we build has to be serverless"

comment 6y ago · link · parent

Or even worse, giant yaml config files

comment 6y ago · link · parent

That depends a lot on the use case. The ephemeral nature of serverless environment generally require you to proprietary solutions by the cloud provider to have things like DB access and such. So you end up using DynamoDB instead of Postgres (as an example). You CAN make portable serverless code but it generally requires a fair amount of work to do so.

comment 6y ago · link · parent

I've never really understood this argument for serverless. Everything you do in AWS is through an API. I've never quite understood how replacing one set of API calls to provision an EC2 (or ECS cluster) is so much more complicated than another set of API calls to create a severless stack. If anything, my experience has been the complete opposite. Provisioning a serverless stack is much more complicated and opaque.

comment 6y ago · link · parent

Strictly speaking that is of course true, but I'm not sure it is relevant over the time scales we are concerned with. If there were only a handful of such people then they would all get infected relatively quickly and stop contributing to overall spread. And that may be the case in localized outbreaks, but I see their role overall as "seeding" individual hot spots. In other words, people who disregard basic social distancing protocols may not spread COIVD until it actually becomes prevalent in their local area. And when that happens they become the super-spreaders which cause new local outbreaks to fire up.

comment 6y ago · link · parent

I agree in general, but I think that the problem is that a lot of people refuse to wear masks or exercise even a modicum of social distancing. I think we already have all the tools we need to control COVID to a level where most people can live a relatively normal life but there is a minority of people who refuse to accept that this is a serious problem at all and refuse to take any action, no matter how trivial, to deal with it.

comment 6y ago · link · parent

I think the issue is that it is a collective action problem. No one person's actions on the margin are really making much difference to society-wide spread and assuming you don't want to completely isolate yourself indefinitely, then your personal risk of contracting COVID is very sensitive to the level of infection in the society around you. In theory, we could achieve a higher average standard of living all around if we could coordinate everyone reducing their risky behavior by 30% (a number I just made up).

This is the point that I think often gets missed in the discussion around "lockdowns". I would bet that we could actually reduce the spread of COVID quite substantially without a massive change in the living standards of most people. The problem is that there is a segment of people who refuse to do anything at all to reduce the risk of transmission so we end up having to take more extreme actions to compensate.

comment 6y ago · link · parent

I had had the exact same reaction. My career sometimes feels like a series of meetings in which I implore product managers to keep things simple and consistent instead of adding every bell and/or whistle imaginable.

comment 6y ago · link · parent

The pretty well describes pretty much every static analysis, automated security scanning tool I've ever used. They generally work ok if you use a common framework in a standard configuration using a standard project layout (once tuned properly to filter out false positives). Once you get to that point you can actually pay attention to the alerts and may even catch some significant issues.

comment 6y ago · link · parent

In this case I think the multi-device syncing capability is the thing that adds value. Or at least being able to sync the data gathered by the device to the cloud so you can access it through a separate interface.

If that is the case then whether you prefer a Google solution to a open source solution depends very much on your threat model. Google may use that data to target ads but running your own solution you risk losing the raw data to a security flaw in the open source code or infrastructure. At least with Google you get world class infosec to protect your data (from everyone except Google...)

comment 6y ago · link · parent

XML and JSON are not immune to similar problems, but in my experience you run into it head first with YAML more because when copy/pasting YAML stanzas from one document to another, the indentation can (and often does) get mangled. Since whitespace isn't meaningful you can paste a JSON or XML object as without the whitespace, parse the document and then reformat it to display it nicely. With YAML if the whitespace gets mangled on paste then the document can't be parsed to begin with so the tools you generally use to debug such issues are largely useless. You are effectively back to raw text.

comment 6y ago · link · parent

From what I understand this is an actual thriving industry already. Traditional identity theft (get someone's SSN and other info and open credit lines in their name) is much harder now, so the fraudsters have moved on to creating wholly made up "synthetic identities" de novo.

comment 6y ago · link · parent

Of course you can serialize a struct to XML in an idiomatic way but a lot of the time you don't. You get an XML document produced by someone else that maps to a horribly non-idiomatic representation as an object in your language runtime. I have personally seen lists/arrays serialized to XML in a bewildering variety of ways. The advantage of JSON I think is that the mapping to data structures is relatively straightforward and idiomatic so when you are creating a type to represent a JSON document you are receiving from some external source, you are likely to get something that looks reasonable.

comment 6y ago · link · parent

I've had the same experience. Different editors and IDEs seem to handle YAML in wildly different ways. If you copy/paste a YAML stanza into a different document there is no telling how the editor is going to indent it. And trying to fix it can be something of a nightmare, especially when the editor indents different lines in the pasted text differently.

comment 6y ago · link · parent

Agree that invoking Python is probably counter-productive but I think the basic point is correct. I've banged my head against the wall many times trying to figure out which line in my 500 line YAML document is not indented correctly. Bonus point when Helm generates an invalid YAML document but because it is interpreted, the line number spit out by the parser is not a line number in your actual source template.

comment 6y ago · link · parent

In my experience, it is not generally a matter of putting some quick and dirty script in the solve a problem and it goes on solving the problem without modification indefinitely. It is more often:

1. Put a quick and dirty script in to quickly solve some immediate problem

2. When that quick and dirty script stops working, instead of putting a proper solution in place you either add another quick and dirty script in to plug the issue or you modify the original quick and dirty script in some ad-hoc way

3. Repeat over and over again

And then you end up with some impossibly complex Rube Goldberg machine.

comment 6y ago · link · parent

I love writing throwaway code in Python. It is really great for that and there is something about Python and the hassle you have to go through to write safe, well-structured code that makes you wanna say screw it and hack it in there.

comment 6y ago · link · parent

To me it's only throw away code if you actually throw it away after using once (or a couple times). If you are checking it into source control (i.e. anyone else will see it) then it's good to assume that it will live forever. I've been burned too many time when my "throwaway code" or "temporary glue script" becomes mission critical infrastructure

comment 6y ago · link · parent

It is trivial if you actually know what the port number is and you are only talking to one server and the non-22 port is static. Now imagine you have code that is connecting to thousands of different servers on different ports and they can change at any time if someone who owns one of those servers decides to rebuild their machine and changes the SSH port. Nothing is trivial at scale. That's not say that is always a valid consideration but standards and conventions exist for a reason.

comment 6y ago · link · parent

That works both ways though. Imagine in your scenario you have thousands of servers across a large organization, many that may be running on auto-pilot and don't have any active team maintaining them. When the hypothesizes critical OpenSSL bug pops up, the first thing you will want to do is find out all the server in your network running sshd so you can patch them. If they are all listening on some random port then that task becomes much, much harder.

comment 6y ago · link · parent

There is a flip side of that as well though. You may have a tool that tries to look at all SSH traffic across a fleet of servers (maybe trying to identify compromised internal hosts). If every server has sshd running on a different random port then you can't do this (or at least it becomes a lot harder).

More generally, I think there is in fact a trade-off involved in deciding to explicitly ignore standards. Whether it hobbles automated network analysis or just causes friction in the development process, it can add up over time. That is not to say it is always a bad idea but I would just caution that, just as you shouldn't blindly reject "security by obscurity" you shouldn't blindly accept "security through obscurity" even if you have layered defenses. There is no substitute for thinking about individual circumstances and weighing explicit trade-offs.

comment 6y ago · link · parent

It certainly can be a pain in some languages but modern functional languages (Scala and Haskell come to mind) it is actually really easy and clean. I would really not want to use the Either[Error,Result] pattern in Java but that is more a limitation of the Java language than the basic pattern

comment 6y ago · link · parent

Those seem like orthogonal concerns. With both Monadic error handling and exceptions you can defer handling any error until you hit some boundary that you choose. Likewise you can still choose to subsume specific errors into types that encompass lots of different specific error conditions. So the file cannot be opened, audio unavailable, GPU cannot be opened can still all be an IOError.

> Just write the happy / known-to-the-programmer path and let what you don't know about bubble up to main() or the top of your event loop.

I believe that is the point, an IO exception o some sort is a known exception case so the return type of the function should express that. This function can return either the contents of a file or an IOError if the file cannot be read for some reason. The caller can then decide whether they want to try and handle the exception case or ignore it and let it bubble up the stack, but the function should clearly express that it is a possible outcome.

1
192021
24