Forum > Beginners

clean code? How do you write

(1/1)

Weiss:
fellas. I am sure you know what I mean. How do you write program, which will not be plagued with variables and names you no longer use, or could do without. Generally, is there a strategy on how to test the idea if it works, and keep adding functionality without sinking into a mess? There must a method to it. I will develop my style eventually, but a quick pointer is what I need right now. Thank you kindly.

440bx:

--- Quote from: Weiss on July 11, 2022, 06:11:33 am ---How do you write program, which will not be plagued with variables and names you no longer use, or could do without.

--- End quote ---
The compiler tells you if an identifier is not used and/or assigned but never used.  When you see that case, you get rid of the identifier.

Awkward:
Additionally, i still use (well, trying to use) sometime PascalAnalizer https://peganza.com. It not supports FPC directly but have free version.

Navigation

[0] Message Index

Go to full version