Live data from Hacker News

Bad Rails conventions got me a weekend stay with the CEO of Airbnb

blog.josephofiowa.com

51–60 of 68 posts

Re: Bad Rails conventions got me a weekend stay with the CEO of Airbnb

#51
post #30

The tone in here sure has shifted. I remember Brian showing us his binder of maxed out credit cards they used to bootstrap the company. I remember the early version spitting unicorn errors every few seconds. A few things can be true at the same time: - Airbnb is an inspiring story for any entrepreneur - it has had arguably detrimental impacts - the founders came from privileged backgrounds - they also worked their as…

It's just a clickbait title, article is actually positive in tone.

Re: Bad Rails conventions got me a weekend stay with the CEO of Airbnb

#52

How much was his cleaning fee? I imagine Airbnb employees are very different hosts from the average one.

It's funny there's a spate of complaints about how fees have crept up to the point that AirBnB is not longer a deal, all the municipalities that have ruled against allowing them to operate outside hotel regulations and yet they also announced a massive increase in revenue in profits.

I personally don't get this business at all. Staying in a stranger's house is even more disconcerting that renting out a house to strangers. I'm mind-boggled at home much business they get.

Re: Bad Rails conventions got me a weekend stay with the CEO of Airbnb

#53

Are there people who really think this is not a PR stunt? Pardon my cynicism but I call bullshit on all of this not being organized/orchestrated by publicist. > It's wild (vulnerable, transparent, kind, generous, and humbling) for the CEO of a $60B company to welcome complete strangers into his home to host them – including cooking together and showing them the city – for a weekend. This phrase is outright insulting…

Of course it is a pr stunt. I used to get angry at this when I was younger but then I realized we have hit the peak of actual growth in the real world a while back. So now everything is just spin. It's chopping the small rooms into smaller rooms and selling them. Soon it will be sell a part of your kidney marketplace. All of this happens because the world needs another major revolution and change. Till then enjoy the vulnerable, transparent CEO who enjoys art and doggies. It's similar to the linkedin CEO post who was so vulnerable and transparent that he had to cry and had tears in his eyes because he had to fire people.

Re: Bad Rails conventions got me a weekend stay with the CEO of Airbnb

#54
I coincidentally was exploring methods to obfuscate auto-incremented IDs to prevent information leakage. The concern arises when resources are accessed using URLs like "website.com/thing/1/children." This approach allows people to guess related URLs (e.g., replacing "1" with "2," "3," ..., N), potentially revealing unintended information or even the number of resources available.

To address these leaks, one option is to generate synthetic keys for each resource. However, this method is costly because it requires indexing the new key alongside the primary key (PK). Indexing is not without overhead, and synthetic keys are often larger, like 128 bits for UUIDs or ULIDs compared to a 64-bit numeric PK. This means that every record insertion necessitates dual indexing. Generating UUIDs can sometimes be challenging too because of reasons.

An alternative involves obfuscating the ID in such way that can be easily reversed in the server. Effective algorithms for this purpose are "squids" [1] (the second version of "hashids"), Skip32 Cypher [2] and ... more math :-p [3] [4]. Chaining both algorithms could provide an additional layer of obfuscation.

Before someone mentions this, yes, obfuscation is not encryption, so not a thorough security measure. But I think obfuscation is a practical way to prevent casual URL leaks, even though more determined attackers may attempt to reverse-engineer the IDs.

More options:

* Add a "salted hash" to the id, ex: website.com/thing/1-hash/children, "hash" could be something like SHA-256("--{id}--{salt}--"). Now the "attacker" would need to know how to generate the hash if trying the id "2". Could also be combined with ID obfuscation as mentioned bedfore. "salt" would be a single string per resource type, or even for the whole app.

* Encrypt the ID: only the server would know the password to decrypt the ID, so this would be secure as long as the password and method of encryption is not leaked.

--

1: https://sqids.org/

2: https://stackoverflow.com/a/4200193

3: https://github.com/c2h5oh/hide

4: https://en.wikipedia.org/wiki/Modular_multiplicative_inverse

