|
|
|
![]() |
|
|||||||
|
||||||||
| View Poll Results: Who uses white space? | |||
| Yes, i make it so people can read my code |
|
39 | 69.64% |
| Yes, i make it so i think that others can resd it |
|
7 | 12.50% |
| No, only I can read my code |
|
3 | 5.36% |
| I think that only i can read my code |
|
3 | 5.36% |
| I don't understand the question. |
|
4 | 7.14% |
| Voters: 56. You may not vote on this poll | |||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
"White space"
Who uses white space???
(if you don't know what that is, it is like making your programs easy to read) |
|
#2
|
||||
|
||||
|
Re: "White space"
Why wouldn't you use white space?
|
|
#3
|
||||||
|
||||||
|
Re: "White space"
I use it so I can read my code.
|
|
#4
|
|||||
|
|||||
|
Re: "White space"
You would be surprised, some people just don't like to organize their code after its written.
|
|
#5
|
||||
|
||||
|
Re: "White space"
Quote:
Generally, the argument is for how much whitespace is enough, and usually boils down to personal opinion. Personally, I like white space. |
|
#6
|
|||||
|
|||||
|
Re: "White space"
Quote:
|
|
#7
|
|||
|
|||
|
Re: "White space"
Did anyone else think of the programming language whitespace?
After writing a bit in Python, I more fully appreciate proper formatting for code. Programming is codified communication, with the machine and with the human. I don't over kill on it in other languages, but I do try to maintain some semblance of order, even if I'm just writing a short script to check my calculations. |
|
#8
|
||||
|
||||
|
Re: "White space"
I like to use white space, especially since I'm not the only one working or reading the code. Also my dad is a software engineer, and he has shared with me when he looks at code that a group is working on and they don't comment or orginize their code. Especially when others have to understand and read the code.
|
|
#9
|
|||
|
|||
|
Re: "White space"
There are people that write their programs on a single line?
|
|
#10
|
||||
|
||||
|
Re: "White space"
It adds too much weight to the robot. Each space = ~0.0001327 oz. Tabs are either 4 or 8 times that depending on your editor settings. Count up all the white space in your code sometime and calculate how much weight it adds.
![]() |
|
#11
|
||||
|
||||
|
Re: "White space"
for the same reason we usually don't use comments.
|
|
#12
|
||||
|
||||
|
Re: "White space"
I love whitespace! If the OP is trying to argue against it, he's in for a surprise if he ever gets a programming job. Even if you can read non-whitespaced code, nobody else can.
Some kids I've mentored in the past didn't use tabs at all, and it was painful to look at. It was impossible to tell, at a glance, when functions started, the scope of loops, etc. It was all either memorization or bracket-counting. |
|
#13
|
|||||
|
|||||
|
Re: "White space"
This year I found the majority of compilation errors that I helped my students fix were due to mismatched braces (usually with inconsistent indention). Whitespace is good, especially if you want quick help.
Helpful Windriver tip: Select your code and press Ctrl-I to auto indent your code |
|
#14
|
|||
|
|||
|
Re: "White space"
I sincerely hope you're joking. Extra code doesn't add any weight.
|
|
#15
|
|||||
|
|||||
|
Re: "White space"
Right. It's the other way around. The erased state of flash memory is a logic one, so adding code actually removes bits.
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Championship Event - Where the "Random" Match Sorting Really "Shines" | Travis Hoffman | Championship Event | 57 | 19-04-2007 08:06 |
| New NEMO White Papers! "Creating a Killer Packet" and "25 Ways to Sponsor" | Jessica Boucher | Team Organization | 0 | 10-08-2005 10:55 |
| Team 1126 "Crazy Wheels" white paper | Alex Cormier | Technical Discussion | 1 | 25-10-2004 15:54 |
| "Thunderbirds" Vs. "Team America" Which one will rule the box office? | Elgin Clock | Chit-Chat | 3 | 07-09-2004 19:53 |
| Transcript: "The Space Shuttle Columbia Accident: What's Next?" | DanL | General Forum | 2 | 03-03-2003 21:35 |