The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
60 views

HTML excessive line returns after every tag style? [closed]

With HTML should you return after every tag, or is in some cases okay to open tag, content, close tag on one line? This coming from readability where having to scroll pages to see the 4 items in your ...
3
votes
4answers
473 views

Is lack of whitespace a sign of a cargo cult programmer? [closed]

Eric Lippert has written about cargo cult programming, and Steve McConnell has tackled the subject from a Software Engineering point of view. Eric provides a fairly succinct description: They ...
0
votes
1answer
41 views

How using tab affects commands like diff

In the page at http://pear.php.net/manual/en/standards.indenting.php, it is advised to use space instead of tab as it causes issue with diff, patches. Here is the excerpt from the page. Use an ...
7
votes
4answers
489 views

How strict should you be about indentation/white space? [closed]

Our development process is as follows code the task -> someone else QAs code and documentation -> task is merged into trunk. Recently a colleague is refusing to pass the code QA due to issues with ...
6
votes
3answers
317 views

When should you trim input?

I am intern learning tons about the industry outside of academia. One thing I thought about today was trimming input. On one side of the coin I don't want the user/implementer to constantly ...
16
votes
7answers
973 views

Should I write compact code or code with lots of spaces? [duplicate]

I have two friends that have completely different schools of thought on how to lay out their code. The first says that code should be well-indented and use lots of spaces and to name variables ...
1
vote
2answers
274 views

Python code style - blank lines in long list

I'm curious, is there a standard approach to dealing with long lists in the Python community, and in particular, is there any antipathy toward doing blank lines followed by comments to break up a ...
-3
votes
1answer
833 views

Why do some programmers prefer spaces over tabs? [duplicate]

Possible Duplicate: Why do some languages recommend using spaces rather than tabs? While reading over the style guides for PHP PSR-0 PSR-1 PSR-2 I noticed the rule Code MUST use 4 ...
3
votes
5answers
1k views

Is “watermarking” code with random trailing whitespace a good way to detect plagiarism?

Consider this: int f(int x) { return 2 * x * x; } and this int squareAndDouble(int y) { return 2*y*y; } If you found these in independent bodies of code, you ...
7
votes
6answers
1k views

Indentation: is there any evidence to show whether 2 or 4 spaces is more readable? [closed]

At the company I work for, we're trying to standardize our development practices, and we want to make the right call regarding indentation. Is there any empirical evidence (preferably research ...
2
votes
3answers
491 views

Convention for writing Python without newlines or whitespace?

Is there a convention for writing Python when deprived of newlines and whitespace? For example, stackexchange comments, Twitter, text messages...
3
votes
6answers
467 views

How do you limit whitespace differences for developers using different IDEs/environments?

I've used UltraEdit for years and never had a problem with sharing code with fellow developers whether they worked on Windows, Mac, Linux, Eclipse, Visual Studio -- what have you... But now I am in ...
42
votes
6answers
18k views

Why is trailing whitespace a big deal?

Trailing whitespace is enough of a problem for programmers that editors like Emacs have special functions that highlight it or get rid of it automatically, and many coding standards require you to ...
8
votes
10answers
4k views

Do Python programmers find the whitespace issue inconvenient? [closed]

Many programmers, upon first encountering Python, are immediately put off by the significance of whitespace. I've heard a variety of reasons that this is inconvenient, but I've never heard a complaint ...
6
votes
6answers
399 views

Vertical alignment: yea or nay?

For instance, non-vertically aligned: Name: Hamt Version: 0.1.0 Cabal-Version: >= 1.2 License: BSD3 Author: Jason Baker Or vertically aligned: Name: Hamt Version: 0.1.0 ...