in reply to Where to place POD
For finding sections of my code, I use a heading, via comments, but one that is large and easy to see when scrolling quickly past it. This can be as simple as something like this for a function...
...or with my HTML code to be able to easily find a section there...# ------------------------------------------------------------- # P R O C E S S R E P L A C E M E N T S # -------------------------------------------------------------
...to something more noticeable for a group of functions or a section of HTML, like this:<!-- #^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +^^^^ # ******* S T A R T O F J A V A S C R I P T S H E R E ! ! ! **** +*** #_____________________________________________________________________ +____ -->
(Yes, I found that text art online somewhere and copied it...too much work to make it myself!)<!-- #^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # ******* N E W A C C O U N T C R E A T I O N ******* #________________________________________________________ ----- +----- 1 | H | +|He | |---+---- -------------------- ++---| 2 |Li |Be | | B | C | N | O | F +|Ne | |---+---| |---+---+---+---+--- ++---| 3 |Na |Mg |3B 4B 5B 6B 7B | 8B |1B 2B |Al |Si | P | S |Cl +|Ar | |---+---+---------------------------------------+---+---+---+---+--- ++---| 4 | K |Ca |Sc |Ti | V |Cr |Mn |Fe |Co |Ni |Cu |Zn |Ga |Ge |As |Se |Br +|Kr | |---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+--- ++---| 5 |Rb |Sr | Y |Zr |Nb |Mo |Tc |Ru |Rh |Pd |Ag |Cd |In |Sn |Sb |Te | I +|Xe | |---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+--- ++---| 6 |Cs |Ba |LAN|Hf |Ta | W |Re |Os |Ir |Pt |Au |Hg |Tl |Pb |Bi |Po |At +|Rn | |---+---+---+------------------------------------------------------- +----- 7 |Fr |Ra |ACT| ------------- -------------------------------------------------------- +----- Lanthanide |La |Ce |Pr |Nd |Pm |Sm |Eu |Gd |Tb |Dy |Ho |Er |Tm |Yb +|Lu | |---+---+---+---+---+---+---+---+---+---+---+---+---+--- ++---| Actinide |Ac |Th |Pa | U |Np |Pu |Am |Cm |Bk |Cf |Es |Fm |Md |No +|Lw | -------------------------------------------------------- +----- -->
Sometimes my header can be removed once active development on that section is complete. It just helps me find it at the time I am working with that section.
These headers have been my way of navigating my code more easily, as each of the 20+ files in the required codebase has over 1,000 lines on average.
Blessings,
~Polyglot~
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Where to place POD
by harangzsolt33 (Deacon) on Jan 15, 2024 at 01:54 UTC | |
by Bod (Parson) on Jan 15, 2024 at 19:20 UTC | |
by Polyglot (Chaplain) on Jan 15, 2024 at 03:39 UTC | |
by mr_ron (Deacon) on Jan 15, 2024 at 14:48 UTC | |
by harangzsolt33 (Deacon) on Jan 16, 2024 at 01:35 UTC |