user8501
Joined 4 years ago
Joined 4 years ago
The grug brain philosophy is simplicity at all costs, unless absolutely unavoidable.
The big brain philosophy as grug sees it is reusability at all costs, unless absolutely unavoidable.
The issue with this philosophy is that it tends to lock in first generation design choices and makes iteration more difficult.
It’s true that simplicity is difficult to find, but iteration is the key to finding simplicity.
2. I typically throw a _ptr at then end for global pointers
3. use a unity build - create a build.c file and directly #include all .c files, and then just compile your build.c file. This will speed up compilation by many orders of magnitude, as well as allow the compiler to make better optimizations. Don't think too hard about how to separate your C files. I typically start in one file and I begin separating as themes or modules start to emerge. And even then, I wait a while, because I may change my mind. This allows my designs to become quite refined.
4. Make as few allocations as possible.
5. no comment
6. I get a personal kick out of sticking to C89, to my own detriment probably.
7. Errors are handled differently on a per function basis. But when an error requires a lot of cleanup, don't be afraid to use a GOTO.
8. Throw -fsanitize=undefined in there as well.
Do people think we’re going to run out of space or something for these languages?
I’ll never understand how a persons personal triumph can be perceived negatively by another person.
Are you equally as upset when somebody paints a picture of a mountain, simply because other people have done that before?