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

Arrow has union types (as well as structs and dictionary types). Parquet doesn't but I think it has an intentionally shallow types system to allow flexibility in encoding. Basically everything is either a numeric or binary and the logical type for binary columns is defined in metadata. So you can use, for instance, Arrow as the encoding.

comment 4y ago · link · parent

The median income in San Francisco is ~70K per year, so even just looking at SF this is more than double the median. The median household income is ~120k per year in SF. No idea what the author's family situation is but assuming their spouse works then the household income is probably 3-4x the median income of SF households. Everybody's financial situation is different and you certainly have to take that into account, but my only point is that if you are looking at a job change that involves a pay cut but to a level where you can still be financially secure then it makes total sense to evaluate it based on other factors like job satisfaction.

comment 4y ago · link · parent

I think it's also important to take into account the diminishing marginal utility of money. It's one thing to leave a FAANG job making 300k a year to work at a non-profit for 50k a year. But going to a startup making 150-200k a year can be a great trade if it genuinely brings more satisfaction. After all it's not like your family is going to starve making only 4x the median salary in the US. If you also get a lottery ticket in the form of startup equity then great, but it could still make total sense to make the move even if you assume (probably correctly) that your equity will be approximately worthless.

comment 4y ago · link · parent

Honestly, I think “Everything that isn’t illegal is allowed” is fine as long as Twitter only shows me content from people I follow. I think the whole "content moderation" problem is something Twitter has brought on itself. I am perfectly happy moderating my own content if they would only let me.

comment 4y ago · link · parent

Because employees have families and lives outside of work so can't just drop everything to go a team ski trip. Once or twice a year, sure, but more than that it's a chore more than a perk :)

comment 4y ago · link · parent

I meant "fixed" just in the sense that there is a set amount you are contractually obligated to pay regularly, as opposed to discretionary costs of something like team offsite. If everyone is on vacation for the month of July then you can't just decide to not pay office rent for the month, whereas you could decide not to have your July team offsite.

But calling it "fixed" in the sense that you just have to pay it is begging the question. The whole point is that you don't need an office in all situations. Or at least you don't need a dedicated desk for every employee. So you shouldn't look at office rent as a cost of doing business thing. You have to really look at whether the ROI is there. Maybe it is, maybe it's not based on your particular circumstances but it IS a choice.

comment 4y ago · link · parent

But I think the whole point is that we don't just need it. The trend towards remote (or at least remote-friendly) work which was dramatically accelerated by the pandemic means that office space should be viewed as a discretionary expense. If you already are locked into a long-term lease and that money is already a sunk cost, then that's one thing. But if you are starting a new company or at a point where you need to renew an office lease, you have to ask yourself whether there really is an ROI on office rent. It's a lot of money after all and you can still get a lot of the benefits of in person team bonding at a fraction of the cost through regular offsites and team building events.

I'll just throw in that "fully remote but with regular company off sites" is actually a really attractive proposition to an employee. Instead of commuting every day to some dreary office I get to work from my very comfortable home and still meet my coworkers at some nice destination a few times a year. I actually feel like I have a better bond with remote coworkers in that situation because when we meet in person it is in a "vacation" atmosphere and being time limited means we really focus on hanging out together and doing group activities.

comment 4y ago · link · parent

> At Google Chicago, we had a yearly two day team ski trip

So get the remote team together for a two day team ski trip. With all the money you save on office rent, get the while team together for a whole week of skiing.

> Furthermore, the spontaneous and critically important break-outs (small conversations) that happen at team off-sites or conferences are near impossible to replicate over any remote tool I’ve used

True, but again, remote teams can also go to conferences and have off sites.

> Even if they do, once budgets get stressed, it seems likely this will be the first “perk” to go: its benefits are hard to quantify and it certainly seems frivolous to the short-sighted

Maybe so, but team ski trips, conferences and offsite will also be on the chopping block. And the budget is much more likely to get stressed when you have the huge fixed cost of downtown office space in it.

This seems not so much as an argument for office vs remote work but an argument that pandemics are bad. I think a lot of people who didn't work remote before the pandemic have the wrong impression about what working remotely is actually like.

comment 4y ago · link · parent

It would be, but if they had a keylogger installed then the endpoint is completely owned, in which case they could just exfiltrate the password database from memory. Or they can just pilfer authentication/session tokens directly once you logged in. More generally, making things more cumbersome (in the sense of requiring more steps) doesn't really provide any meaningful security since it can generally be automated anyway.

comment 4y ago · link · parent

Not sure how common it is but if the endpoint is compromised to the point of having a keylogger installed then it's basically already game over.

comment 4y ago · link · parent

One thing that is going to be awkward to navigate in the transition to self-driving cars is how they handle driving in bad weather. Obviously that's a technical problem but I'm not sure it's actually solvable because it's not actually solvable for human drivers. We just kind of do it anyway. But when a self-driving car has some quantified sense that "driving in these conditions is unsafe" will we get to the point where we just say f it and let them keep going? Or, maybe more likely, we remain in the gray zone where the car is fully self-driving but the human driver has to be ready to take control at any time which I think limits some of the larger impacts.

comment 4y ago · link · parent

We seem to assign a quite large market value to art. Film, television, music and book publishing are all huge industries. Add to that all the artistic pursuits that are part of every business (graphic design, some types of marketing, etc) and we almost certainly spend more on art than we ever have in the past.

comment 4y ago · link · parent

I doubt the target market for this product is as a web browser for developers. Seems like a reasonably useful product if you want to deploy a call center application as a web application or an application for some sort of data entry in a bank or financial institution. In that case it makes total sense to heavily restrict what functionality is available in the browser.

