this post was submitted on 05 Apr 2025
138 points (88.3% liked)

Programmer Humor

22245 readers
764 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
[–] Oinks@lemmy.blahaj.zone 21 points 1 day ago* (last edited 1 day 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.

[–] MTK@lemmy.world 3 points 12 hours ago (1 children)

Apology not accepted, fuck you for reminding me!

[–] jdeath@lemm.ee 2 points 11 hours ago

great reminder to avoid microsoft products as much as i can