Tabs Vs Spaces war is back on and my side just won a battle :) (1 Viewer)

Jan 18, 2019
541
916
Cuesta Blanca, Murcia, Spain
Funster No
58,086
MH
Hymer Exis
Exp
Since 2010
Love it. But then, Linux is far behind me now ...
El Reg's take:
"So, rather than a savagely critical email response, he is knowingly and with malice aforethought using more complicated indentation in order to expose tools that can't handle it. It should weed out the weaker tools, leaving only the fitter, better-adapted onesā€¦ while not publicly hurting anyone's feelings.
Think of it as evolution in action"
 
OP
OP
Gromett
Feb 27, 2011
14,771
76,344
UK
Funster No
15,452
MH
Self Build
Exp
Since 2005
If I said I understood any of that I would be lying. In English please.šŸ™„
The linux kernel, the heart of the OS is written in a language called C. The original standard for this language uses tabs between components of a line instead of spaces.
Tabs are enforced in the Linux code base to ensure consistency.

A person decided to change one part of the code to uses spaces because the code testing tool he uses broke on that one line. So rather than fixing the tool he decided to change the linux code base and break the standard.

Torvalds then looked at it and could see why the code checker couldn't handle that particular tab, and spattered a bunch of them around the code base to break that tool completely. This will provoke the developers of that tool to fix their tool and make it better.

Hope that makes sense?

Here is an example;
1713426850122.png


Hopefully you can see the lines.
65 and 72 is indented by 1 tab.
67-71 by 2 tabs with 70 by 3.

This makes it more readable as the braces {} which separate segments of code are now easy to see. and you can see the functional blocks of text.

The spaces people want to replace the single tab indents with multiples of 2,4 or even 8 spaces instead of a single tab.
 
OP
OP
Gromett
Feb 27, 2011
14,771
76,344
UK
Funster No
15,452
MH
Self Build
Exp
Since 2005
PS: if anyone is wondering why there is no data validation before the delete($assistant_id) it is because the auth code and validation is done in the delete function.
Rather than repeating it in multiple places before calling the delete function I just call the delete function and do the validation once. :) (just in case anyone was wondering)

Subscribers  do not see these advertisements

 
Apr 9, 2018
8,693
44,981
Worcestershire
Funster No
53,271
MH
Bailey Adamo 75-4t
Exp
March 2018
I
PS: if anyone is wondering why there is no data validation before the delete($assistant_id) it is because the auth code and validation is done in the delete function.
Rather than repeating it in multiple places before calling the delete function I just call the delete function and do the validation once. :) (just in case anyone was wondering)
I did spot that but assumed you knew what you were doing so didnā€™t mention it šŸ¤£šŸ¤£šŸ¤£šŸ¤£
 
Jan 18, 2019
541
916
Cuesta Blanca, Murcia, Spain
Funster No
58,086
MH
Hymer Exis
Exp
Since 2010
PS: if anyone is wondering why there is no data validation before the delete($assistant_id) it is because the auth code and validation is done in the delete function.
Rather than repeating it in multiple places before calling the delete function I just call the delete function and do the validation once. :) (just in case anyone was wondering)
I might've noticed 25 years ago ...:rolleyes:
 

meanders

Funster - Life Member
LIFE MEMBER
Jun 28, 2008
2,638
8,576
Ipswich, Suffolk
Funster No
3,075
MH
C class
Exp
Since 2004
While this is a specific Linux issue, it still astounds me how many people align text in Word etc using multiple spaces rather than the tab key or the text alignment tool.

I was sent a poster a couple of weeks ago someone had prepared In Word because it wasn't printing properly on the originators printer.

The first line was about 20 spaces then "QUIZ NIGHT". So I deleted all the spaces then centred the text before looking on, giving up and firing up Publisher. I recreated the whole thing quicker than it would taken me in Word. Amazing what using the right tool for the job does. Sent it back as a PDF she couldn't destroy.