comment 4y ago · link · parent

Right, GB for GB ES is much easier to scale than Postgres (or any other DB) but probably also more expensive since ES is much more memory and compute hungry. But I can't say I have an apples-to-apples comparison since the use case for ES is usually "dump massive amounts of raw data in and index everything" which you wouldn't typically do with a Postgres instance. But in places where we have run large ES clusters my experience has not really been that it works without any user intervention (at least once you reach a certain scale) and that it involved a lot of operational support. Not that any other solution with comparable features would have been easier necessarily but still not easy in any absolute sense.

comment 4y ago · link · parent

Yeah, I don't mind a cubicle per se (especially compared to the typical open office) but I found the traditional cubicle farm offices, where everything is this bland, monochromatic beige color and lit with neon lights, very depressing.

comment 4y ago · link · parent

I think a lot of it is the exact circumstances of you office as well. All else equal I think I would actually prefer working in an office assuming that:

1. It felt like a "real" space (i.e. not a beige cubical farm)

2. Was not excessively loud

3. I had a comfortable chair/workspace

4. I could walk there from my house in under 20 minutes

5. There was no dress code

6. There was nobody there who I found deeply annoying and also insisted on interacting with me regularly

And I think a lot of people (especially young people who live in cities close to where they work) actually do have something approximating that situation.

comment 4y ago · link · parent

Easiest database to scale is a pretty low bar. Databases are typically really hard to scale and Elasticsearch is no exception. Aside from the issue of ease, one thing that has been universally true for me is that Elasticsearch is incredibly expensive to scale in terms of compute costs.

comment 4y ago · link · parent

I love this analogy

comment 4y ago · link · parent

For insider attacks auditing is really critical. At some level there will always have to be human beings with superuser access. But if every admin access and action is logged, audited and tied to a specific person then it becomes very hard to abuse that access without getting caught.

comment 4y ago · link · parent

To me the core point is just that all access to persistent data should be mediated through a service interface which implements access controls and restricts what operations available in the underlying data store are exposed to other clients. Whether that qualifies as a "micro service" seems like mostly just a semantic game.

comment 4y ago · link · parent

The problem is that the relationship between your outcome as a holder of ISOs and the outcome for the company as a whole is pretty opaque. You have no idea what the companies cap table looks like, what sort of liquidity preference the VCs have and what are the various ways in which you can be diluted. If you want to offer people ISOs as a bonus/inventive (i.e. pay a market salary and throw in options as an extra) then great. But if you are asking people to trade off salary for a financial instrument that can't possibly be valued with the information available to then it is kind of shitty to be upset when someone gives them an implicit value of 0.

comment 4y ago · link · parent

As a fan of pure functional programming who very much dislikes Go, I can vouch for this statement. But in the spirit of giving credit where due one thing that the pure functional crowd can learn from Go is the value in making really good tooling and really try to genuinely make easy things easy.

comment 4y ago · link · parent

The root mistake is that the actual feature makes using real prepared statements impossible. The whole point of a prepared statement is that you know the query AST ahead of time so you can just plug user input into the AST. I'm guessing since this seems to be intentionally designed this way, the goal is to allow a "parameterized query" like "SELECT * FROM foos WHERE ?" and I can pass { "foo": 1, "bar": 2 } to get "SELECT * FROM foos WHERE foo = 1 AND bar = 2"

comment 4y ago · link · parent

I don't think it would actually be possible to use proper prepared statements for a "feature" like this. The whole point is that query is built dynamically from any JSON object. So you could, strictly speaking, build a prepared statement dynamically but you would have the exact same bug.

comment 4y ago · link · parent

Typically the SQL statement will be parsed to a logical plan first, which then gets optimized and then turned into a physical execution plan. Statistics are used for a second layer of optimization on the physical execution plan.

comment 4y ago · link · parent

I really hope that password managers are a step in this direction. Once they become ubiquitous then everyone effectively already has a "master password" for all their online identities. It wouldn't even really need to be a 3rd party service. The password managers could hold the keys locally and websites could just use WebAuthn for authentication.

comment 4y ago · link · parent

Fair enough. I may just be indexing too much on my own experience. It certainly seemed obvious to me in the mid-2000s that ubiquitous computing would be hugely valuable but I was also a nerd into that sort of thing so maybe I shouldn't generalize from that.

comment 4y ago · link · parent

That to me is a separate issue. Anyone with bargaining power can use that bargaining power however they want. Unions are just about giving workers bargaining power as proper stakeholders. If they want to use that leverage to make the company more ethical then they can (just as equity shareholders can use their leverage to do the same). But I'm skeptical that the end result will be more ethical business practices (outside the specific area of working conditions or course). Getting large numbers of people to agree on ethical values is hard, especially when there is a substantive cost.

comment 4y ago · link · parent

It probably depends on the specific tradeoff, but people accept poorer working conditions for higher wages all the time. See anyone working on an oil rig/fishing boat. Of course there are some margins where a union may focus on working conditions over wages but you can say the same about shareholders and managers.

Anyway, I didn't mean my original comment to be anti-union. I just think that framing unionization as anti-business/profit is both counter-productive and substantively wrong. It's about giving workers a seat at the table as proper stakeholders. But once that happens, it's in everyones interest to make the underlying business as successful and profitable as possible.

comment 4y ago · link · parent

I wouldn't frame unions as a "fight against the destructive force of profit seeking itself." Unions have every bit as much incentive to maximize profits as shareholders. It's about the distribution of profits between capital and labor.
1
91011
24