Better HN
topnewbestaskshowjobs
Log inSign up

dubswithus

688 karma · joined Apr 16, 2022 (4y ago) · 424 submissions

Submissions

comment 4y ago · link · parent

Imagine someone offered you a house but the agreement was that you could only sell it for what you bought it for. I doubt you would buy it considering there are other options on the market where you could profit in the future. It's 100% speculation. It's part of the package.

comment 4y ago · link · parent

When are you going to ban this user? Their username is sexual and offends me as a woman.

https://news.ycombinator.com/user?id=MegaButts

comment 4y ago · link · parent

Link should be changed.

comment 4y ago · link · parent

You bought it to live in for 5 years and then you flipped it for more money than you bought it? That's the definition of successful speculation.

comment 4y ago · link · parent

All homeowners are real estate speculators.

Wouldn't you also consider anyone buying a "starter home" a speculator? Their goal is to continuously flip their house.

comment 4y ago · link · parent

Very good points MegaButts. Crypto is VC funded too. Hence the crazy market caps because most of the VC owned supply is locked up.

comment 4y ago · link · parent

The business owns your data. Why would they delete it if they don't have to?

comment 4y ago · link · parent

There's definitely perfect and perfect for the business. But when large companies have many developers they all have to do something. They will spend their time doing something unnecessary.

comment 4y ago · link · parent

I would never suggest archiving unless we're hitting some performance limit. Why generate more busy work? Just leave it there and if need be add more indexes and partitions.

comment 4y ago · link · parent

The use case for using the database here is overblown. I've never experienced of heard of anyone using a view for the users table. I suppose it may exist in the wild somewhere.

I wouldn't avoid Ruby features because the applications I develop are in Ruby and it would require a complete rewrite anyway. I avoid the database because there are development speed advantages to using Rails features. And everything works together nicely assuming you do things the Rails way.

https://github.com/rubysherpas/paranoia

> If a record has has_many associations defined AND those associations have dependent: :destroy set on them, then they will also be soft-deleted if acts_as_paranoid is set, otherwise the normal destroy will be called.

It's convenient.

comment 4y ago · link · parent

There are Rails gems that can handle this in various ways.

But the easiest way is to deactivate the user account (is_active boolean) and continue to reference the user in internal records.

comment 4y ago · link · parent

There are some Rails gems that take care of this by scoping associations (that also have the deleted_at column).

comment 4y ago · link · parent

> Using views, stored procedures and other features lets you implement things like soft delete trivially, without it infecting all your application code.

That’s great but some of us actually like to write code. Especially Ruby on Rails where soft delete is a breeze if you don’t overthink it and build something the business doesn’t need.

comment 4y ago · link · parent

Every Rails developer knows what “deleted_at” means. I’m absolutely repulsed at the thought of turning the users table into a view. What’s next? No code and we only use triggers?

comment 4y ago · link · parent

Lack of support and poor attitude? That's the playbook for Tesla's FSD. So maybe it can work again?

comment 4y ago · link · parent

The US government does not agree with China that the US army created SARS-CoV-2 in a lab. But every scientist and rational person also doesn't agree with China. You're going to have to update your definition.

https://www.washingtonpost.com/world/asia_pacific/vaccines-c...

comment 4y ago · link · parent

Or hang out in the bathtub all day. If you don't have a bathtub put your feet in a bucket of water.

comment 4y ago · link · parent

Trying to get vaccinated at CVS.

comment 4y ago · link · parent

China’s stance on Covid is that America is responsible. I’ll update with the wechat source when I find it.

https://www.washingtonpost.com/world/asia_pacific/vaccines-c...

comment 4y ago · link · parent

Because what I claimed is so outrageous?

https://www.washingtonpost.com/world/asia_pacific/vaccines-c...

I’ll find the wechat story when I’m more awake. ADV china covered it though.

comment 4y ago · link · parent

They aren’t just going to surveil you though. They will actively work to promote disinformation to you.

comment 4y ago · link · parent

What social media company in the US bans positive coverage of mRNA vaccines?

In the US algorithms ban content, often by mistake. In China a political official or someone working for the government reviews the content personally. Big difference.

comment 4y ago · link · parent

The Chinese government censors posts on social media. It’s nefarious by design. Nothing like that happens with FAANG.

comment 4y ago · link · parent

They ban them because they won’t censor factual information and won’t promote disinformation.

See how Chinese censorship applies to mRNA vaccine conspiracy theories. A person that debunked them was banned from wechat.

Do you see western governments doing this?

comment 4y ago · link · parent

My parents live 4 miles from the nearest city in a rural area. Someone paid for a fiber line and my parents got a free install because it crossed the property. Before this they were using a microwave antenna and getting 10 megabit.

comment 4y ago · link · parent

I got an email asking if I would be okay with $2 less after we agreed on an hourly rate over the phone.

I didn’t respond and moved on.

12345
15