+ 16

Here is the reason while CODING Why we should use TABs instead of WHITESPACE (Space Bar) !! 😇

In real Computer system 1 Tab = 8 Space Bars While CODING, we use lots of space bars to give spaces between words to achieve Modularity and Readability..but in software Language we are using more memory, decreasing the code performance. Instead if we use TABS, Our code will take take less memory and will execute faster !! please Share it !! please read the complete article on below link and become the best coder -- http://www.businessinsider.com/tabs-vs-spaces-from-silicon-valley-2016-5?IR=T

26th Jan 2017, 8:03 PM
Jenny Lance
Jenny Lance - avatar
15 Respostas
+ 20
I thought white space was ignored by software compilers?
26th Jan 2017, 8:25 PM
John van den Elzen
John van den Elzen - avatar
+ 20
Unless the programming language is interpreted, it will not run faster or use more memory. Compilers cut out whitespace and reduce to the minimum. Also most languages can be reduced to little or no whitespace (look at minified JavaScript files).
27th Jan 2017, 12:51 AM
Caidan Williams
Caidan Williams - avatar
+ 13
No coder or computer scientist worth his or her salt would *ever* advocate actual TAB characters since they render inconsistently across platforms and can therefore make the structure of code appear confusing and less readable. This is particularly important with languages like Python, in which the structure is syntactically significant, and not merely a matter of style. That said, most good text editors (Notepad++, Sublime) allow for custom settings that will convert a Tab keypress to any number of space characters. UPDATE 12-17: I've recently found out that there are languages like Elm in which TAB characters are actually syntax errors.
27th Jan 2017, 1:38 AM
Geoff Colman
Geoff Colman - avatar
+ 12
You are right! Also, the tab makes it easier to write, instead of pressing space bar many times
26th Jan 2017, 8:07 PM
Gami
Gami - avatar
+ 10
I personally like spaces more. They are more consistent. When I work in Notepad++, Eclipse and Netbeans on the same programm, everyone shows tabs with a different length. Especially when coding python etc. this can lead to unnecessary errors. So I configured these programs to write 4 spaces when I press tab. I think - like @John van den Elzen - that there is no real difference in execution speed. Compilers will cut out whitespace anyway.
26th Jan 2017, 10:32 PM
merkrafter
+ 8
Sorry, no. Spacebar maintains its monospace size, tab can equal any length and any number of spaces based on the RTF editor. Use spacebar, tab is bad practice.
27th Jan 2017, 5:11 AM
Louis Milotte
Louis Milotte - avatar
+ 7
Are you sure?
7th Feb 2017, 11:54 AM
Ahmed Shah Malik
Ahmed Shah Malik - avatar
+ 4
@toxicbits You just effectively conceded the point, however, as the overwhelming majority of style guides directly address this topic. Look at Google's various code style guides, for example: they invariably specify that Tab characters are not to be used for indentation.
2nd Feb 2017, 10:01 AM
Geoff Colman
Geoff Colman - avatar
+ 3
@toxicbits That's your thesis. Where are your arguments? :P
31st Jan 2017, 8:39 AM
merkrafter
+ 2
hey jenny you have learn all of this coding in solo learn and also created your codes im new in this codeing world so pls help me to know how to start and also intrested in your journey of coding how you became a programmer and created your own codes my question is that you have started coding in solo learn or you take some tutions and class on it
23rd Feb 2017, 5:23 AM
Shivam Raj
Shivam Raj - avatar
20th Sep 2017, 8:57 PM
Ardu
Ardu - avatar
+ 1
I never use tab honestly. I just let my compiler (Visual Studio) autoformat everything.
10th Feb 2017, 3:40 AM
SIMOMEGA
SIMOMEGA - avatar
+ 1
thanks
10th Jul 2018, 2:19 AM
Sohel Rana
Sohel Rana - avatar
0
People who take this "issue" seriously and condemn one style or the other like some sort of bigot just show that they don't know or care about coding and are just a cargo cult coder. merkrafter: If someone actually cared about the resulting product, one would wouldn't get dragged down into this religious, time-wasting debate about something like tabs vs. spaces. Does following an indentation style improve the quality or following the basic rules of software engineering? It's just unprofessional bike-shedding. The big open source projects I know have a coding style guide. If one tries to bring up the same tired old argument instead of just adhering to the rules of that specific project he's just holding everyone back.
31st Jan 2017, 2:06 AM
toxicbits
toxicbits - avatar
0
tell me the latest SQL database software name which one is the best for SQL table
2nd Feb 2017, 7:26 AM
ashu singh