Edit to add. Other word processors and graphical poster prep apps are available.
 
OP
OP
Gromett
Feb 27, 2011
14,771
76,344
UK
Funster No
15,452
MH
Self Build
Exp
Since 2005
While this is a specific Linux issue
The Tab vs Spaces issue is across the board. Linux, Windows, Mac, Unix, mainframe you name it :)
There are a number of religious wars in the computer community I think this is the top one.
Tabs vs Spaces
Vi vs Emacs
Atari vs Amiga

Those are the three that spring to mind. I always have a laugh when one surfaces.

Subscribers  do not see these advertisements

 
Dec 30, 2015
1,446
1,288
Bury
Funster No
40,920
MH
Pilote G650L
Exp
Three years
Shouldn't there be a health warning on this thread? I feel like I just fried about 10 million brain cells. And I still can't think of a way this will improve my motorhoming experience.
 

meanders

Funster - Life Member
LIFE MEMBER
Jun 28, 2008
2,638
8,576
Ipswich, Suffolk
Funster No
3,075
MH
C class
Exp
Since 2004
I could add a few.

On board graphics card Vs separate card(s).
STP Vs UTP Cat grade cables.
In SQL Stored procedures Vs Functions
 
OP
OP
Gromett
Feb 27, 2011
14,771
76,344
UK
Funster No
15,452
MH
Self Build
Exp
Since 2005
Shouldn't there be a health warning on this thread? I feel like I just fried about 10 million brain cells. And I still can't think of a way this will improve my motorhoming experience.
It is in the computer section not the motorhome section :p :D
 

DuxDeluxe

LIFE MEMBER
Jul 10, 2008
14,664
72,951
Planet Zog
Funster No
3,243
MH
A woosh bang van
Exp
since 2008
Ī•ĪÆĪ½Ī±Ī¹ ĻŒĪ»Ī± ĪµĪ»Ī»Ī·Ī½Ī¹ĪŗĪ¬ Ī³Ī¹Ī± Ī¼Ī­Ī½Ī±
 

meanders

Funster - Life Member
LIFE MEMBER
Jun 28, 2008
2,638
8,576
Ipswich, Suffolk
Funster No
3,075
MH
C class
Exp
Since 2004
Ī•ĪÆĪ½Ī±Ī¹ ĻŒĪ»Ī± ĪµĪ»Ī»Ī·Ī½Ī¹ĪŗĪ¬ Ī³Ī¹Ī± Ī¼Ī­Ī½Ī±
Ī‘Ļ…Ļ„ĻŒ ĪµĪÆĪ½Ī±Ī¹ ĪŗĪ±Ī»ĻŒ. Ī§Ī±ĪÆĻĪæĪ¼Ī±Ī¹ Ļ€ĪæĻ… Ī±ĪŗĪæĪ»ĪæĻ…ĪøĪµĪÆĻ„Īµ Ļ„ĪæĪ½ ĪŗĻŽĪ“Ī¹ĪŗĪ±. :rofl:
 

Tombola

LIFE MEMBER
Nov 21, 2020
4,847
15,759
Merseyside
Funster No
78,053
MH
Rapido 8094DF
Exp
Since 2004
Ī‘Ļ…Ļ„ĻŒ ĪµĪÆĪ½Ī±Ī¹ ĪŗĪ±Ī»ĻŒ. Ī§Ī±ĪÆĻĪæĪ¼Ī±Ī¹ Ļ€ĪæĻ… Ī±ĪŗĪæĪ»ĪæĻ…ĪøĪµĪÆĻ„Īµ Ļ„ĪæĪ½ ĪŗĻŽĪ“Ī¹ĪŗĪ±. :rofl:
and theres me hoping you had typed
"its all greek to me"
 

meanders

Funster - Life Member
LIFE MEMBER
Jun 28, 2008
2,638
8,576
Ipswich, Suffolk
Funster No
3,075
MH
C class
Exp
Since 2004
and theres me hoping you had typed
"its all greek to me"
I don't usually mimic a previous poster who did write about it all being Greek! Just replied in kind, :LOL: .

