email addresses are not good primary or foreign keys, so yes you should be using IDs of one form or another. this shouldn't affect your authentication scheme (cookies vs bearer tokens or what have you), just authorization. if you've muddied the two, you'll have some debt to resolve and this issue could just be a valuable tip-off to that
I think OP is referring to the initial sign up based on an invite link, not the database storage itself.
It depends whether you want to check the invite code against the invitee's email. It very much depends on the application. For most use cases, just verifying the code is fine and accept any email addresses that posses it.
Essentially ask yourself this, if you change the UI a bit and allow any user to sign up with any email, and the workspace joining is done via a code they enter after login, is that acceptable for your product design and security posture.
okay, I have that use case as well and it is driven by an invite code. it works well for new sign-ups and existing users, and you can even just let the user copy the link and send it themselves if they're on discord or something else. no email required for pseudonymous sharing, bonus feature to send an email invite if it is given
I noticed very recently I actually prefer reviewing other people’s generated code over handwritten. There’s no ego involved and it usually does a better, more thorough job. We have enough infrastructure that by the time another human lays eyes on it for the first time each pull request has already been through 3+ rounds of automated review. Being the only specialist in my area on the team used to mean more coaching and more involvement in code review. Now my coworkers are sending me idiomatic solutions with modern approaches that I approve right away or with hardly any comments
Knowing what to learn has always been an implicitly vital skill to career growth. Maybe it’s all right fewer people will know regex, just like as each year passes relatively fewer people know about var hoisting in JS
What does the business benefit from you handwriting regex vs a clanker?
The benefits of knowing regex is not about the syntax (that’s what docs/google/books are for), but knowing when it’s right to use it.
Immersion with the codebase is not about coding and syntax (which is actually very easy for me). It’s about being able to intuit that a particular combination can result in a buggy state and provides the wrong result downstream. You lose that you stay in the dreamland of specs.
That's fair. This all feels similar to the shift that happened when Google came on to the search scene. To use your example, people realized they no longer needed to memorize syntax. Instead they only needed to ensure they understood the big picture concepts, and they could fill in the blanks on demand with Google. This is all just moving that layer of abstraction one level higher.
Not really. Before google, we had (and still have) books. What the internet and later google changed was the availability of information (If I had to rely on libraries and bookstores, I'd never be a programmer today). The job was never about memorizing knowledge, only the application of it. That has not changed since the dawn of computing.
Sort of. As a developer I had my stack of reference books, man pages, etc. I’d try hard to memorize syntax as it was a pain to look things up. And I also devoted some memory to remembering where in a book to look, which set of man pages to use, etc
With google that mostly went to the wayside. I just needed to know something existed and I could pull together far more information faster than I was spending before to just do quick lookups
I didn’t say the job was about memorization back then. Rather I found that each of these new abstraction layers made it easier to go broad with one’s on hand knowledge instead of deep
the most unsafe drivers I see usually have a "baby on board" bumper sticker. foot out the window, eyes down looking at a phone, can't stay in their lane, let alone manage a consistent (speed limit obeying) pace
Also, you are telling on yourself about woman drivers. Moms don’t drive worse than childless women. And men don’t put those bumper stickers on their cars if they can help it.
the first time I drove a model 3 I felt like I couldn't stop. it's on par with my 80s van that has drum brakes on the rear. the brakes just aren't good enough for sport, the car weighs too much. if this is hard to understand, you're living in a different world from motorsports enthusiasts
You don't need to drive race cars to understand that a Tesla Model 3 stops faster than an 80s van with drum brakes. Sure, probably not as good as a sports car.
less than 1g is pitiful tbh. I’m no pro but have maxed out the meter on my wee sports car >1g front, left and right. it can only muster 0.5g accel so it’s worse than a tesla, am I right? having put in some serious miles on a model 3, those electrics are in another league — below
I'm confused, is 78 years a long time? even the US is considered a toddler by empirical terms. zionism wasn't a thing until a minority group had the loudest voice in the room when the allies were discussing what to do with all the european refugees after ww2, and it happened to align well with the brits abandoning their failed colony in the region due to disputes with the locals
You didn't actually answer my question. How does using the word for people who want to create a Jewish state make sense when a Jewish state has existed for 78 years?
One reasonable possibility is they're referring to people like Ben-Gvir who have themselves claimed that Zionism means fighting for Israeli control over more territory like the West Bank. They're the ones calling the shots right now. I don't know whether Zionists 78 years ago would've agreed, it's possible.
To some it still means favoring any existence of a Jewish state. The inertia isn't there because aside from the original partition plan being pushed by the UK, other countries have attacked Israel several times later in ways they would've have withstood without outside support.
Let's not forget that while some people like to point to "From the River (Jordan) to the (Red) Sea" as some "gotcha!" that some Palestians want to "exterminate" Israel...
it was actually Likud's official election slogan in the 70s and 80s just as ... oh, let me check, Netanyahu, was getting involved in all of this, formally becoming Likud's leader in 1993.
Then please explain in your own words what "From the River (Jordan) to the (Red) Sea" means?
And the destruction of Israel is the explicit goal of Hamas as stated in their charter.
"Israel will exist and will continue to exist until Islam will obliterate it" and called for holy war to establish an Islamic state across historic Palestine.
Look, to be very clear: Hamas is absolutely a terrorist organization who has caused constant harm to both Israelis and the average Palestinian they purport to represent (there have been no elections since 2006, Hamas are the only people with weapons in Gaza, and the average citizen might as well be a hostage - and frankly they’d turn against Hamas a lot more if Israel didn’t steadily inflict collective punishment against them like turning off their electricity or even drinking water for days or weeks for actions of Hamas. All that is doing is making sympathizers of them).
"Zionism means fighting for Israeli control over more territory like the West Bank."
Now that is a valid use of the term. I think the problem it that Zionism means so many different things it is nearly useless as a description. It seems more useful as a slur which has become very common in some circles.
"The inertia isn't there"
I'm not sure what you mean. Are you saying Israel could be defeated without US assistance?
I think it's valid to use the word the way that Israel's present leadership is using it.
> Are you saying Israel could be defeated without US assistance?
US and UK, yes. Not just cause of the weapons and money to Israel. After them, the top recipients of US foreign aid in the area are the bordering countries Egypt and Jordan, so that they don't attack.
> I think it's valid to use the word the way that Israel's present leadership is using it.
And how is that?
Israel has a population of 10 million people and a very modern military and nuclear weapons. If it's existence was ever truly threatened things would get VERY ugly.
Because that's what matters. The original Zionists aren't alive to ask what they think. Self-proclaimed Zionists are taking the West Bank and Gaza. In fact they've been kinda doing it for decades under previous governments, but more slowly. If there's some other kind of Zionism around, the most it's doing is complaining, and it's been outvoted.
I have doubts about their ability to self-defend because otherwise we wouldn't be giving so much money, the situation would be stable. Even if they can severely hurt the attackers, it doesn't really matter if the attackers stop at nothing. We just lost a war against Iran despite having full air superiority and killing their leader. And especially if you're considering the scenario where Israel never got Western support, and thus never got those advanced weapons.
West Bank and Gaza are different situations. West Bank settlements have been popping up continuously. Settlers were in Gaza until they exited in 2005, but now that Israel's military occupies it again, Zionists believe it should be resettled. Sorry for CNN link, but it has direct quotes https://www.cnn.com/2024/01/17/middleeast/israel-far-right-g... To be clear they haven't done it yet, aside from some illegal (by Israeli law) attempts, but they're trying.
It's pretty obvious from the emotional response that you've got some kind of horse in the Israel-Hamas war that I don't, which is fine, but I'm not gonna get called a liar too. So bye.
It's true that Nazism lacks the religious aspect, and Zionism lacks the pagan aspect.
I hope you can agree that these are aesthetic differences.
Both movements advocate for one ethnicity having the right to live on a particular part of the land, ime. ethonationalism (Nazis: "Blood and soil" vs. Zios: "The chosen people who god promised the land to"), both movements are expansionist (N: "Lebensraum" vs. Z: "Buffer zones" and "Greater Israel"), both movements subjugate another ethnicity that they deem lesser and evil (N: Jews, Black people, Roma, vs. Z: Palestinians, Arabs).
Both movements have commited genocide against the other ethnicities.
So, are Nazis pigs? If they are, then the label fits Zionists as well.
Arabs make up 20% of the population of Israel. You people always lie about Israel. Hamas and Iran and Hezbollah want to destroy Israel in the name of Islam so only Muslims can live on the land. You people always ignore that.
20% is an interesting number, though. The percentage of Palestinians who were Arabs in 1918 was around 90%. I wonder if that might have something to do with why the Arabs are upset?
Oh right, Israel _has_ destroyed nearly all the entire Arab society that lived in Palestine. As opposed to your claim that "Hamas and Iran and Hezbollah _want_ to destroy Israel in the name of Islam".
You think a hypothetical backlash to an ethnic cleansing is worse than the ethnic cleansing itself?
It seems you're the one who seems to be ignoring the factual crimes against humanity that Israel commits, and only care about imagined ones that Israel would be victim to.
Israel left Gaza in 2005.stop telling obvious lies. Hamas attacked Israel on Oct 7 2023 killing at least 800 civilians in an act of incredibly bloodthirsty barbarism, including children, the elderly, and 364 victims attending the Nova music festival. Remember when Hamas paraded the body of that young German woman Shani Louk they killed like a hunting trophy?
You're absolutely right, and this is antisemitic propaganda. Israel left more than 20 years ago and didn't return until 2023 due to Hamas terrorism.
They certainly didn't return:
- for five months in 2006 for Operation Summer Rains
- or again in 2006 for Operation Autumn Clouds
- or again in 2008 for Operation Hot Winter
- or again in 2008 into 2009 for Operation Cast Lead
- or again in 2012 for Operation Pillar of Defense
- or again in 2014 for Operation Protective Edge
- or again in 2018 and 2019 for incursions and special-forces actions, like that covert IDF operation in Khan Younis that got fucked up and led to a firefight deep in Gaza (but that couldn't have happened, because they left back in 2005, right?)
- or lastly, before October 7, in 2021 in Operation Guardians of the Walls.
None of those large named operations could have happened, let alone anything smaller than named operations, like special forces or commando raids, because those things are purely Hamas propaganda, and not formal IDF operations.
This is what makes talking about Israel so exhausting. Everyone of those operations was a repsponse to some violence Hamas did and you just ignore it because you are so incredibly biased.
Hamas thinks it can destroy Israel with force. It can't anymore than native Americans can destroy the US. And Hamas trying and failing over and over and over and over has made the lives of Palastinians much worse. Hamas gleefully kills any Palestinians that point this out or oppose them in any way.
Just for comparison after Germany lost WW2 they lost 25% of their land and 14 million German living on it were expelled. Has Germany spent the last 78 years trying to get it back? No. Instead they have been doing the smarter option which is creating a peaceful and rich country, which is what the Palastinians should have done.
> Everyone of those operations was a repsponse to some violence Hamas did and you just ignore it because you are so incredibly biased.
You're right. It -is- exhausting. Because I never said a word about the merit, or lack thereof, of Israel's actions or reactions, or Hamas'.
I just commented that Israel has spent multiple years in Gaza "since they left".
HOWEVER, you absolutely stated, and get bent out of shape multiple times in this thread alone, at anyone even hinting Israel set foot in Gaza since 2005:
Someone comments saying this exact thing, "Israel has been operating in buffer zones", etc., etc. and you?
"Israel left... Stop telling obvious lies."
Also, it might not be permanent occupation but when you're back there nearly every year for 3-9 months, it might not feel like you ever really left.
here's a quote from wikipedia. it was an utter land grab and an easy way out of responsibility for those in power
> The League of Nations gave Britain mandatory power over Palestine in 1922. British rule and Arab efforts to prevent Jewish migration led to growing violence between Arabs and Jews, causing the British to announce its intention to terminate the Mandate in 1947. The UN General Assembly recommended partitioning Palestine into two states: Arab and Jewish. However, the situation deteriorated into a civil war. The Arabs rejected the Partition Plan, the Jews ostensibly accepted it, declaring the independence of the State of Israel in May 1948 upon the end of the British mandate. Nearby Arab countries invaded Palestine, Israel not only prevailed, but conquered more territory than envisioned by the Partition Plan. During the war, 700,000, or about 80% of all Palestinians fled or were driven out of territory Israel conquered and were not allowed to return, an event known as the Nakba (Arabic for 'catastrophe') to Palestinians. Starting in the late 1940s and continuing for decades, about 850,000 Jews from the Arab world immigrated ("made Aliyah") to Israel.
Yes, this is the important thing to know. I've heard way too many conversations that go back and forth about every act of vengeance in either direction after this, it's all noise. Partition plan started this. But I wouldn't call it an easy way out of responsibility; UK's leaders took a clear and binding position in favor of Zionism.
Also, it was Ottoman territory for hundreds of years up to WWI. I've had friends tell me for some reason about how Palestine was an independent country before... literally wasn't.
that's crazy. my 2005 volvo, 1991 nissan, and 1986 toyota altogether cost me a little over $1k per year (mostly insurance) and it was less than $10k total to buy them all. goes to show average financial literacy in the US. people won't save a few grand for a used car (or take out a small loan even!) and then pay 10x the cost for new
I think you and I may be a rarity. Most people seem to value having new vehicles, and I don't say that dismissively- there's definitely something to be said for modern safety features as vehicles continue to grow bigger and heavier.
true, not all of these are created equal. that old volvo has side curtain airbags and other safety features that were ahead of its time. but it takes experience to know what you're shopping for. I turned down a corolla that was 10 years newer for the same price because the older volvo was actually the better vehicle inside and out
Oil changes cost like $35/year if you do it yourself. Decent tires last 4-5 years, so that's like $100/year (to be generous). Air filters are so cheap and need replacement so infrequently as to not even be worth counting.
I can only get 1-2 years out of tires, but I also drive 25K+ miles a year. (And its a heavy EV Van) Tires are $800ish a set for the affordable ones (also due to heavy van)
Cabin air filter is twice a year at $18 a filter (I replace them as soon as it smells weird)
The increased frequency of tire changes for EVs is not something I realized when I bought an EV. Those batteries are heavy, and put a lot of extra wear on the tires.
Another factor is that brake-regen is putting additional stress on two tires if it is a single motor car. So they get a lot of workout accel/regen if you aren't using your brakes as often and driving economically to regen as much power back as possible.
Plus how fun it is to get going in an EV leads to a lot of extra tire wear.
I've found that rotating my tires more often helps spread the wear out from having a single motor EV.
Ah yeah, I avoid cars/vans I can't use in normal economic ways. I need them damn tires to last as long as possible. And base model trims for less shit to fail.
Even with "expensive" electricity, and using your worst case scenario, it's still usually cheaper to charge 400 mile EV from 0-100% (another worst case scenario), than it is to fill up an equivalent gas vehicle. Even before the current gas prices spike.
But let's use your "worst case" scenario.
Worst case 300 mile EV charge (100%, during peak hours): about $50
Filling up a highly fuel efficient ICE vehicle: about $40
Of course, if you only charge the EV to 80% (as is recommended, and more efficient), and only set it to charge it off-peak (as is normal), then the numbers are much better. There are, of course, worst case scenarios, but it's actually hard to make an EV more expensive than an ICE vehicle.
I would say that to charge an EV with a 350 mile range to 300 miles would be about $25 here in California. Right now, a 300 mile range tank of gas is easily $60 or $70.
You have to lose the old mindset of a gas vehicle, ie, you "fill it up" once. EVs are much more convenient: it takes 10 seconds to plug it in when you get home and then the next day it's fully charged - and they're almost all grid pricing aware.
Like, on my BMW PHEV, if I try to fast charge during peak times, the charger actually makes me confirm i want to spend more, instead of trickle charging until 8PM.
An oil change is quick, like 30 minutes. If I grab a granola bar instead of sitting down for breakfast and then instead use that time to do the oil change, the time expenditure is basically a wash.
yep, it's dirt cheap to maintain yourself. and only a few hours per vehicle per year tbh. lots of people on hn don't know basic real life skills so this all seems insurmountable to them, and there's the ev cope that somehow your 60+ grand car is going to save you money in gas and maintenance in the long run. I have 8 cars and motorcyles for less than the cost of that one car lmao
Oil changes are cheap. A lot of places will put your tires on for free or cheaply if you buy tires from them. Assuming the car is free, the cost of car ownership is dominated by gas, insurance, and the raw cost of materials needed to maintain it. Whether you do it yourself or have someone else do it isn't going to move the needle much.
How much liability coverage are you getting for ~ $100/month? In other words if you injure or kill someone with your vehicle how much of that cost will be covered by your insurance company? With Waymo the answer is "not my problem".
I pay ~100/month per car for full coverage on two fairly new cars and $500k in liability from the auto policy plus a $1m umbrella policy. And that's in CA which is comically expensive. I find it very believable that you can get excellent liability only coverage on 3 cars for $100/month depending on the state and drivers.
For comparison, I live in SF and am low-risk on all the dimensions you'd expect on HN, and I pay $100/month for non-owner coverage with similar limits - i.e., I don't own a car and my coverage only applies when I rent one. When I owned a car it was much higher, of course.
Hmm, for my €209/year (~$20/mo) liability insurance I get unlimited coverage for personal injuries and €5M coverage for property damage (both mandated by Finnish law).
One major reason is probably that most of the liability portion is going to be covering medical bills in the US. I only did a quick skim of the Wikipedia summary but it looks like Finland, like (almost?) all of Europe wouldn't have that particular liability?
Another reason might be that insurance costs vary widely in the US. I recently had a reason to get an insurance quote in Utah, and it was literally one third the price that I currently pay in California.
All that said, you do seem to enjoy remarkably cheap insurance over there from my perspective. I hardly think those two factors are enough to cover such a large difference.
Medical bills are covered (the Wikipedia summary seems accurate to me: https://en.wikipedia.org/wiki/Vehicle_insurance#Finland). But I'm going to guess that those medical bills, and related damages, are much lower than in the U.S.
Maybe also lower average value of cars and less accidents here plays some part. But not sure how large that difference actually is.
Could also be some difference in the insurance premium systems: The amount of accidents changes one's cost for next year based on fixed rules - the ~$20/mo is with the highest discount (no liability insurance covered accidents in many years). The maximum it can grow to (for me, with my modern car) is ~US$100/mo, by having 4 consecutive covered accidents without accident-free years. Not really sure how wildly this varies in other countries or if the systems are similar...
The optional car insurance is more expensive, my full coverage (including damage, theft, parking, glass, fire, towing, substitute car etc.) is in the ~US$100/mo range, with ~$230 deductible on most coverage, and towing, substitute, glass repair at $0.
Who cares? Liability coverage is only there to satisfy the state and little more IMO. If you do need it the counterparty will exhaust the limits of your liability coverage and call it quits. It is not worth it for the other guy's insurance to sue you unless you're a million bucks in the red.
sure, but also that would drive new car prices down and put pressure on dealerships to stop adding ridiculous fees on top of the MSRP. and more used cars on the road means more independent mechanics means cheaper service. Japan is a great example. in addition to their strong domestic market, the driving culture there is a decent size tourist industry unto itself. there are more tracks per capita in Japan than any other country
do you buy things just to look at them? my vehicles (all 8) are for driving. fuel costs vary, and as another commenter in this thread said they were comparing $50 (max) to recharge an EV vs $40 (min) for gas. so depending on where you live, what you drive, and how you drive it you'll get wildly different ideas about fuel costs. fueling up is not maintenance either. even in the best case the difference in fuel cost is a drop in the bucket vs the difference in vehicle price
Ok, I think the situation is different when you have 8 cars which are for driving. It's not really fair to compare per vehicle costs when you're dividing your usage up among 8 vehicles whereas most people are dividing it among 1 or maybe 2
"I couldn't remember the order of the words in 'state of the art' so I just spray and pray across the keyboard like usual. I can't tell the difference because I'm just a pattern matching bot"
reply