Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@hjk101 ah, indeed, EOL is crucial for version control and such.
Haha, greek question mark (";") is a mega troll -
hjk10157315y@vintprox yes although a space or a tab after the ; is also invisible but still change. Often happens when the committers editor is stripping redundant whitespace. @mojo2012 is correct on all accounts but the trolling.
-
Check :
* whitespaces
* tabs vs spaces
* line endings
* other line endings
* encoding
At our place it's the first order of day to get every dev with the same setup for these things, if not it can be unmanagble. fast -
hjk10157315y@NoToJavaScript
We have some ground rules but the setup does not have to be the exact same.
* Utf-8
* UNIX line ending
* Strip whitespace
* Indent the way the language or framework dictates.
Unfortunately the last one is messing a lot with spaces. Golang proves that tabs are superior. Especially the 2 space indent can be a bit hard to follow at times.
Strip whitespace should not strip markdown files ideally. Double space is part of the syntax. We don't use it ourselves as it is asking for trouble.
github
joke/meme
github code js nodejs