730 karma · joined March 19, 2016
I'm not even going to debate C++'s merits at this point. Everybody's had enough of that already. There are people who stick to it and there are those who bailed after a while. It's just that, if I have a choice, I won't work with the people who belong to the former group.
> Irrespective of what language you actually choose to write your project in, if you want to learn how databases, caching servers, language runtimes, compilers, allocators, message buses, games, rendering engines, browsers, distributed systems, AI runtimes etc are implemented then the cutting edge as it exists right now is mostly written in C++.
First things that come to mind when one hears:
- databases: PostgreSQL (C), MySQL (C), Berkeley DB (C), SQLite (C)
- caching: memcached (C)
- language runtimes: Java (C++), Python (C), Go (Go), Chez Scheme (C + Scheme)
- compilers: GCC (C compiled as C++), Clang (C++), GHC (C + Haskell)
- allocators: glibc malloc (C), jemalloc (C), tcmalloc(C++)
- message buses: DBus (C)
- games: some people write C, some people write C++, some people write C# and some write Swift
- rendering engines: C++ is admittedly popular here, if that's your thing
- distributed systems: this thing is so hyped that it's implemented in every language in existence
- AI runtimes: people here change the language every 2 decades. they started with Lisp, now it's C++ + Python, later it will be JavaScript
- browsers: I pity anyone who has to work on this software (I have to)
Now let's add one obvious category which was suspiciously left out from this list: operating systems: Unix, BSDs, Linux, Plan 9, Illumos, GNU Mach, Windows NT, XNU --- there is almost no C++ here (and any C++ that there is in just the last two).
So personally, if I were to write something new in this area, I would choose neither C, nor C++, but when it comes to learning something, it's clear that C is more than enough.
I've been working a lot with C++. I've seen its horror. No more.
Minor nitpick: when probabilities multiply, they get smaller. Such is the nature of numbers in the range [0, 1].
Multiplication would happen when counting the probability of two (independent) events coinciding. What you're thinking about here is the probability of any one of several events occuring. That will be a (rather convoluted) sum, not a product.
In any case, our impressions being different only prove my point about standardized styling of webpages.
I see you used "width: 60%" to specify the width of the article text. That's probably good for narrower screens, but on its own can have unpleasant effects on wider ones. Consider adding "max-width: 39em" to mitigate it. You may fiddle a bit with the exact value there to see what works for your website.
As to the text size, you used "font-size: 1.4em". I think that in this regard it's best to rely on the defaults and set "font-size: 100%" in "html, body" and then "font-size: 1rem" for the tag where the main text is contained.
I wish the web didn't have the possibility of styling its content and would only use standard options which would be customizable by users. E.g. as a webdev, you wouldn't be able to set the font face beyond "serif", "sans-serif", "monospace" and then everybody could just set those to what they like. Similarly, there would be no "font-size". You'd have to use semantically correct HTML tags and the user would choose the font size for these tags. I'm tired of 99% pages being unreadable. Reader mode is a hack.
EDIT: To clarify, the text on this page renders on my 4k screen with 170% scaling as ~31cm wide and each character is ~1cm tall.
And sure enough, the CSS responsible for this part contains "font-size: 22.4px;". That's beyond reasonable for normal body text.
And AFAIK EPUB gets into the same mess of MathJax as web pages do when they want to render mathematics. No thanks.
I do that sometimes, unintentionally (regardless of the person in question having a beard or not). It's just that gender in language is most of the time redundant and it only introduces noise into conversation. For most topics, the gender of the persons involved is irrelevant. But many languages force you to choose one, which just creates confusion if this piece of information is crucial or if it's just this bloat that the language forced you to include in your sentence.
Oh, and genders are much more prevalent in my native language. English is actually better than most languages in this respect. But let's go a step further and just get rid of it. I've heard the Swedes chose to move to "person/thing" pronouns, as opposed to "male/female/thing".
In my native language, verbs change their forms based on subject's gender. And then when you have sentences like "if I were in your shoes, I would verb", my brain tells me to assume the gender of the other speaker when I say verb. I mean, it's only logical: if I were in your shoes, I would be of your gender. But the language works otherwise. It's just stupid.
As to people's reactions to my occasional misnamings, most people don't care at all, some are amused. Because, really, this part of language is ridiculous. And making an issue out of it is immature.
The main author of UNIX is also the author of UTF-8[1]. The software hosted at suckless.org often isn't very useful and the people associated with the project often aren't very nice, but the comment about the people behind UNIX here is unfounded.
sudo apt install firefoxTBH, I've never worked at a company that would host their source code at a third party service. At my first job, we wouldn't even use a web UI for the repositories (I still think that's not all that useful to begin with). At my current job, we use cgit. We use Jira (that we pay for, obviously), but as to source control --- a company hosting it on GitHub? Never seen it with my own eyes. But I work as a C++ dev, so maybe it's different here than, say, in webdev world.
According to Merriam-Webster[1]:
«proactive» · acting in anticipation of future problems, needs, or changes
(EDIT: TFA doesn't clarify that.)
I'd love to be able to do that. But then, instead of hearing the music, I hear the neighbours, their dogs and their kids, their TVs and their music. It's awful. I would very much like to experience silence, but the modern world denies me this possibility.
[1]: Well, this last point isn't all that exceptional on Linux, but it adds up and I suspect that for people using macOS this is a downgrade.
It's possible to write crappy code on any platform, but some platforms (like Electron) make writing apps that don't suck impossible.
> Yes, some Electron apps are resource hogs, but many are not. VS Code is a perfect example of how Electron can enable development of a performant, cross-platform IDE.
All Electron apps are resource hogs, including VS Code. Just because Slack made it a standard to ignore the fact that not everybody has loads of RAM and that there are other apps running on the system, doesn't mean everybody's standards of performance and UX should race to the bottom.
Ok, I guess…?
1. Implementing a screenlocker in a secure and working manner on X is impossible.
2. Screenlockers cannot be activated when there the context menu (or something similar) is open.
3. There is a lot of screen tearing, in particular in Firefox and Chromium on X scrolling is a joke.
4. Dual-DPI is a no.
5. Everything is in a shared buffer, so security is a joke.
On Wayland these things should be fixed.
> Scientific opinions differ on whether viruses are a form of life, or organic structures that interact with living organisms.
And:
> Viruses are now recognised as ancient and as having origins that pre-date the divergence of life into the three domains.