why settle for \n when you can go for the stylish carriage return
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
so John\r Doe
? depending on the software, when it gets printed, the carriage return will move the cursor to the start of the line without moving a line down, becoming \x20Doe
.
¿Porqué no los dos? A nice \r\n, Windows style.
Gotta band it Windows tho, it just feels right, I want to enjoy my fake typewriter
Always sanitize your Data inputs.
A line break is a non-printable character. So it would only work in the scope of electronic storage. The minute it hits other media, the line break character is subject to how that media handles its presence, and then it is lost permanently from that step forward.
Plus, many input forms make use of validation that will just trim anything that isn’t a character or number, removing the line break character.
Apparently no-one did it yet, so I'll name my child +++ATH0
I'm not american and I'm glad I'm not but intended if someone could enter a bunch of zero width spaces