Line splitting for really long commands?

Everything else that doesn't fall into one of the other PB categories.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Line splitting for really long commands?

Post by Tenaja »

I use a single 26" monitor... because I regularly have two docs open at a time, so I don't want my IDE to take up more than half of the screen width.

My preference for line splitting has more to do with simplifying the reading...

Code: Select all

FunctionBeingCalled ( OneLongParameter1,
						OneLongParameter2,
						OneLongParameter3,
						OneLongParameter4,
						OneLongParameter5,
						OneLongParameter6,
						OneLongParameter7,
						OneLongParameter8)
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Line splitting for really long commands?

Post by IdeasVacuum »

.....oh no, that's a terrible waste, with the code like that you are only using about 3 of your 26 inches available! :mrgreen:
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Line splitting for really long commands?

Post by Shield »

SCNR! :mrgreen:

Image

But I never go over 120 characters per line as it really gets hard to read,
especially on my laptop while sitting in the train. :wink:
Last edited by Shield on Sat Dec 03, 2011 8:49 pm, edited 1 time in total.
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Line splitting for really long commands?

Post by Kuron »

Danilo wrote:Image

:lol:
EGads! That would kill my neck having to keep turning it to see the whole screen.
Best wishes to the PB community. Thank you for the memories. ♥️
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Line splitting for really long commands?

Post by Tenaja »

IdeasVacuum wrote:.....oh no, that's a terrible waste, with the code like that you are only using about 3 of your 26 inches available! :mrgreen:
It often improves readability.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6175
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Line splitting for really long commands?

Post by blueznl »

Kuron wrote:
Danilo wrote:Image

:lol:
EGads! That would kill my neck having to keep turning it to see the whole screen.
Dunno... I use 2x 22" 16:9 next to each other and it all looks fine to me...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: Line splitting for really long commands?

Post by dobro »

in EPB (french editor)

http://michel.dobro.free.fr/download.php?view.25


a line like:
If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
Can be written like this :

If OpenWindow(0,_
100,_
200,_
195,_
260,_
"PureBasic Window",_
#PB_Window_SystemMenu_
| #PB_Window_MinimizeGadget_
| #PB_Window_MaximizeGadget)
so it is possible to do :lol:

and more things like:

Using the command "_declare" in the beginning of listing
Automatically Write your statement of procedures

use:
You put your procedure at the end of listing
Then on top of it, you write _declare
EPB will then write all the statements for you!

and more ....

the commands:

_catchsound
_catchsprite
_catchimage


As soon as you use these commands (in the beginning of listing)

A openfilerequester ask you to choose which files to include
(multiselection possible)

EPB and generate the code lines for the inclusion of these files has the location of controls,

If DataSection exists, it will be populated (insertion of new data)
Otherwise it will be created before being filled




amazing is not it? :)

but ... it is in French :twisted:
and still in development phase
Image
Last edited by dobro on Wed Dec 28, 2011 2:37 pm, edited 5 times in total.
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Line splitting for really long commands?

Post by MachineCode »

IdeasVacuum wrote:
1920
You sure you got the monitor the right way round? :mrgreen:
What's so funny? 1920 x 1080 is a high-def display. Surely you knew that?
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
Post Reply