Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Lines of Code
#13
When a bit older, I really want to be able to understand my code from a couple of years ago

Sometimes I intentionally put all statements on separate lines to show all separate steps that are done and give them a bit more 'weight' in the sub or function:
Code: (Select All)
if order% = _TRUE then
  Input "What do you want to order? ", food$
Else
  Print "Goodbye"
End If
Sometimes I put statements on the same line to show they belong together and do some small housekeeping:
Code: (Select All)
if groupsize% < 10 then groupsize% = groupsize% + 1 Else groups% = groups% + 1: groupsize% = 0
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
Reply


Messages In This Thread
[split] Lines of Code - by bplus - 01-20-2025, 05:13 PM
RE: [split] Lines of Code - by bplus - 01-20-2025, 11:05 PM
RE: [split] Lines of Code - by SpriggsySpriggs - 01-21-2025, 03:02 AM
RE: [split] Lines of Code - by Pete - 01-21-2025, 07:34 AM
RE: [split] Lines of Code - by mdijkens - 01-21-2025, 10:07 AM
RE: [split] Lines of Code - by SMcNeill - 01-21-2025, 02:37 PM
RE: [split] Lines of Code - by mdijkens - 01-21-2025, 03:04 PM
RE: [split] Lines of Code - by SpriggsySpriggs - 01-21-2025, 03:17 PM
RE: [split] Lines of Code - by dano - 01-25-2025, 04:08 PM
RE: [split] Lines of Code - by Pete - 01-21-2025, 04:26 PM
RE: [split] Lines of Code - by Jack002 - 01-22-2025, 03:19 AM
RE: [split] Lines of Code - by bplus - 01-22-2025, 12:10 PM
RE: [split] Lines of Code - by Pete - 01-25-2025, 05:11 PM



Users browsing this thread: 2 Guest(s)