Is 300 nm the diameter of the optical cable? This terminology breaks my brain, 300 nm is 1000 terahertz, which is unreasonably large for a signal bandwidth, it's like one milllion Ethernet cables.
Browser-based notifications are easy to turn off, and it's probably the only way to get a message on a desktop PC without subscribing to email or using RSS. Also you don't need to install an app on your phone.
But it's very convenient! When you have a BSOD, you don't need your core dumped, you simply unplug your DRAM+ and send it to Microsoft using paper mail.
Ah don't worry, if you do fopen(file, "w") on Windows and forget to use "wb" flag, it will automatically replace all your \n with \r\n when you do fwrite, then you will try to debug for half a day your corrupted jpeg file, which totally never happened to me because I'm an experienced C++ developer who can never make such a novice mistake.
It depends on whether you are printing to a terminal or to a file (and yes the terminal is also a file), and even then you can control the flushing behaviour using something like unbuffer
printf is superior and more concise, and snprintf is practically the only C string manipulation function that is not painful to use.
Try to print a 32-bit unsigned int as hexadecimal number of exactly 8 digits, using cout. You can do std::hex and std::setw(8) and std::setfill('0') and don't forget to use std::dec afterwards, or you can just, you know, printf("%08x") like a sane person.
Just don't forget to use -Werror=format but that is the default option on many compilers today.
C++23 now includes std::print which is exactly like printf but better, so the whole argument is over.
It's way less expensive for state-sponsored hackers to blackmail your country's official to leak backdoor keys than try to break the unbreakable crypto using a nuclear-powered GPU farm.
Saving arbitrary metadata is the exact use case for pickle module, you just put it together with your numpy array into a tuple. jpeg format has support for storing metadata, but they are an afterthought like .mp3 tags, half of applications do not support them.
I can imagine multichannel jpeg to be used in photo editing software, so you can effortlessly create false-color plots of your infrared data, maybe even apply a beauty filter to your Eagle Nebula microwave scans.
What, pickle.dump your enormous Numpy array not good enough for you anymore? Not even fancy zlib.compress(pickle.dumps(enormousNumpyArray)) will satisfy you? Are you a scientist or a spectral data photographer?
Being direct is good. But 'too complex, refactor' as an explanation is just one word longer than 'fuck off'. You need to explain in detail why the solution is bad and which parts should be changed, in this case it just shows that the reviewer did not actually read the code.
The user should be able to write Standardsammlungenwörterbuch instead of
std::sammlungen::Wörterbuch, it's the compiler's job to figure out namespaces and insert correct punctuation marks.
Zoo animals behave differently than animals in the wild.
Both types are wild animals, however zoo animals get a meal or two per day with minimal effort required, so of course you'll get a fat lazy tiger who does not particularly care to attack you.
Second point is that the tiger was raised by that zookeeper from birth, so yeah, the tiger trusts them, that does not mean that the tiger will trust you or anyone else like your neighbour's pet dog does.
You absolutely can adopt a racoon baby and raise it into a racoon who will act like a pet cat towards you but bite all your visitors. Some people specifically get a wild animal pet for that reason.
Is 300 nm the diameter of the optical cable? This terminology breaks my brain, 300 nm is 1000 terahertz, which is unreasonably large for a signal bandwidth, it's like one milllion Ethernet cables.