debugging_complex_programs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
debugging_complex_programs [2021/01/19 13:55] – [Debugging complex scripts] emozolyak | debugging_complex_programs [2021/01/19 13:57] – [Proper commenting] emozolyak | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Proper commenting ===== | + | |
- | Use commenting you will understand next time you or someone will see you code. | + | |
- | <code lua> | + | |
- | ----------------------------------------CALC. DAY ECONOMY -------------------------------------------------- | + | |
- | LimitMonthDayYesterday = GetReg(" | + | |
- | HeatEnergyDay= GetReg(" | + | |
- | WriteReg(" | + | |
- | ------------------------------------------------------------------------------------------------------------ | + | |
- | </ | + | |
====== Debugging complex scripts ====== | ====== Debugging complex scripts ====== | ||
===== Project initialization ===== | ===== Project initialization ===== | ||
- | ===== Proper commenting ===== | + | |
- | Use commenting you will understand next time you or someone will see you code. | + | |
- | <code lua> | + | |
- | ----------------------------------------CALC. DAY ECONOMY -------------------------------------------------- | + | |
- | LimitMonthDayYesterday = GetReg(" | + | |
- | HeatEnergyDay= GetReg(" | + | |
- | WriteReg(" | + | |
- | ------------------------------------------------------------------------------------------------------------ | + | |
- | </ | + | |
Line 77: | Line 61: | ||
It is recommended that you split complex scripts into simpler and more frequently used functions that you can reuse. Dividing tme into simpler parts, arranging them in the right order and grouping helps to control the logic of the system and makes it easier to set up the system. | It is recommended that you split complex scripts into simpler and more frequently used functions that you can reuse. Dividing tme into simpler parts, arranging them in the right order and grouping helps to control the logic of the system and makes it easier to set up the system. | ||
+ | |||
+ | ===== Proper commenting ===== | ||
+ | Use commenting you will understand next time you or someone will see you code. | ||
+ | <code lua> | ||
+ | ----------------------------------------CALC. DAY ECONOMY -------------------------------------------------- | ||
+ | LimitMonthDayYesterday = GetReg(" | ||
+ | HeatEnergyDay= GetReg(" | ||
+ | WriteReg(" | ||
+ | ------------------------------------------------------------------------------------------------------------ | ||
+ | </ | ||
debugging_complex_programs.txt · Last modified: 2022/01/15 20:50 by 127.0.0.1