Back in May, writer Jun Wu told in her blog how Perl excels at text manipulation. She often uses it to tidy data sets, a necessity as data is often collected with variations and cleaning it up before use is a necessity. She goes through many one-liners which help make that easy.
Having old reliables is my key to success. Ever since I learned Perl during the dot com bubble, I knew that I was forever beholden to its powers to transform.
You heard me. Freedom is the word here with Perl.
When I'm coding freely at home on my fun data science project, I rely on it to clean up my data.
In the real world, data is often collected with loads of variations. Unless you are using someone's "clean" dataset, you better learn to clean that data real fast.
(Score: 1, Informative) by Anonymous Coward on Friday September 20 2019, @09:19AM
Tabs are for indentation. Space is for *formatting*. So, if you have 1 indent, you have 1 tab. If you want more because it's line continuation or something, then you add spaces. That's why it's nice to have editors with visible whitespace. QtCreator is a nice editor for that. VS Code is nice for that too.
Why? If you think, you wouldn't bother to ask. But since you didn't ... this allows one to adjust *preferred* whitespace to every developer simply by changing the tab width setting in any sensible editor. If some dev wants 5 spaces for tab, that's fine. If they want 2, that's fine. IF they like 8 or whatever, it all works. And it works without changing any line of code and fucking up history.