Re: Bad Rails conventions got me a weekend stay with the CEO of Airbnb

#55
post #49
post #30

The tone in here sure has shifted. I remember Brian showing us his binder of maxed out credit cards they used to bootstrap the company. I remember the early version spitting unicorn errors every few seconds. A few things can be true at the same time: - Airbnb is an inspiring story for any entrepreneur - it has had arguably detrimental impacts - the founders came from privileged backgrounds - they also worked their as…

If you come from a privileged background then what are you risking really? Maxed out credit cards can easily be repaid by your rich parents/uncles/whatever. Though perhaps there are things they risked that I am not familiar with.

Risk does not necessarily mean financial risk. There's a lot more being risked doing a startup than cash, and those things should be pretty obvious, though maybe not everyone sees them as risks. I can think of a few and I've never done a startup. Reputation, mental health, credibility, friends and business associates, future job prospects, legal risks, etc. Fuck up a startup bad enough and even if you have millions in the bank you could have lost all of the things I just listed.

Re: Bad Rails conventions got me a weekend stay with the CEO of Airbnb

#56
post #32

Earlier quoted context omitted.

AirBnB is not the cause of housing scarcity, the under building of Hotels to meet short term stay demand, or the economic conditions that facilitate a lot of travel. If it weren't for AirBnB other players in the short term rental business would likely ave moved into the same niche.

And the price is probably a really good signal of unmet housing demand, which has (probably) caused a lot more units to be built than would have otherwise.

> which has (probably) caused a lot more units to be built than would have otherwise.

You would think so, but in the US's tightest property markets its basically impossible to build new housing due to some combination of zoning, local review boards, NIMBY activists, and onerous environmental regulations (thing will this increase school demand not will it spew toxic waste).

Re: Bad Rails conventions got me a weekend stay with the CEO of Airbnb

#57
post #10

Earlier quoted context omitted.

It's pretty common outside of rails too, like https://facebook.com/4 Some main weaknesses, if I recall correctly, is that's incremental ids make scraping pretty easy, or guessing content outside of a URL given explicitly by the service (like here).

They also leak metrics (#of registered users)

ALTER SEQUENCE "seq_user_id" RESTART WITH 5000000000

Wheres my billion dollars

Re: Bad Rails conventions got me a weekend stay with the CEO of Airbnb

#58

Earlier quoted context omitted.

Incrementing a URL can (and has) get you prison time. https://www.wired.com/2012/11/att-hacker-found-guilty/

The incrementing itself wasn't the issue! It's all the other stuff around their scraping and apparently their provable desire to harm AT&T that got them convicted.

Odd they didn't use his handle. I figured it was weev but never knew his real name.

Re: Bad Rails conventions got me a weekend stay with the CEO of Airbnb

#59

I coincidentally was exploring methods to obfuscate auto-incremented IDs to prevent information leakage. The concern arises when resources are accessed using URLs like "website.com/thing/1/children." This approach allows people to guess related URLs (e.g., replacing "1" with "2," "3," ..., N), potentially revealing unintended information or even the number of resources available. To address these leaks, one option is…

AFAIK that's what youtube did, but the key eventually got leaked and attackers were using it to enumerate unlisted videos. They ended up switching to randomly generated ids. Unless you're dealing with billions of rows, the additional column + index is negligible, so it's better go with that approach rather than to be clever with encrypting ids

Re: Bad Rails conventions got me a weekend stay with the CEO of Airbnb

#60
post #22

Earlier quoted context omitted.

> isn't it turning out to be a bad idea? Not for Brian, no. Even if Airbnb ceases to exist tomorrow, I am fairly certain that Brian is gonna be in a better spot than he would have been in if he listened to his mom.

Oh yeah he will be of course. It's the rest of the world that won't be.

Not so sure. Not trying to defend Brian or AirBnB, but realistically, it was bound to happen, just like Uber was.

Perhaps under a different name with a different path, but I am fairly certain that the ending would have been the same. And there are definitely lessons to be learned form this. And honestly, it could've been much worse, so I am ok with those lessons being learner earlier rather than later. I think they were pretty useful.

Post reply on HN