Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Lines of Code
#16
Minimizing lines is good in only a couple of ways, for me:

Code: (Select All)
Dim As Long a: a = 5

You don't need two lines for that. The above crudely emulates how other languages allow you to assign a value during the definition.


Code: (Select All)
If thing = 1 Then DoThing()

Rather than:
Code: (Select All)
If thing = 1 Then
DoThing()
End If
The noticing will continue
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  VS Code and Qb64 pe Unseen Machine 6 730 09-03-2025, 09:42 PM
Last Post: grymmjack
  has anyone had ChatGPT write QB64 code yet? madscijr 13 2,957 08-23-2025, 09:15 AM
Last Post: doppler
  liquid code experiment madscijr 3 492 06-20-2025, 07:26 PM
Last Post: madscijr
  Update Info (split) doppler 2 420 06-17-2025, 12:17 PM
Last Post: doppler
  Splitting REALLY *REALLY* long lines into single character + CR + LF Circlotron 10 1,530 04-22-2025, 11:30 AM
Last Post: Circlotron

Forum Jump:


Users browsing this thread: 1 Guest(s)