1,098 karma · joined May 17, 2016 (10y ago) · 338 submissions
comment 1y ago · link · parent
If your use case is a simple website, React is just a nice templating lib and you won't need to use any of the things people generally dislike about it. That AND your experience when you inevitably have to add some interactivity is going to be 100x better than vanilla JS.
As for the build step, there are many turn key solutions nowadays that "just work". And isn't a small build step a plus, compared to being at the mercy of a typo breaking everything? To me that piece of mind if worth a lot, compared to whatever manual testing you'd have to do if you work with "text" files.
comment 2y ago · link · parent
We don't want people to hurt themselves, because we have humanity and because they become a drain on society.
I find it hard to be that black and white with phenomenons like OF, that emerge from a mix of societal and technological advancement.
There are grey zones and not everyone is fortunate enough to be taught to be responsible. Not everyone can go through life without feeling desperate and resort to doing things they would not be proud of.
We should try to educate and protect people instead of pointing internet fingers at them.
comment 2y ago · link · parent
A large amount of those people are very young, at an age where you don't really pick your options solely on their super long term consequences.
Most people are going to be "stupid" in their early adulthood, failing and adjusting is a big part of it. Unfortunately, some of those decisions will stick more than others and sex work is very sticky (zing).
comment 2y ago · link · parent
The other camp "just hates it" because it "slows them down", as it seems they spend most of their time fighting the types but never get to the point where you get that huge return on investment.
comment 2y ago · link · parent
I've done consulting here and there and going full time could easily clear half a mil a year. I make a LOT less than that.
Our customers are happy. They are warm and praise us. They are forgiving when we make mistakes because the trust is high. They tell us about all the trickery they face from most other companies all the time.
It is a true win win. I do not sleep on a pile of cash but I sleep very well nonetheless.
comment 2y ago · link · parent
Because everything is a trade-off, new stuff creates new problems. Those are the problems complainers complain about, ignorant of their history.
The cycle then repeats.
Maybe I am not cynical enough but doing easy things from the past is completely trivial and doing unimaginable things from the past is not that hard anymore. Looks like the cycle has some forward momentum in the end!
comment 2y ago · link · parent
Until now, VR child porn and child sized sex dolls were not on my mind when I thought of state sponsored healthcare.
I say this half jokingly, I am not really sure how I would want society to deal with that kind of mental illness. It's hard to have a nuanced perception of it, yet without nuance we are no better than the people we judge...
comment 2y ago · link · parent
The employee was trying her best and I eventually suggested she could put my last name twice. She made a face for an instant then said she was not allowed to do that.
I later understood that the face was because having two identical last names suggests inbreeding or incest... I am sure there are plenty of jokes about that in Spanish culture. lol.
I never managed to open the account and in the end had to go to a different bank.
comment 2y ago · link · parent
function is<T extends string>(value: string, prefix: T): value is `${typeof prefix}_${string}` {
return value.startsWith(`${prefix}_`)
}
You can now do `is(id, 'user')`.If you do that often you probably want to create separate functions, e.g.:
function isFactory<T extends string>(prefix: T) {
return (value: string) => is(value, prefix)
}
const isUser = isFactory('user')
const isOrder = isFactory('order')
Not too bad.comment 2y ago · link · parent
It would probably be a tough change to push through for the standard committee... a great one for users though, even if it takes 10+ years until you can use it in production.
comment 2y ago · link · parent
CREATE TABLE numbers (
minus_four_billions_two_hundred_ninety_four_millions_nine_hundred_sixty_seven_thousands_two_hundred_ninety_six_is_even BOOLEAN,
...
zero_is_even BOOLEAN,
one_is_even BOOLEAN,
two_is_even BOOLEAN,
...
four_billions_two_hundred_ninety_four_millions_nine_hundred_sixty_seven_thousands_two_hundred_ninety_six_is_even BOOLEAN
)
That design can store multiple versions of the data, making it more resilient to future changes in the even/odd property of numbers.