#NGHTTP2 request handling
12 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
They're hard to read and prevent copying and pasting.
Well-formatted code is much easier to read, especially for people who haven't written it themselves. Poor formatting can even be misleading, especially indentation:
while (is_waiting); // BAD! reader may think that
std::cout << "hi\n"; // printing is in the loop
while (is_waiting) { } // good, empty statement
std::cout << "hi\n"; // is clearly visible
- Stay consistent! (much easier when using auto-formatters)
- Don't use exotic styles that surprise readers.
- The rest is up to personal preference.
For C/C++, you can use clang-format to decide on a style, and apply it automatically to your files. You can use it in the terminal, or through an editor plugin.
Most IDEs will also let you configure a style in their settings, but clang-format is universal.
wait that one is the wrong one 😅
```cpp
int main() {}
```
int main() {}
and Honestly I would highly reccomend not using chatgpt to help you, chatgpt can't code and doesn't know what it's doing
I know, but I need to iterate fast in order to get the proof of concept, I've managed curl really fast on the client side, but this nghttp2 on the server side is rly pain
these callbacks are killing me
!solved