- 264 Posts
- 34 Comments
copacetic@discuss.tchncs.deMto
Automotive Industry@discuss.tchncs.de•Economist Says Volkswagen Could End Up In Chinese HandsEnglish
2·2 months ago“Europe will only establish itself as a third superpower if it achieves technological autonomy, with its own cloud and AI, which it currently lacks,” said Ferguson.
The underlying assumption here is that most of the profits go to the cloud and AI providers.
copacetic@discuss.tchncs.deto
Programmer Humor@programming.dev•How would you like to pay your NaN pounds?English
20·2 months ago“I have five pounds. Is that enough?”
“No.”
“It costs more than five pounds?”
“No.”
“How much do I have to pay?”
“This is NaN pounds.”
“That means it costs more than five pounds?”
“No.”
“It costs less than five pounds?”
“No.”
“Exactly five pounds?”
“No.”
leaves the shop
(Remember, comparison with NaN is always false)
copacetic@discuss.tchncs.deto
Programmer Humor@programming.dev•Boys, don't dev alone or you'll end up with a git log like mineEnglish
17·3 months agoLooks like a normal branch where someone debugs some GitHub workflow.
copacetic@discuss.tchncs.deto
Programmer Humor@programming.dev•C++ takes decades to masterEnglish
4·3 months agoQuite a while ago, I wrote this to document my understanding what OOP actually is.
This sentence at the end is interesting:
On the other hand it sounds unlikely that there will be a popular language without object-oriented influences some day, so at least minimal syntax-level support is desirable.
Rust was published like one year later and it can be considered popular by now. Does Rust support OOP via traits? Kind of yes, but so does Haskell with typeclasses.
copacetic@discuss.tchncs.deto
Programmer Humor@programming.dev•C++ takes decades to masterEnglish
321·3 months agoMost C++ devs blame themselves and not the language though. So it still gets used a lot.
copacetic@discuss.tchncs.deto
Programmer Humor@programming.dev•C++ takes decades to masterEnglish
18·3 months agoTo be clear, the language itself is usually not the big part. You also have to learn the eco-system, libraries, packaging, debugging, etc.
(C++ is still a very “comprehensive” language though)
If you use the SQLite C API like this
char query[256]; snprintf(query, sizeof(query), "SELECT * FROM users WHERE username = '%s'", username); int rc = sqlite3_exec(db, query, NULL, NULL, &err_msg);and someone enters
Robert'; DROP Table Students;--as username, it deletes the table Students.const char *sql = "SELECT * FROM users WHERE username = ?"; int rc = sqlite3_prepare_v2(db, sql, -1, &stmt, NULL); if (rc != SQLITE_OK) { fprintf(stderr, "Failed to prepare statement\n"); return; } sqlite3_bind_text(stmt, 1, username, -1, SQLITE_STATIC);Using this “prepared statement” and “bind”, your code is secured against such SQL injection attacks.
copacetic@discuss.tchncs.deto
Programmer Humor@programming.dev•Why I always keep doing it...English
122·5 months agoxkcd 242 obviously

copacetic@discuss.tchncs.deOPMto
Automotive Industry@discuss.tchncs.de•‘It’s stupid’: why western carmakers’ retreat from electric risks dooming them to irrelevanceEnglish
4·6 months agoThey blame the politicians. While there is some truth in it, it is also childish.
copacetic@discuss.tchncs.deto
Programmer Humor@programming.dev•The Epstein Files include a copy of the Bash manualEnglish
10·7 months agoYou can also try fish, to see what a decked out zsh feels like. 😇
copacetic@discuss.tchncs.deMto
Automotive Industry@discuss.tchncs.de•Toyota Owner Didn’t Know His Car Was Talking To Insurers Until He Saw His RatesEnglish
1·8 months agoI would assume it is not about the braking itself. However, if there is a crash, then it might interesting if there was a hard braking right before or not.
copacetic@discuss.tchncs.deOPMto
Automotive Industry@discuss.tchncs.de•Canada breaks with US, slashes 100% tariffs on Chinese EVs to 6%English
2·8 months agoDenial will also hurt in the long-term. With this annual quota it seems like reasonable compromise.
copacetic@discuss.tchncs.deto
Programmer Humor@programming.dev•Closing programsEnglish
221·8 months agoAndroid/iOS users: What is “closing“? What is a „program“?
copacetic@discuss.tchncs.deto
Programmer Humor@programming.dev•This is Jehan Pages, the top developer behind GIMP, a free open source photo editor. Adobe executives love Jehan. Because of his hard work, no one ever figured out how to use GIMP.English
5·8 months agoI’m under the illusion that i did figure out how Gimp works. ☺️
copacetic@discuss.tchncs.deOPMto
Automotive Industry@discuss.tchncs.de•Mercedes pauses Level 3 driving assistance – for nowEnglish
2·8 months agoSince Level 2 systems do not require expensive laser-based lidar sensors, unlike Level 3, the service can be offered at a considerably lower price.
That was always the tricky part: Level 3 feels nearly the same as top level 2 but is considerably more expensive. The difference between level 2 and 3 for the driver is essentially a legal one, not technical.
And it works just as well, if we reverse the roles:
🪨🪨🪨🪨🪨
🪨🪨🪨🪨🪨
🪨Human: There are 11 rocks.
Alien: Oh, you must be using base A. See, I use base 10.
Human: No, I use base 10. What is base A?
I use “m”. Here is how to set the default btw:
git config set --global init.defaultBranch m
copacetic@discuss.tchncs.deMto
Automotive Industry@discuss.tchncs.de•BMW CEO calls EU's 2035 combustion engine ban a ‘big mistake’, sees strong 2025 salesEnglish
1·1 year agoSo we transition to Ethanol or what? What climate-friendly fuels is he thinking about?
copacetic@discuss.tchncs.deMto
Automotive Industry@discuss.tchncs.de•Mercedes CEO calls for ‘reality check’, slamming EU combustion engine banEnglish
1·1 year agoI guess what they want is a smooth transition where they can devise a reliable plan until 2035 when to sell how many cars of what variant.
Worst case would be that they customers buy only ICE cars until 2035 and then nothing because of a ban. Then it makes no sense to build EVs until its too late.















… says Mercedes. Meanwhile China takes over the market with L2+++. 🤡