TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

83 pointsby steventeyover 1 year ago

11 comments

erulabsover 1 year ago
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.<p>A few things can be true at the same time:<p>- Airbnb is an inspiring story for any entrepreneur<p>- it has had arguably detrimental impacts<p>- the founders came from privileged backgrounds<p>- they also worked their ass off and are fiercely intelligent and risked plenty<p>On the tech side - it’s always funny to hear the (correct) critiques of early Rails. It reminds me of when I was talking trash about Java as a kid. My boss laughed and said “Java bought me my house, so it’s good in my book”. Or the first Tesla I ever saw with the license plate “PHP LOL” in the Facebook parking lot.<p>Pragmatism must beat idealism. In business and in database primary keys and everything in between.
评论 #38198563 未加载
评论 #38198516 未加载
londons_exploreover 1 year ago
I would expect every CEO to use their companies products. Even if they have no use for the product&#x2F;service, their time using the product has to pay off in terms of better understanding the difficulties&#x2F;challenges faced by the real users.<p>Sure, they could pay a study group to do that. But doing it themselves will probably let them make better decisions overall.
评论 #38240207 未加载
emmanueloga_over 1 year ago
I coincidentally was exploring methods to obfuscate auto-incremented IDs to prevent information leakage. The concern arises when resources are accessed using URLs like &quot;website.com&#x2F;thing&#x2F;1&#x2F;children.&quot; This approach allows people to guess related URLs (e.g., replacing &quot;1&quot; with &quot;2,&quot; &quot;3,&quot; ..., N), potentially revealing unintended information or even the number of resources available.<p>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 <i>reasons</i>.<p>An alternative involves obfuscating the ID in such way that can be easily reversed in the server. Effective algorithms for this purpose are &quot;squids&quot; [1] (the second version of &quot;hashids&quot;), Skip32 Cypher [2] and ... more math :-p [3] [4]. Chaining both algorithms could provide an additional layer of obfuscation.<p>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.<p>More options:<p>* Add a &quot;salted hash&quot; to the id, ex: website.com&#x2F;thing&#x2F;1-hash&#x2F;children, &quot;hash&quot; could be something like SHA-256(&quot;--{id}--{salt}--&quot;). Now the &quot;attacker&quot; would need to know how to generate the hash if trying the id &quot;2&quot;. Could also be combined with ID obfuscation as mentioned bedfore. &quot;salt&quot; would be a single string per resource type, or even for the whole app.<p>* 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.<p>--<p>1: <a href="https:&#x2F;&#x2F;sqids.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;sqids.org&#x2F;</a><p>2: <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;4200193" rel="nofollow noreferrer">https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;4200193</a><p>3: <a href="https:&#x2F;&#x2F;github.com&#x2F;c2h5oh&#x2F;hide">https:&#x2F;&#x2F;github.com&#x2F;c2h5oh&#x2F;hide</a><p>4: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Modular_multiplicative_inverse" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Modular_multiplicative_inverse</a>
评论 #38200928 未加载
maximinus_thraxover 1 year ago
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&#x2F;orchestrated by publicist.<p>&gt; It&#x27;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.<p>This phrase is outright insulting in my view. Do you really think you will be in the company of a billionaire (and CEO of a PUBLIC company) without even basic vetting? Give me a break.
评论 #38198761 未加载
评论 #38198271 未加载
评论 #38198225 未加载
评论 #38198240 未加载
评论 #38198506 未加载
wilgover 1 year ago
This article doesn’t make good on its claim to explain why this “Rails convention” is bad. It’s probably actually good. I wouldn’t have clicked on it otherwise. Rude, IMO.
评论 #38197494 未加载
评论 #38197746 未加载
评论 #38202696 未加载
评论 #38197627 未加载
评论 #38197918 未加载
ulizzleover 1 year ago
There’s no engineering analysis in this post, so those of us who were looking for that, let me save you the click<p>Be born to the right people and toe the party line. That’s what Brian’s story will show you. But that’s basically a cliche right now so I doubt you’re in any way surprised
评论 #38197697 未加载
Rebelgeckoover 1 year ago
How much was his cleaning fee? I imagine Airbnb employees are very different hosts from the average one.
评论 #38198589 未加载
评论 #38198435 未加载
davetron5000over 1 year ago
To save anyone a click, the author figured that AirBnB&#x27;s urls had monotonically increasing numeric ids, which is the Rails default, and figured out that the AirBnB CEO&#x27;s id was 3, and got the direct link before it was shared publicly.
评论 #38197900 未加载
评论 #38197362 未加载
xkcd1963over 1 year ago
I&#x27;ll be damned, billionaires are normal people! (or at least they want us to believe it)
评论 #38197703 未加载
narnerover 1 year ago
this makes me bullish on roboflow (more than I already was)
polishdude20over 1 year ago
&quot;If Brian Chesky, cofounder and CEO at Airbnb, listened to his mom, Airbnb wouldn&#x27;t exist today. Or at least according to her:<p><pre><code> &quot;I told him it&#x27;s a bad idea. I didn&#x27;t think it was going to work, and I didn&#x27;t really understand it. If he listened to me, Airbnb wouldn&#x27;t be here now.&quot;&quot; </code></pre> I mean, in the end, isn&#x27;t it turning out to be a bad idea? Removing homes from the rental market, increasing housing prices. Encouraging more treatment of housing as an investment.<p>Sometimes, Brian, your mom is right.
评论 #38198027 未加载
评论 #38197758 未加载
评论 #38198121 未加载
评论 #38198321 未加载
评论 #38197893 未加载