severien
@severien@lemmy.world
- Comment on X’s privacy policy confirms it will use public data to train AI models 1 year ago:
This is not just some random Musk garbage, but actual Twitter privacy policy and publuc should be thus be aware.
- Comment on Smartphone sales down 22 percent in Q2, the worst performance in a decade 1 year ago:
Batteries were phone specific but it wasn’t a big problem to find them. I bought several for my Note 3 and it allowed me to use the phone for a long time.
- Comment on Smartphone sales down 22 percent in Q2, the worst performance in a decade 1 year ago:
Isn’t Samsung DEX exactly that?
- Comment on Smartphone sales down 22 percent in Q2, the worst performance in a decade 1 year ago:
You can get way more compact mirrorless, my Fuji X-E3 + 35mm f/2 is 550g and the difference in image quality is very clear.
- Comment on Smartphone sales down 22 percent in Q2, the worst performance in a decade 1 year ago:
That switch was more than 10 years ago.
- Comment on Are We Ready For This Site's Endless Feed of AI-Generated Porn? 1 year ago:
Sure, but a much smaller one.
- Comment on Google Pixel 8's amazing new camera features shown off in leaked teaser video: Video boost, Magic Editor, and a pro camera mode 1 year ago:
It’s not about the resolution which as you mention is already more than sufficient. But you can easily see bad optics, bad color rendition, oversharpening etc. on a 500px image.
- Comment on Are We Ready For This Site's Endless Feed of AI-Generated Porn? 1 year ago:
Cam girls are going to lose their jobs.
- Comment on Google Pixel 8's amazing new camera features shown off in leaked teaser video: Video boost, Magic Editor, and a pro camera mode 1 year ago:
You can clearly see a qualitative difference between good and bad cameras even onf facebook-sized photos.
- Comment on Does a food being like 'high in B6 vitamins' or whatever actually mean anything or make anyone feel tangibly different? 1 year ago:
It will make a difference if you don’t get enough of it. But having enough of it will just feel normal.
- Comment on Elon Musk Stormed Into the Tesla Office Furious That Autopilot Tried to Kill Him 1 year ago:
If your cameras detect something the lidar does not, you trust the cameras
Yes, but if the lidar sees something the cameras doesn’t, you trust the lidar.
- Comment on The Emergence of Huawei's Kirin 9000S: A Tectonic Shift in the Global Semiconductor Landscape 1 year ago:
SMIC used ASML lithography machines to produce those chips. Thry can’t buy more of them and can’t get spare parts. It will be more tectonic when China can produce such lithography machines, but I wouldn’t hold my breath.
- Comment on The Emergence of Huawei's Kirin 9000S: A Tectonic Shift in the Global Semiconductor Landscape 1 year ago:
Intel 10nm is comparable to TSMC 7nm.
The numbers sound exact, but they aren’t much more than marketing terms nowadays.
- Comment on Unity bosses sold stock days before development fees announcement 1 year ago:
That would make stocks a form of retirement, not a work compensation.
How about that you can sell the stocks, with an uncancellable order a year in advance?
- Comment on Why wasn't former President Bush of the USA, charged with any crimes, when we marched into Afghanistan and Iraq by his orders, under pretenses? 1 year ago:
You (intentionally?) leave out the important detail that the main orchestrator of the attack bin Laden was at the time in Afghanistan and Taliban refused to extradite him.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
So far they didn’t complain. My manager is all praise too ;-)
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Sure, but part of the claim was “without any compilation”. But bun/deno do compile TS into JS.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Lol, so angry :-D
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Just fluff, no real arguments, ok.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Your code reads like it’s from 1992 mainly
Lol. You write a lot of text to mask the fact there’s no good reason why
getElementById
should be bad. It’s the same groupthink as with the jQuery, you’re told it’s bad so you just follow the crowd.jQuery was created as a way to account for browser support challenges
That was one of the reasons. The other was that DOM API was and still is crap.
Which is why I think it’s opinionated in a bad way to arbitrarily pick one of them as the defacto.
You’re missing the fact that jQuery does not prevent you from hiding the element in other ways. It’s just optimizing for the most common case, which is one of the principles of good API.
What you’re missing is that the hidden class can contain anything you want. Animations or whatever else.
Sure, and when I just want to … hide it, without any animations? Then this hidden class is boilerplate only.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Why would you not want to be using a rendering library?
Because it’s just not very useful in some contexts. I’ve seen web extensions which mostly query the current page, and it doesn’t render much or even anything.
Not all pages are SPAs either. Many apps are the old request-response with some dynamic behavior sprinkled on top. jQuery covers that well.
This model is also quite compatible with the rising HTMX where the state/rendering is driven from backend and you just insert few dynamic pieces with JS.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
There are multiple ways to hide an element yet they standardized on one that often wouldn’t work.
It’s the most common one. And it’s not like you can’t hide the element with some other mechanism with jQuery.
Also you’re using an ancient method getElementById…
And? What’s the difference from document.querySelector() when querying for ID?
So what is the right way to do that in modern js?
What is the right way is context dependent. I don’t see how having extra
.hidden { display: none; }
boilerplate is somehow modern or superior. - Comment on What programming languages aren't too criticized here? 1 year ago:
Python is for some reason darling of many, sometimes it has almost religious connotations.
Bourne shell is orders of magnitude worse clusterf*ck than PHP, yet it’s rarely criticized.
Rust rarely gets criticized which isn’t necessarily a problem, since it’s IMHO a good language for its intended use case. But people tend to recommend it for things where the trade offs come out negative. (apps not needing max. performance)
In general I wouldn’t follow the trends on social media, it’s all a huge groupthink.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Yes, the features are there. Just the API is still horrible.
As an example, make a hidden element visible (extremely common imperative operation).
jQuery:
$("#element").show();
Native JavaScript:
document.getElementById("element").style.display = '';
I hope you’d agree that the native JS is certainly not an example of good API.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
It’s still the best API for imperative access to DOM.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Unpopular opinion: I hope it’s going to be a flop. The limitation of having just JavaScript ensures level of interoperability which is IMHO one of the big advantages of web as an application platform. If WASM becomes successful, it will fragment the web.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
That’s not true, deno compiles TypeScript to JavaScript, it just does it transparently. The code still runs on v8.
- Comment on Linux file system developer: we're severely under-resourced 1 year ago:
Swallowing your pride, merging into another project and taking a less glamorous role in that project is not as easy as it was to fork when steering your project.
I don’t think it’s because of the ego. But if you’re working with other people, you need to do a lot of non-coding (non-fun) things. Align thinking, find compromises, establish and follow processes. Things are easier and more fun hacking alone. No processes to limit you, no one telling you “this doesn’t align with the vision of the project” etc.
- Comment on Is it really a breaking change if a method changes output after an update? 1 year ago:
has documentation which says it is meant only to be used for logging / debugging
No, it’s not a breaking change IMO. The method contract (the “debug” name, the comment) heavily implies the output may change and should not be relied upon.
- Comment on I'll just sort it myself 1 year ago:
That’s misleading at best and most likely just false, and it’s worrying it’s so upvoted.
There’s no historical record explaining why this was designed this way, but we can infer some things. HTTP is very unlikely factor, XHR / AJAX has been added years after the
.sort()
function.The trouble with JS arrays is that they can contain any values - e.g.
[false, undefined, 1567, 10, “Hello world”, { x: 1 }]
. How do you sort those? There must be one function to compare every combination of value, but how do you compare string and object?The simple answer to that is
.toString()
- every object has it, it will compute something, and often it will work well enough.