u/Qiwas

What does "chlieb konzumný" mean?

This always bothered me and I couldn't find the answer online. If it's bread, obviously it's intended to be consumed, what else could it be for? I'd appreciate if anyone could shine a light on this mystery

reddit.com
u/Qiwas — 4 hours ago

TIL that the standard library provides support for complex numbers

Accessible via the `complex.h` header

What other useless things have you encountered in C?

reddit.com
u/Qiwas — 6 days ago

How different is Germany and Austria in terms of culture, language and living?

I hope this doesn't come off as offensive. Are the countries' cultures similar, or is there a big difference? How is the other country perceived by Germans/Austrians (are there any stereotypes, etc.)?

reddit.com
u/Qiwas — 15 days ago

I've been working on a personal project to learn how to structure the code in a readable and scalable way. At this point I am honestly impressed at the scale of my failure. So far I only have like 5 headers and 5 C files, yet no matter how I structure them, the code remains an ugly mess. Some issues that I have are:

  1. I constantly don't know whether to put structures in separate headers or add them to existing ones.
  2. Sometimes I get situations when header A needs stuff from header B, and B needs stuff from A. To avoid circular a inclusion I kinda have to bring out some parts from A and B into separate headers, but this 1) makes the code harder to understand, 2) pollutes the file space, and 3) I simply don't know which parts to bring out and which to leave in the original
  3. I have tried doing forward declarations whenever possible, but this feels more like a bandage on a wound than a real solution, because whenever I inevitably need to use the full structure somewhere, all the issues above apply

Due to this I am completely stuck and unable to add any new functionality, therefore the project has been sitting abandoned for a while.

If for some reason you want to take a look at the code (which I don't expect), here it is https://github.com/qemea/iHateHeaders/

Any help would be appreciated 🙏

reddit.com
u/Qiwas — 23 days ago

So oftentimes I find myself in a situation where I get interrupted while doing some work be it either to switch to a different task or to shutdown the computer. In these cases it would be nice to have the ability to save all opened programs in the state they are (like a VM snapshot), start a new, clean work session for a different task (or turn off the computer), and be able to restore the that later. Is there any way to achieve this (or an OS with this feature)?

reddit.com
u/Qiwas — 23 days ago