Haha. The ‘oh not _that_ form of OO, the one everyone actually writes, I mean this fictitious one’ argument. It’s the same as the agile2 argument. Oh no everyone misunderstood, not _that_ agile, this other one. Round we go!
As far as I can tell by talking to people, those who hate OO don't actually know what OO is. The thing they hate is badly written, poorly organized, overly complex Java/C++/C# programs, not OO. Simply adding a bunch of interfaces and inheritance does not make a program object-oriented. All that does is add unnecessary complexity. The so-called OO programs that people hate usually throw OO principles to the wind and end up with a chaotic mess. There is such a thing as bad design, and bad programming.
Where is the like button?
Sean’s fight here is Herculean. Or perhaps or perhaps Davidean.
I hope some of this is taken seriously. It’s never too late to admit that static analysis is limited to information in the code. And that’s incomplete.
Here's my draft for a paper "Why Safety Profiles Failed."
https://t.co/cfY2Vokfbr
I try to break down the lifetime safety problem in terms of:
1. aliasing
2. lifetimes
3. safeness
C++ doesn't have information for any of these. Attempts to enforce safety are doomed to fail.
If you’re running engineering,
There are 2 traps to avoid.
Design by deadline and design by Conway’s law. If you let either dominate you will ultimately be less flexible, lower quality and higher cost.
Java first came out with a suite of tools that was ahead of its time. You could package your software, document it, and so forth. Over time, some of the very best environments were built to serve the Java ecosystem. But it turned into a curse.
Yesterday, I'm setting up a simple benchmark for my blog post using JMH. Sounds like child's play, right? Wrong. What followed was an epic saga of build system wizardry. I spent 10x more time on the build setup than on the code. Look at the screenshot, pay attention to the necessary `<arg>-processor</arg>`? Want to build and run...
mvn clean install && java -jar target/benchmarks.jar
Why the arcane ritual? Gradle came along, promising a new dawn. But alas, it seems just as complicated.
Let us compare with C#/.NET. We find the same XML... but I can hand edit these files with relative ease (except for the silly hash codes). And once you got it working, you can just do...
dotnet build
dotnet test
dotnet format
dotnet run
Adding a dependency?
dotnet add package
You know what the equivalent is in Go? Want to write a benchmark? Write the code. No config file. No dependency. Just 'go test -bench .'.
I'm no novice. I can write my own CMake build files for C++, I've setup Cargo for Rust, programmed in Python, JavaScript. Ocaml. It always seems simpler, faster, better. Yes, even Python seems better despite all the complaints.
Basically, almost everyone spent a whole lot of effort simplifying the builds so that it is easy, reproducible, understandable, debuggable.
You should not need hundreds of lines of XML code to build a project unless it is a massive project, like your own Web browser or operating system.
But Java? It stands alone. Instead of simplifying the build, it sought to hide it under graphical interfaces. So, when you need to peek under the hood, Java's build systems feel like a labyrinth designed by a mad architect. It's not the autoconf/automake nightmare, but in this age of instant build setup, Java's build ecosystem feels like a relic, a monument to complexity overthrown by the very simplicity it once championed.
Maven and gradle are good at failing with mysterious error messages that only a C++ compiler can surpass.
Interesting how many, on the back of my PM poll, talk about politicians as crooks, or only it it for themselves
My own experience, having met, worked with, & spoken to scores of MPs from all parties, is the vast majority (though not all) are, in my view, doing it for the right reasons and because they care.
I may disagree with their methods or policies, but rarely think it is for any nefarious reason.
The system of collective responsibility doesn't help either, when privately you know ministers don't agree with the policies they're locked in to having to promote (and then getting verbally battered by the media, including me, for it).
The life of a good MP means working incredibly long hours, in the chamber, mastering countless different subjects, in committees, in constituencies, dealing with constituents problems, countless meetings, school openings, and having to represent, travelling to and from London & constituency home. Not something I'd ever want to take on.
And it's not just that it can be thankless - it can be met by aggression, derision and sneering. Yet the people who do it are often absolutely bought in to the idea that they are trying to make the country better (though what better looks like is where the disagreement comes in).
This isn't about what they earn. The disjoin between the people's view and their politicians is a real problem.
It's the beginning of the end of mojibake. N3366 has been accepted to C during the WG14 Minneapolis Fall 2024 Meeting,
and my sole reason for going down to C is over. ⤵️
It’s the year 2045 and programmers realise that putting ‘is’ in front of Boolean returns makes no sense.
Excuse me sir, is that file exist?
Can I has cheeseburger?
@vin_acct If you live in a polyglot distributed hellscape then debuggers will be less useful, but distilling your problems into a single task and using a debugger is a superpower.