Quite 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.
Most C++ devs blame themselves and not the language though. So it still gets used a lot.
To 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.
Not with respect to having an account. This one is "May 15th, 2024"
Germany's government was "Dec 23, 2022". I don't know about others.
For the SPD's account, this is already the second withdrawal from X; it had been reactivated before the federal election.
Let's see how long it holds this time.
He tries to establish an EU Independence Day apparently.
It could actually be a good thing if this nothingburger gets some attention and scares some politicians. It could be yet another case which demonstrates that the US don't want to be a partner of the EU anymore and that the EU must invest in their own solutions.
Cynical me says that was the whole point.
I don't like it but I agree it is the most likely outcome. My forecast includes the fact that Merz acts as stupid as does.
Sounds like Iran won the war the US started.