Message from C, C++ discussions

November 2019

— /warn Read the rules: no screen photo.

— 

User m3taP0st has 1/2 warnings; be careful!
The latest warn was because:
Read the rules: no screen photo.

— Purge complete.

— Char* fgets( char* str, int count, std::FILE* stream );


Reads at most count - 1 characters from the given file stream and stores them in the character array pointed to by str. Parsing stops if a newline character is found, in which case str will contain that newline character, or if end-of-file occurs. If bytes are read and no errors occur, writes a null character at the position immediately after the last character written to str.

The behavior is undefined if count is less than 1. It is also not specified whether a null character is written if count==1.

Message permanent page

— 😂😂😂😂😂😂

— 😂

— Hey guys, i know that this question isn't really c++ specified but more likely wide-range, but still, how do you do your object designs?

Message permanent page

— I code complicated apps, games in opengl, backend apps and stuff, i don't have the issue to just lock at some specific problem and find solution for it, even if it takes hours of research, but what always melts my brain is object design, i can make it as good as possible, but going to bed thinking about programming i can always think of bit better design

Message permanent page

— Do you use any apps like enterprise architect? did you learn any specific patterns like decorator / strategy / observer etc...? how do you approach your perfectly structured designs in your apps?

Message permanent page

— Simple, use the least amount of objects and of inheritance as you can; the least amount of Go4 design patterns as you can, and only ever yse any OO feature when it is absolutely without a doubt something that makes the code simple, shorter, or easier to understand

Message permanent page

— I also take a very long amount of time thinking about what I am doing. This means that, in the project I have been designing lately, I have spent 95% of the time on the project thinking and designing, specifying aspects of the project, and 5% of my time actually writing code

Message permanent page

— The code that is the simpler and easier to debug is the code that you do not write