Skip to main content

Questions tagged [whitespace]

3 votes
2 answers
749 views

I recently fell in love with Factor , a programming language in the Forth family that enforces use of whitespace around identifiers, this allows creation of "functions" with extremely terse ...
Blin's user avatar
  • 139
4 votes
1 answer
361 views

I'm reading the book The Secret Life of Programs by Jonathan E. Steinhart. In it, he mentions in passing: many consider the handling of whitespace in Ruby to be a replay of of a mistake in the ...
tsvallender's user avatar
4 votes
3 answers
6k views

A long time ago when starting learning programming I remember a teacher saying that compiler do not care about whitespace and they are useful to make code readable for human beings. It made perfect ...
Alexei's user avatar
  • 452
3 votes
1 answer
4k views

As I have recently started using ES6 in production, I was going through an ES6 style guide (having more than 350 stars on GitHub). This guide mentions at least three times that "Tabs are evil. Don't ...
mg007's user avatar
  • 155
2 votes
4 answers
562 views

We have an application that consists binary files (containing a mix of text and numeric information) and programs written in various languages that create, modify and read these binary files. Because ...
Jay Elston's user avatar
  • 2,751
0 votes
2 answers
331 views

Is it poor practice to not use spaces between parameters in a scripting language (or any for that matter)? With spaces: def does_a_thing(x, y): ... does_a_thing(5, 9) Without spaces: def ...
dunck's user avatar
  • 167
-2 votes
2 answers
268 views

Imagine that you first write a compiler for your language where you necessarily report errors to the user. Compiler also collects location information for backend tools. They must know where the ...
Valentin Tihomirov's user avatar
5 votes
4 answers
2k views

We have a large Java project (1m+ SLOC) with mixed whitespace - some files have tabs and some have spaces. It's tricky to make my editor work with whichever file I happen to be editing. We are ...
wrgrs's user avatar
  • 364
9 votes
11 answers
26k views

I'm often told by my friends and colleagues that I use way to much whitespace. I guess I do use a little too much whitespace. I often add a line break almost after every line and large blocks of ...
Milo's user avatar
  • 235
5 votes
4 answers
1k views

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 ...
user avatar
0 votes
1 answer
88 views

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 ...
user avatar
9 votes
4 answers
2k views

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 ...
dwjohnston's user avatar
  • 2,769
12 votes
3 answers
9k views

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 ...
TacticalMin's user avatar
15 votes
7 answers
7k views

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 ...
Peter Olson's user avatar
  • 1,062
1 vote
2 answers
598 views

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 ...
Chris Krycho's user avatar

15 30 50 per page