Better HN
topnewbestaskshowjobs
Log inSign up

NSMutableSet

122 karma · joined Apr 24, 2022 (4y ago) · 49 submissions

Submissions

comment 3y ago · link · parent

It depends entirely on your life circumstances. It can feel like a vacation if your partner is still earning 6x+ the median national household income, you have ample savings and multiple years of runway for any immediate debts that can't become delinquent without significant consequences, and you have wealthy parents to fall back on on top of everything else.

(for the record, I don't have any of these aside from the runway, since I have no significant debts due to the lack of a mortgage)

comment 4y ago · link · parent

200,000 native allies

900–1,300 Spanish infantry

90–100 cavalry

Looks like they had some help.

comment 4y ago · link · parent

Japan's pacific coastline is twice as large as China's. Your logic here is extremely faulty.

comment 4y ago · link · parent

Looks cool, but...how would anyone working with proprietary info be allowed to use this?

comment 4y ago · link · parent

How?

comment 4y ago · link · parent

Right, but what %s are your RSUs and bonuses taxed at?

comment 4y ago · link · parent

Would you happen to know how I can easily figure out which cities would satisfy those 2 conditions? Hopefully there's a list somewhere instead of having to manually check.

comment 4y ago · link · parent

In California, a good chunk of that $300k is taxed at nearly 50%. Anyone who did not sell vested RSUs between 2020 and today likely has a negative delta, and paid taxes at peak prices.

It's still a lot of money, but it's not as much as you think it is, since it's not just pure salary. Even if it was, odds are it would still be taxed significantly, because most high-paying SWE jobs are in California or New York. California has 7x SWEs as Washington, which I would consider a better state in terms of how much overall compensation you can keep after taxes. It's better, but there's just less jobs in comparison.

comment 4y ago · link · parent

>Nope. The lyrics are the song. Music with nothing but lyrics sung to a melody is still a song. Music without lyrics is not a song.

You're pedantically correct according to the original definition of the word "song".

But in modern usage, the word is used interchangeably with "instrumental" and "track".

It's used to refer to everything as a whole, whether or not there are lyrics.

Lyricless music is not as popular today as it was during the peak of EDM, but instrumental tracks were/are still referred to as "songs", even though they technically did not contain a song, since there were no lyrics.

comment 4y ago · link · parent

In the current market, most figurative Tesla dealers would be charging $7k+ over MSRP, which is what you can currently make immediately flipping any newly-purchased Tesla, even the base Model 3s. I'm sure there are some who would stick to MSRP out of "professionalism", but it wouldn't be the majority.

This obviously won't last, but just something to consider.

comment 4y ago · link · parent

>Nearly impossible to regulate, and too rigid to boot.

No it isn't.

>Does a duplex count as two? If so that means triplexs higher MUDs are illegal..

Why would it count as more than one? You can own a duplex or triplex or whatever as your primary home, and then you have the option of renting out portions to generate additional income, or fully occupying the entire thing. If you have no plans to rent out units, it would make more sense to convert it.

>which will harm low income housing options.

It will harm landlords who depend on the current system. Low income housing won't be necessary when homes are affordable for everyone.

>Can companies own property?

Not homes.

>or the housing market is going to be flooded with corporate housing.

Good.

comment 4y ago · link · parent

What is going on with Amazon's listing for the preorder? Seems like it's been hijacked by a vendor with terrible ratings offering the unreleased book at a high markup, with no way to preorder from Amazon at the correct price.

comment 4y ago · link · parent

The same reasons we don't outsource all of our management and executive positions.

comment 4y ago · link · parent

I'm not sure what the point of your post is. While bloom filters are heavily used in actual production code throughout the industry, it is very rare for anyone to need to code their own, or make changes to a prior legacy implementation.

Not all educational programs will cover bloom filters, and for those that do, there's no guarantee that the students will retain the information, and be able to recall it.

I don't know of any common interview question patterns where a bloom filter would be the only optimal solution. If it does share optimality with any other data structures, you would be better off choosing something else unless you are extremely confident in your ability to implement one and explain it clearly and in-depth, since the odds of your interviewer not being familiar with them are high in comparison to other solutions.

I only know what a bloom filter is because of HN, and previous submissions like this one that have made it to the front page throughout the years. It's nowhere near as common knowledge as tries, especially if you are sampling younger cohorts.

comment 4y ago · link · parent

I wouldn't consider tries to be obscure tbh. They are the recommended solution for many leetcode-style interview problems involving string searching. I think anyone who has done serious interview prep has encountered them.

https://leetcode.com/discuss/general-discussion/931977/begin...

comment 4y ago · link · parent

You should be happy for them.

comment 4y ago · link · parent

Yes, I stuck them in a bathroom drawer. It was "only" four, not an entire home's worth.

comment 4y ago · link · parent

Hah, my bulbs aren't burned out. They're also not manufactured anymore and would cost $80 to replace based on Amazon and eBay prices. I've had them for close to eight years now and have brought them with me to lots of places.

comment 4y ago · link · parent

This feels like a good opportunity to tell (or remind) people that something on a rental lease isn't binding just because you signed it, and signing a lease entitles you to tenant privileges even if the lease does not mention them. I did not know these things before the pandemic, and I think the vast majority of people don't, even landlords themselves.

There is a difference between what is written on the lease, and what can actually be enforced. The lease is not just one giant legal document. It's a series of hundreds or even thousands of individual components.

Let me give you my real-life example:

A few years ago, I signed a lease for a rental in California. Two things (clauses? not sure what the legal term is) in the lease are the key points for my anecdote:

- A lease break fee equal to half a month of rent

- Something about tenants being responsible for any legal fees incurred by the landlord/property owner

I broke my lease, and the half month of rent was taken out of my deposit. I moved out a day early. My landlord had immediately found a new tenant who wanted to move in that day, so it worked out for both of us.

Then my landlord did two things which really upset me and led to me spending ~20 hours over the next month or two reading about real estate laws and consulting multiple lawyers.

- He charged me for lightbulbs that had been burnt out when I first moved in. I replaced them with my own, then swapped them back. I told him this, and he still took it out of my deposit.

- He did not refund my deposit for nearly a month. When he did, it was $150 short of the reduced amount that I had expected. He didn't have an explanation for why, and wouldn't send it.

This led me to lots of googling, and discovery of the following:

1. The idea of a "lease break fee" does not exist in California landlord/tenant laws. It is not legally enforceable. If a lease has one, it doesn't actually mean anything. If I had broken my lease without the landlord's permission, he would not have been entitled to any damages, since he filled the vacancy immediately at an equal or greater monthly rate.

2. Landlords must return a portion of the security deposit within 21 days, with itemizations and deductions. If nothing is returned within 21 days, they must return the full amount, even if deductions are justified. If the matter goes to court, the concept of "treble damages" comes into play. A tenant could get up to 3x their deposit back, depending on how the judge feels (probably a gross oversimplification of small claims, but maybe not).

3. The clause about being responsible for legal fees actually goes both ways. My landlord would have been responsible for my legal fees on top of treble damages if we went to court. There is no way to know this based on just reading the contract, and not having an understanding of laws as they are on the books AND legal precedents for prior similar cases in California.

My landlord did not budge on returning my money when I texted him summaries of the above and links to evidence. He did budge after receiving a letter from a lawyer explaining everything in a more threatening tone.

I was ultimately not out anything but time, since I have a legal plan that I pay for on an annual basis. This was the perfect situation to use it, but it was still more work.

I do want to note something about the legal fees clause. I am pretty sure I am the first tenant who ever pushed back on it to my landlord. I don't know what the term for this is, but that clause has a very strong implication. At first glance, it seems to say "even if you're in the right, if you take me (the landlord) to court, you will have to pay for my lawyer, whether I win or lose".

This is what I thought it meant, and I wonder how many tenants who have been wronged in the past see a clause like that, and it just eliminates any ideas they may have about trying to enforce their tenant rights because they see it as financially impossible.

If I had to pay out of pocket for lawyer consultations and the letter, it wouldn't have really been worth it either. I would have roughly broke even. I would have done it anyways, though. I hope my former landlord will get deposits back to people on time in the future. Though I suppose he might not be willing to let people break their leases anymore, either.

I'm pretty sure he was overcharging on utilities, but I didn't push it at the time. I've been considering reporting him to the IRS because he illegally declared the home as his primary residence while not residing in it, which I found out from the title report. I'm not sure if anything would come out of it. I would bet a limb that he wasn't reporting any of his rental income.

Which leads me to a final thought: leases in California primarily benefit the tenant. You should never be afraid to break one IF the following is true: you know the landlord will be able to fill the vacancy if they put actual effort into it (they will need to prove as such to collect from you if they want to be lazy or spiteful), and the amount of time and money you would potentially spend in the worst case is less than whatever you would be responsible for in a scenario where they don't fill your vacancy, and they convince the judge that they tried really hard and they just couldn't do it (unlikely).

12