I'm guessing that the issue was because you mixed a lot of code with English. For example:
Remember this are bitfields and & is the "bit and" operator NOT the boolean && GDK_WINDOW_STATE_ICONIFIED =2 or 10 on binary and event->new_window_state is an int which second bit is active
A Widget can be both maximized AND minimized at the same time, GDK_WINDOW_STATE_MAXIMIZED = 4 or 100
If you use the backtick (`) around inline code, it improves readability:
Remember this are bitfields and & is the "bit and" operator not the boolean && GDK_WINDOW_STATE_ICONIFIED =2 or 10 on binary and event->new_window_state is an int which second bit is active
A Widget can be both maximized and minimized at the same time, GDK_WINDOW_STATE_MAXIMIZED = 4 or 100
I edited your answer to clean it up a bit... Compare Your pastebin version with the version I clean up for you and tell me if you think it's better having the answer on the site, formatted nicely.
This is annoying and unnecessary. Why so much CARE about formatting code? Writing a "look here" + pastebin url seems like the most simple and workable approach, but defeats the purpose of stackoverflow
I disagree completely. It's really not that hard to format code properly. I'm sorry you're frustrated, but linking to a site where someone has to go to review the code is not a better solution in any way.
What happens if the pastebin is deleted? Your answer becomes useless. What happens if you want to refer to the pastebin? I don't want to switch between tabs just to understand your answer. Also, doesn't it take more time to open pastebin, create a paste, and insert the link than it does to just paste code on So and click the "format as code" button?
I see no advantage to using pastebin. What I see is a new user who is frustrated... we're here to help! If you can learn how Markdown formatting works you'll get a lot more enjoyment out of StackExchange.
someFunction()in a sentence I backtick it so it's clear that it's code and not English. I also personally backtickfalseand&&and such, but that's personal preference.