Question, what to the Greeks say? It's all English to them?

Subscribers  do not see these advertisements

 

meanders

Funster - Life Member
LIFE MEMBER
Jun 28, 2008
2,638
8,576
Ipswich, Suffolk
Funster No
3,075
MH
C class
Exp
Since 2004
OS/370 Assembler didn't give a damn šŸ˜Š
Did they have a Tab key back then? I don't think NCR 82XX running IMOS dealt with tabs either. I I remember rightly when outputting to screen or printer you had to pass the start position on the line with the text to display. 1st tab recollection was IBM 3270.
 

Tombola

LIFE MEMBER
Nov 21, 2020
4,847
15,759
Merseyside
Funster No
78,053
MH
Rapido 8094DF
Exp
Since 2004
I don't usually mimic a previous poster who did write about it all being Greek! Just replied in kind, :LOL: .

Question, what to the Greeks say? It's all English to them?
Oh...ha I didn't realise..
I'm obviously blocked by whoever posted number 16
 
Mar 26, 2009
8,169
11,248
Yr Wyddgrug
Funster No
6,057
MH
Hymer B678DL
Exp
Since 2009
Did they have a Tab key back then? I don't think NCR 82XX running IMOS dealt with tabs either. I I remember rightly when outputting to screen or printer you had to pass the start position on the line with the text to display. 1st tab recollection was IBM 3270.
If I remember correctly 3270 was the 1st device (family) which allowed a 'tab to next address' buffer order.
 
May 8, 2011
3,869
48,636
God's county. Helmsley, North Yorkshire.
Funster No
16,317
MH
IH Tio 630 RL
Exp
Since April 1846 but have always camped.
Did they have a Tab key back then? I don't think NCR 82XX running IMOS dealt with tabs either. I I remember rightly when outputting to screen or printer you had to pass the start position on the line with the text to display. 1st tab recollection was IBM 3270.
I agree I can't remember the 82XX dealing with tabs either. Gosh, weren't those days fun!

Subscribers  do not see these advertisements

 

meanders

Funster - Life Member
LIFE MEMBER
Jun 28, 2008
2,638
8,576
Ipswich, Suffolk
Funster No
3,075
MH
C class
Exp
Since 2004
I agree I can't remember the 82XX dealing with tabs either. Gosh, weren't those days fun!
Yep.... Failed disk drive (pulley belt) repaired using a pair of ladies tights. We traded the rest of the day on them.

Yep .... Driving to Heathrow for a flight to Newcastle with a removable disc under my arm to get a store trading.

Yep ... Getting called at 8:30am Boxing Day because the Scottish store was open but no 'sale' items on the system, then spending all day and evening updating the English Stores after a simple JCL error on the Christmas Eve mainframe job meant the wrong prices were sent to the stores. NCR had said we would never get the 8200 to communicate with the IBM mainframe... Oh yes we did. Automatically every night. (y)

Yep.... managing to keep trading in one store when the A?C in the machine room failed and the temperature went sky high. Tray of ice from the fish counter with a fan on the floor outside the room blowing cold air in the wedged open door.

Great fun! But memorable. :(
 

meanders

Funster - Life Member
LIFE MEMBER
Jun 28, 2008
2,638
8,576
Ipswich, Suffolk
Funster No
3,075
MH
C class
Exp
Since 2004
You lot live in a parallel universe šŸ¤£
I have been known to run 4 universes of DMX on big shows, but they are all discrete though rather than parallel as you can only get 1024 channels per universe. Not sure I have ever lived in one though. The cables are very thin! :LOL::LOL:

Subscribers  do not see these advertisements

 

Join us or log in to post a reply.

To join in you must be a member of MotorhomeFun

Join MotorhomeFun

Join us, it quick and easy!

Log in

Already a member? Log in here.

Funsters who are viewing this thread

Back
Top