help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What does "lacks a prefix" mean?


From: Emanuel Berg
Subject: Re: What does "lacks a prefix" mean?
Date: Tue, 14 Jul 2015 01:47:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Yuri Khan <yuri.v.khan@gmail.com> writes:

> Variable dependencies start to matter a lot when
> you’re trying to refactor code — e.g. to extract
> part of a function into a new function of its own.
> In this case, variables shared by the code that
> stays and the code that moves out are a source of
> complexity, and their number may be a factor in
> deciding which refactoring the code actually wants.

If you are to muck around with old code, which seldom
is a good idea but sometimes necessary (?), then doing
so will be helped to an unfathomable degree if the
"let* style" has been applied when the code was
originally written, as computation is stepwise
performed and each step is named and put neatly into
a nice looking column!

It is, on the contrary, the "let style" with

    (let ((entity (computation_1 (computation_2 ( ... )))))
       ... )

which is much more difficult to write, not to mention
read, debug, and later maintain and modify.

"Variable dependencies" is all schoolbook stuff -
forget about it, the sooner the better, because it
doesn't work like that. It doesn't increase
"complexity", whatever that is.

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

[Prev in Thread] Current Thread [Next in Thread]