Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror

Comment Re:Do it yourself (Score 1) 82

Cppcheck apparently knows "hundreds of other rules covering a multitude of language aspects" so you don't "have to mentally apply against every single line of code you write."

Cppcheck doesn't flag anything in Waffle Iron's example.

It also doesn't find anything wrong with:

std::vector<int> vec = {1, 2, 3, 4, 5};
auto it = vec.begin();
vec.push_back(6);
std::cout << *it << std::endl;

Which is another common example of how you can write memory errors without using C++ pointers.

Comment Re:What's the difference between tablet and phone? (Score 1) 122

A USB-C connection can be anything from USB-2 (480 Mbit), various USB-3's (5, 10 or 20 Gbit), Thunderbolt (40 Gbit), . . .

A USB-C connector is the same physically as a Thunderbolt 3/4 connector. That does not mean you can always run Thunderbolt over the connector. This is the a problem with a universal connector that has wildly different capabilities. However in this context, I know of no mobile phone that has a Thunderbolt connector unlike what the OP and the people who replied have said.

Comment Re:There is already a safe subset of C++ (Score 1) 82

In the sort of places where MISRA and similar coding guides apply, yes, never allocating memory is expected, because once dynamic allocation exists you can't guarantee that you won't die with an out-of-memory error and similarly can't guarantee any time bounds on how long an alloc and dealloc will take.

Sure, so C++ is safe as long as it's used in a way that makes it incredibly painful. Sounds good. Let's just require all C++ code everywhere to be written that way. Rust usage will skyrocket overnight.

Comment Re: Is there anyone here that voted for Trump (Score 1) 252

It is hard to have fair democracy with winners take it all.

For a really rigorous definition of "fair", it's impossible to have fair democracy at all. Arrow's Theorem demonstrates this to a large degree, although many have argued that some of his fairness axioms are excessive. More recent research has concluded that fairness is the wrong standard, because there's no way for an electorate's "will" to really be fairly represented by any electoral system, not in all cases. Some systems can do better most of the time (and "winner take all" is particularly bad), but all systems fail in some cases.

What we need to aim for instead of fairness is "legitimacy", which is more about building broad acceptance of the system than about fixing the system itself, though it's easier to build acceptance for better-designed systems.

Having the country's top politicians continually claiming the system is unfair and rigged is, of course, the worst possible thing to do if you want to build support for the legitimacy of the system.

Comment Re:Jokes on you (Score 1) 252

Precisely none of those books were ever banned.

I decided to check :-)

According to the Book Censorship Database from the Every Library Institute, both "Of Mice and Men" and "Adventures of Huckleberry Finn" have been challenged, but only "Of Mice and Men" was removed, though "restricted" is more accurate. The Birdville Independent School District in Texas removed the book from general access, allowing access only to the AP English class, and the Indian River County Schools in Florida restricted it to high school students.

No Doctor Suess books were banned, although Suess Enterprises voluntarily ceased publication of six books.

Comment I have to be honest (Score 1) 59

... I'm more concerned about how *astonishingly* fucking stupid Google as an organization must be that nobody along the way from dev to testing to implementation apparently considered this?

This isn't me writing some macro in Excel that doesn't work. This is Google. 50? 100? ...or even more people had to touch this before it went live on afaik the biggest browser in the world on what 3-5 BILLION machines?

Comment Re:NPM needs to be burned to the ground (Score 1) 32

I've never seen a software distribution mechanism as careless and sloppy as NPM.

I've always been against running anything that requires NPM, because of exactly that.
Their repository governance is abysmal.
Compare that to, say, Debian/Ubuntu, and you see a huge difference.
Debian has been around for almost 3 decades, and we have not had the repositories being a vector for compromised software.

If it is NPM, I pass ...

Comment Re: USA *deserves* the kick to the ego. (Score 1) 93

The Left assumes the Right is just the same sort of Cult of Personality that they themselves are, just on the other side.*

*(Sadly, as an old school conservative, I'm actually just as or more troubled by the what-we-formerly-called-neoCons and activist Republicans who DO act just like Dems just marching behind a different flag, cf the FCC/Kimmel thing I think is a conservative own-goal because it is asinine the US gov't is 'weighing in' on the content of some mid-talent late night show with like 120k viewers. Likewise most of Trump's bombast just gets in the way of what he's trying to do.)

They don't realize the Left and the Right FUNDAMENTALLY see the relationship to power differently, in a different framework, and with an entirely different context.

Comment Re:How then? (Score 1) 44

I know the global climate change strawman is pretty much everywhere. I've been fighting you morons on this for 30 years since IPCC 2. That's back when they left their sources online - eg tree ring data - so I could gophur it, throw the raw data into excel and see there was NO SUCH TREND as discussed.

"Climate is changing" well yes it's always changed
"but now it's warming" yes we're coming out of an interglacial, duh?
"no, HUMANS are causing this" they really aren't; the climb of temperature is basically identical in scope, slope, and timing to the previous 30x-40x spikes we've seen in paleoclimate reconstructions every 120k-ish years for around the last 4 million years. Temp spikes, then settles back to a rough norm.
"(increasingly shrill) THIS TIME IT'S PEOPLE you fascist!" well, now you have to explain a) how you can discern this is different from one of those, b) where the previous usual expected spike went, and c) how the earth's climate systems that responded to the previous repeat events won't do exactly the same thing.
"grr but 97% of climate scientists agree!" that's been debunked so many times I'm not bothering to do it again. How curious that people who make their living and gov't grants from declaring the sky is falling, insist that indeed, the sky is falling.
"fuck you nazi" yeah, right back at you.

The funny thing is I *absolutely* agree that human activity is very likely increasing the warming to some degree, or if not that, it's probable that a longer steady warming over centuries was suppressed by heavy particulate load from the industrial revolution; our SUCCESS at (and economic changes) clearing/reducing particulates has resulted in the system 'rebounding' likely appearing to be sudden warming.
I also agree it's stupid to shit where you eat, and we absolutely need to work on stronger efforts to clean water, clean air, and a cleaner environment wherever possible.

I just think that this whole discussion is a bullshit trend that the ecomarxists and left have barnacled onto and my failing to genuflect to their Catastrophist Creed and Holy CO2 Ghost marks me as an apostate. (shrug) I don't give a shit.

Is that ELI5 for you? I don't expect to change your mind but occasionally I like to lay it out there on the ridiculously small chance someone other than you reads it.

Comment Re:Jesus (Score 1) 57

Awful.

Worse, EVEN IF YOU CHANGE THE SETTINGS the shit will just revert at some random patch in the future (not every one, so you can't get into the habit of always fixing it...).

I'm an idiot, so I've now made the mistake out of perhaps weird optimism TWICE: trying to disable onedrive (or limit it), /as well as/ trying to move things like my documents and downloads folder OFF my superfast C system drive (ssd) and onto the gigantic 3+ tb data drive and both systems are a ficking mess of where files actually are. I now have 'documents' folders on BOTH drives, some of which are apparently onedriving to the cloud, I ...think? We just wiped and restored a system and lost a bunch of tax files because my wife said 'oh those are in the docs folder on that system' so copied the whole docs folder to a big usb for later review...only to discover AFTER the system was reformatted and win11 installed that those files were apparently in the OTHER 'docs folder'. Sigh.

Slashdot Top Deals

You might have mail.

Working...