User forums > General (but related to Code::Blocks)
About visualizing code
Alpha:
--- Quote from: oBFusCATed on May 03, 2012, 04:17:50 pm ---[...] as far as I know drawing random rectangles is not possible with it [...]
--- End quote ---
Out of curiosity, what does this mean "Highlight occurrences" uses? Is it just a call to specific Scintilla method?
Freem:
--- Quote from: Oon Kuka Oon on May 04, 2012, 12:46:54 am ---2 background colors can be recycled when drawing nested blocks, and with third one you can draw subsequent same level blocks differently so they can be distinguished even if there aren't any "parent block" lines between.
--- End quote ---
Hum... not convinced. Maybe I do not see correctly what you mean... I have nothing against such feature, but just let me disable it.
HS:
--- Quote from: Oon Kuka Oon on May 04, 2012, 12:46:54 am ---Freem:
Why use macros if there could be more elegant way?
--- End quote ---
Because sometimes, macro are the elegant way.
I used them in a professional project. Without macros, users of my library had to writes classes of near 100 lines. 100 lines which could be mostly written by a robot, with not so well known calls to stl (my colleagues are not C++ dev). With macros, the resulting code was of 20 lines of a pseudo language, far easier to write and read. Those macros also allowed me to fix some bugs I never understood, thanks to gain of readability.
Interest of macros against inline functions, by example, is that they do not need to respect C or C++ syntax, and that give some powerful features. Now I am thinking about that, maybe in C++11 some of macros uses can be replaced by lambdas, but I do not think lambdas are so easy to read. Other problem is that some people can not use C++11 at the moment.
Oon Kuka Oon:
--- Quote from: oBFusCATed on May 04, 2012, 12:49:07 am ---
--- Quote from: Oon Kuka Oon on May 04, 2012, 12:46:54 am ---Apparently you'd need to be a member to email them? I got the following message from Google:
--- End quote ---
Apparently you'd have to become member :)
--- End quote ---
Apparently you'd need a Google account to join them ;D
Apparently I have to create one... ::)
--- Quote from: Alpha on May 04, 2012, 03:13:23 am ---
--- Quote from: oBFusCATed on May 03, 2012, 04:17:50 pm ---[...] as far as I know drawing random rectangles is not possible with it [...]
--- End quote ---
Out of curiosity, what does this mean "Highlight occurrences" uses? Is it just a call to specific Scintilla method?
--- End quote ---
That's a good point!
Freem: Naturally background colors should be optional like any highlighting.
Navigation
[0] Message Index
[*] Previous page
Go to full version