this post was submitted on 16 Nov 2024
619 points (98.9% liked)

Programmer Humor

24874 readers
969 users here now

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

founded 2 years ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] iAvicenna@lemmy.world 12 points 7 months ago (2 children)

why settle for \n when you can go for the stylish carriage return

[–] lseif@sopuli.xyz 7 points 7 months ago* (last edited 7 months ago) (1 children)

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.

load more comments (1 replies)
[–] Scrollone@feddit.it 6 points 7 months ago (1 children)

¿Porqué no los dos? A nice \r\n, Windows style.

[–] QuazarOmega@lemy.lol 6 points 7 months ago

Gotta band it Windows tho, it just feels right, I want to enjoy my fake typewriter

[–] OhStopYellingAtMe@lemmy.world 10 points 7 months ago

Always sanitize your Data inputs.

[–] rekabis@lemmy.ca 10 points 7 months ago (10 children)

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.

load more comments (10 replies)
[–] Andromxda@lemmy.dbzer0.com 10 points 7 months ago (4 children)
load more comments (4 replies)
[–] Valmond@lemmy.world 9 points 7 months ago (2 children)

I want the char 8 that makes a beep.

load more comments (2 replies)
[–] chaitae3@lemmy.world 8 points 7 months ago

Apparently no-one did it yet, so I'll name my child +++ATH0

[–] x4740N@lemm.ee 6 points 7 months ago

I'm not american and I'm glad I'm not but intended if someone could enter a bunch of zero width spaces

load more comments
view more: ‹ prev next ›