Re:Show HN: Online C/C++ Code Browser
by tlrobinson on Monday March 07, 2016 @01:09PM
(#11240380)
I don't know if it's my relative unfamiliarity with C++ or those syntax highlighting colors but I find that code incredibly hard to parse quickly.
[ Parent
| on HN ]
C++ is definitely a language you need to spend some time with before you can visually parse it quickly. C++11 also allows you to trim down the verbosity with things like "auto".
Different themes are available depending on your taste. Just pick one from the style combo box at the top right.
I suspect they wanted to show off features, so they crammed as much code as possible into the smallest area possible and stripped out the white space.
IMO it'd be pretty nice with decent white space.
Re:Show HN: Online C/C++ Code Browser
by GFK_of_xmaspast on Monday March 07, 2016 @02:38PM
(#11241018)
It would still be pretty gross, especially with all those variable declarations/assignments inside conditionals.
Oh, yeah, I wasn't trying to nitpick the overall code quality.
I just meant using white space would be more readable for demonstrating the code browsing capability.
There's a lot of whitespace removed, but also IMO they used way too many colors. Once you highlight everything, you're highlighting nothing.
The color theme is based on KDevelop's theme, which happen to be my favorite IDE. I find color really helpfull while reading code since they each have a different to which you quickly get used.
But there are other themes that one can choose.