1137
(page 2) 50 comments
sorted by: hot top controversial new old
[-] iAvicenna@lemmy.world 22 points 1 week ago

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

[-] Scrollone@feddit.it 10 points 1 week ago

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

load more comments (1 replies)
[-] lseif@sopuli.xyz 10 points 1 week ago* (last edited 1 week ago)

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)
[-] vordalack@lemm.ee 21 points 1 week ago

It's time to log off and get a vasectomy

[-] Blackmist@feddit.uk 21 points 1 week ago

This sounds like the start of another sovcit "loophole"

[-] rekabis@lemmy.ca 20 points 1 week ago* (last edited 1 week ago)

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 it’s 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 (9 replies)
[-] EtherWhack@lemmy.world 17 points 1 week ago

What about an open bracket? (

[-] OhStopYellingAtMe@lemmy.world 16 points 1 week ago

Always sanitize your Data inputs.

Anyone remember when Chrome had that issue with validating nested URL-encoded characters? Anyone for John%%80%80 Doe?

[-] humanspiral@lemmy.ca 13 points 1 week ago

Am I allowed to include sql command words such as drop table in my child's name?

[-] owenfromcanada@lemmy.world 13 points 1 week ago

Simmer down, Bobby

load more comments (1 replies)
[-] x4740N@lemm.ee 11 points 1 week ago

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

[-] bandwidthcrisis@lemmy.world 9 points 1 week ago

Unix or dos format?

Anyway, you probably need to put a backslash before it to indicate line continuation.

But wouldn't it be better to use something more traditional, such as ?

[-] toynbee@lemmy.world 9 points 1 week ago

HTML is more traditional than \n?

load more comments (1 replies)
load more comments
view more: ‹ prev next ›
this post was submitted on 16 Nov 2024
1137 points (99.1% liked)

Programmer Humor

19623 readers
1 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 1 year ago
MODERATORS