Joined July 2012
·
Posted to
Update -all- .NET code files to have CRLF end of file markers
over 1 year
ago
Hi Ismaell :)
thanks for your comment - that single line might make it look a lot nicer. But, reducing a few lines to a single line doesn't always mean 'better' code. Secondly, to (poorly) quote Jamie Zawinski "Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems."
But yes, this can be seen as a trivial piece of code and Unix can shine when it comes to sed/awk/gawk etc.
I'm just not sure that I would say "PowerShell is really crappier" because I've decided to use a 2x for-eaches. I could also do something similar in Unix or on another CLI.
But you point is taken :) Ta!
Achievements
658 Karma
75,742 Total ProTip Views
Lemmings 100
Write something great enough to have at least 100 watchers of the project
Altruist
Increase developer well-being by sharing at least 20 open source projects
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked 20
Have an established project that's been forked at least 20 times
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Lab 3
Have at least three original repos where C# is the dominant language
Lab
Have at least one original repo where C# is the dominant language
Nice pickup! Fixed :) :blush: