Had another 48hr game jam this weekend...

Manu turkeyman at gmail.com
Mon Sep 2 18:23:18 PDT 2013


On 3 September 2013 03:29, Walter Bright <newshound2 at digitalmars.com> wrote:

> On 9/1/2013 8:28 PM, Manu wrote:
>
>> D probably appeals more to ex-C++ users (I'm not aware of any sensis, but
>> D's
>> main offering at least to me, is an evolution from C++). We are used to
>> being
>> able to gather a quick summary of a class at a glance.
>> D (or perhaps just me) makes extensive use of local functions. If the
>> outer
>> function is at the leftmost tab level, it's easy to recognise if you're
>> reading
>> the code from a local function or not. If the outer function is already a
>> few
>> tab levels deep, I frequently find myself becoming unsure of what/where
>> I'm
>> actually reading.
>>
>
> I don't know if this is an IDE feature or not, but I've often thought of
> adding a command to my editor (MicroEmacs) to collapse/expand function
> bodies. This would make it convenient to navigate larger files - just
> collapse, move to the function you want to examine, then expand. It would
> also mitigate the issue you have. I theorize that VS doesn't have such a
> feature? Maybe IDEs are solving the wrong problem? :-)
>
> One that collapses out the comments would be great, too, as I've found one
> downside of Ddoc is it can get hard to find the code amongst the doc
> comments.
>

IDE's have this. I find myself thinking this more often than not when
reviewing code, in commit windows, merge windows (with reduced horizontal
space), etc.. you read code all over the place, not just where you type it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130903/a4efe104/attachment.html>


More information about the Digitalmars-d mailing list