- Feature Articles
-
CodeSOD
- Most Recent Articles
- Extremely One Line
- An Odd Sort
- I Exist
- Asynchronous Directories
- Heating Up
- The Big Family
- Lock 'Em Dead
- Back to the Lab
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Edit Admin
I'm not saying it's the case here, but that's how some of my early HTML looked like when you opened it with Windows notepad after years of editing it with multiple programs in different operating systems. I somehow managed to get Unix, Mac and Windows end of line characters, plus some others that technically don't exist.
Admin
What’s uplevel?
Not much, but don’t call me level.
Edit Admin
I can remember twice where I was "reprimanded" (not really like that) for formatting the code because it showed up as changes in source control.
Edit Admin
When I do that, I always indicate it in the comment:
Admin
I came here to make the same joke. I don't know what that says about either of us.
Admin
This may improve test coverage when measure by line
Edit Admin
It's annoying when someone makes a small change but also reformats the code, so it's hard to see the substantive change through all the formatting noise. Many diff programs can be told to ignore whitespace changes, but often this only means within and between lines, it doesn't ignore splitting or joining lines.
Similarly, yesterday I was reviewing a change to a crontab. The programmer had replaced /home/username with ~username in all the paths, so there were changes on every line. There's no built-in way I know of to filter all those out. I could probably extract both versions, then canonicalized the paths in both versions and compared so I could see all the other changes.