badgoal.blogg.se

Winmerge ignore whitespace
Winmerge ignore whitespace








winmerge ignore whitespace

We live in a world where Git is FTP for code, we're up a level, above TCP/IP where Endianness is hidden, but still in text where CR LF's aren't. Macs and PCs are sharing text more than ever. There's no carriage to return, but there are lines to advance so it's a logical savings. But Apple uses just uses a line feed (LF) character. The text files we have to day on Windows still have a CR LF (0D 0A) after every line. Then the bastards at IBM who moved to ASCII from EBCDIC and needed a carriage return when punch-cards fell out of favor. Or the folks at DEC, or perhraps Gary Kidall and CP/M for using DEC as a convention. Perhaps we blame Émile Baudot in 1870 and Donald Murray in 1899 for adding control characters to instruct a typewriter carriage to return to the home position plus a line feed to advance the paper on the roller.

winmerge ignore whitespace

Who knows what really changed here though? Can't tell since this diff tool thinks every line changed. I had to scroll 672 lines before I saw the +green where the added lines were added. That Wall of Pink I mentioned? It looks like this. It's years later, but CR/LF issues plague us weekly. It's there but the abstraction is not very leaky.

winmerge ignore whitespace

There was a time when we had to really think about the measurable performance hit involved in using TCP/IP on a little-endian processor. Folks working on lower-level stuff do think about this sometimes, admittedly, but the majority of folks don't sweat endianness day to day. This was the last time I thought about endianness in my career.

winmerge ignore whitespace

I wrote shareware code generator 16 years ago that generated a byte array on an Intel PC that was later entered into a PalmPilot running a Motorola 68328. "A big-endian machine stores the most significant byte first-at the lowest byte address-while a little-endian machine stores the least significant byte first." - Endiannessĭid you know for a long time Apple computers were big endian and Intel computers were little endian? The Java VM is big endian. But what's the problem? Well, it's kind of like endianness, except we're still talking about it in 2013. This is a pull request that is possibly useful, possibly awesome, but I'll never know because 672 lines (GitHub tells me) changed because they used CRs and I used LFs or I used CRLF and they used LF, or I used.well, you get the idea. Not so good, thanks for trying, but perhaps another time.However, it seems there are three kinds of pull requests that I get. It's such a lovely gift when someone wants to contribute their code to my code.










Winmerge ignore whitespace