Rewrite section comments in a uniform format
Issue #244
resolved
Originally reported on Google Code with ID 244
The code map I wrote last March (2013-03-25) is already out of date. I use it quite
often to find my way around the code, but keeping it up do date manually requires too
much work.
If I were to mark important sections of the files with comments with a consistent format,
we could regenerate the map with a simple grep.
Something along these lines:
//- table actions
...
//- create a new table (table_create)
...
//- delete all rows and vacuum a table (table_empty)
Calling 'grep -n "//-" index.php' would give us a nice, indented map of the code, maybe
reducing the need for those '////////////////////////[...]'
Reported by dreadnaut
on 2014-01-11 19:41:05
Comments (5)
-
-
reporter > Although better comments are good and stuff like this will help > for the time being, we should in the long-run really use more OOP. That's why I wouldn't spend to much time on this. I would just make sure that all the important sections have a comment 'heading' and we know (more or less) where stuff is. Patch soon ;)
Reported by
dreadnaut
on 2014-01-16 12:26:50 - Status changed:Accepted
-
reporter Here's is the diff for the new comments. The syntax I used: 1) map comments start with '//- ' 2) larger html chunks are marked with 'HTML: ' 3) switch values are written as '=string' The last point should make actions easier to find in-editor; let me know if it works for you. Also attached is the source map that comes from running grep -n //- index.php
Reported by
dreadnaut
on 2014-01-17 12:44:34 - Status changed:Started
<hr> * Attachment: comment-map.patch * Attachment: map.txt
-
ok, cool. Only thing I noticed is a typo: //- Delete and existing database should be //- Delete an existing database Feel free to commit.
Reported by
crazy4chrissi
on 2014-01-17 13:17:27 -
reporter This issue was closed by revision r458.
Reported by
dreadnaut
on 2014-01-17 13:20:31 - Status changed:Fixed
- Log in to comment
Reported by
crazy4chrissi
on 2014-01-15 09:24:28