[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exploring a code base?
From: |
Stefan Monnier |
Subject: |
Re: Exploring a code base? |
Date: |
Tue, 27 Oct 2020 19:15:52 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> It depends on the programming language, but I usually rely on a compiler
> to generate an index for my project in the background.
IIUC Yuri's situation uses such an "index" but needs something more
because the "overall goal" requires changes in various pieces of code.
So while the index helps you find which pieces of code need to be
changed, it doesn't necessarily help you keep track of what still needs
to be done.
E.g.
- I change some function to use `syntax-ppss`.
- now some old function `foo1` is not needed any more, so I go look at
all the functions called by `foo1` to see if they're still needed.
- along the way I see that `foo2`s third argument is now always nil,
so I simplify `foo2's code and find that its second argument is not
used any more, so I go look for all the callers to `foo2` so they
don't other passing a second argument.
- while doing that I see that in `foo3` I can now do some other
simplification which makes `foo4` into a dead function, so I start
looking at all the functions call by `foo4` to see if they're
still needed.
- along the way I realize that I'm late for a meeting with a student.
- next day I come back to this code and wonder where I was, which part
of the fallout from the simplifications from `foo1`, `foo2`, `foo3`,
and `foo4` has already been done, ...
Stefan
- Exploring a code base?, Yuri Khan, 2020/10/27
- Re: Exploring a code base?, Christopher Dimech, 2020/10/27
- Re: Exploring a code base?, Stefan Monnier, 2020/10/27
- RE: Exploring a code base?, Drew Adams, 2020/10/27
- Re: Exploring a code base?, Dmitry Gutov, 2020/10/27
- Re: Exploring a code base?, Perry Smith, 2020/10/27
- Re: Exploring a code base?, Daniel MartÃn, 2020/10/27
- Re: Exploring a code base?,
Stefan Monnier <=
- Re: Exploring a code base?, Skip Montanaro, 2020/10/27