I really wish we could have a license like if your revenue is 5mil + you have to kick in something to the devs
I really wish we could have a license like if your revenue is 5mil + you have to kick in something to the devs
Exactly. I’d also like to add, look at Google stuff their ui / ux is routinely horseshit. So don’t tell me there are ui/ux gurus out there GIGAchading user interfaces.
A lot of this shit is trial and error and even then they still fuck it up.
Make it accessible, make it legible and then fine tune it after.
Fuck that website and that insane cookie confirm box.
Code golf! I just learned something new 😂
Very interesting. Actually the part you mention about there being an initial 'btn'
class is a good point. Using arrays and joining would be nice for that. I wish more people would chime in. Because between our two examples, I think mine is more readable. But yours would probably scale better. I also wonder about the performance implications of creating arrays. But that might be negligible.
Ok how about this then, I frequently do something like this:
let className = 'btn'
if (displayType) {
className += ` ${displayType}`
}
if (size) {
className += ` ${size}`
}
if (bordered) {
className += ' border'
}
if (classNameProp) {
className += ` ${classNameProp}`
}
How would this be made better with a functional approach? And would be more legible, better in anyway?
Hm I’m having trouble visualizing this do you know a quick little example to illustrate this?
What is the advantage of this VS just overwriting the var?
Got em!
What is a web page vs web application? The web is so complex with features these days that pretty much everything is an application.
Vertical integration!
Removed by mod
It’s so ironic that California and New York, two beacons of progressivism have us those two turds.
I don’t know how to phrase this, and it’s just my silly opinion, but I also think the thing that has changed is that our populations have gotten so large with enough chunks of it financially illiterate that it’s become impossible to put pressure on corporations.
What I mean is, for every one of YOU there are 3 idiots that will pay the inflated price and put it on the card because they don’t know / care how to spend.
It’s the same trend everywhere.
Cars, heated seat subscription? Something that should instantly nuke a company, barley does anything because enough idiots with money are buying it.
1000 $ phones with less features? Again, idiots buy it.
You can go down any of the enshitification targets and you’ll find a ripe group of consumers allowing the company to hold out and wait until you and I HAVE to buy their product at inflated prices because we’re reached a point where our old item has died.
That is the trend that I’ve noticed. Bad behavior isn’t getting punished because enough morons are oblivious.
They’ve also embraced it on the hardware side removing sd cards and headphonejacks
I will add to this that WORST case if you just eliminated fast food and Soda / fruit drinks you’d almost automatically be eating healthy.
I don’t eat like a rabbit, but just not indulging in the bottom tier garbage keeps me heathy while still enjoying my food.
I will agree with OP that there is a threshold where you try to eliminate every single bad thing where it just becomes exhausting and hinders enjoyment of life. But that’s way down the line.
Start without McDonald’s and Coke and see where life takes you.
Oh I like this.
I have a pihole so I instinctively never click the ad result, because I don’t want companies to think ads are working.
I don’t give a shit about alienating people that see women as second class citizens and trans people as something to be destroyed.
You can feel good about yourself being “grown up”, I’ll rather support those than need it instead of grandstanding on lemmy like some douche.
Strong “she was wearing a skirt so she asked to get raped” energy from this douchebag.