this post was submitted on 05 Apr 2025
142 points (87.8% liked)

Programmer Humor

22611 readers
1156 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
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 23 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I am very sorry to remind everyone about the existence of Visual Basic, but it has:

  • VbCrLf
  • VbNewLine
  • ControlChars.CrLf
  • ControlChars.NewLine
  • Environment.NewLine
  • Chr(13) & Chr(10)

And I know what you're asking: Yes, of course all of them have subtly different behavior, and some of them only work in VB.NET and not in classic VB or VBA.

The only thing you can rely on is that "\r\n" doesn't work.

[–] [email protected] 4 points 1 week ago (1 children)

Apology not accepted, fuck you for reminding me!

[–] [email protected] 3 points 1 week ago

great reminder to avoid microsoft products as much as i can