4.1 Tab VS Space 4.1.1 Your Choice [3 pts] From the little experience you have,
ID: 3859633 • Letter: 4
Question
4.1 Tab VS Space
4.1.1 Your Choice [3 pts]
From the little experience you have, which between tab or space are you planning to use for the next little while, and why? If that wasn’t obvious, there are no right or wrong answers here, as long as you argue logically.
4.1.2 Google’s Choice [1 pts]
Does Google recommend tab or space in it’s guidelines for indentation? Look at Section 2.3.1 Whitespace characters and 4.2 Block indentation of their guidelines.
4.1.3 Microsoft’s Choice [1 pts]
What about Microsoft? See the Layout Conventions section of their guidelines.
4.2 Naming
4.2.1 Your Choice [3 pts]
The next time you code and are faced with naming a variable, how will you go about it and why? There are no right or wrong answers here, as long as you argue logically.
4.2.2 Google’s Choice [1 pts]
What does Google say to its employees? See Section 5.2.7 Local variable names their guidelines.
4.2.3 Oracle’s Choice [1 pts] What does Oracle say about naming variable? See codeconventions-135099.html (Note: don’t copy paste. Tell me if it’s camel case or underscore or something else).
Explanation / Answer
Hi
Below is the answer-
4.1.1 I would prefer to use tab rather than space due to below reasons-
4.1.2 Google prefers to use tab instead of space.
4.1.3 Microsoft prefers to go with tabs like google
4.2.1
I find the underscore version much easier to read. My brain can ignore the underscores much more easily than it can detect the lowercase/uppercase boundaries in camel case, especially where the boundaries are between glyphs that look similar to other glyphs of the opposite case, or numerals
4.2.2 Google advises CamelCase for its employees
4.2.3 Oracle recommends lowercase for variable naming.
I find the underscore version much easier to read. My brain can ignore the underscores much more easily than it can detect the lowercase/uppercase boundaries in camel case, especially where the boundaries are between glyphs that look similar to other glyphs of the opposite case, or numerals
4.2.2 Google advises CamelCase for its employees
4.2.3 Oracle recommends lowercase for variable naming.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.