[Transcriber's note: There is a new line at the end of the following code, marked as an error by the IDE; as Reddit does not display an empty line at the end of a code block, I have instead marked it with a note. The code reads as follows:]
I feel like that shouldn't work in a code block, though. It should display the characters , not an empty line. The point of a code block is surely to display all the characters you type, free of any formatting? It defeat the purpose of you still format some things.
For the record, I'm not saying Reddit's markdown isn't funky - it's ridiculously silly and inconsistent - I just think in that instance it's right.
EVERY DAMN CONSTRUCT. And her functions weren't that long, and it was in a curly brace language where the formatter would ensure that everything lined up right.
180
u/mirodk45 Dec 10 '21
// closing switch bracket
// last bracket
// EOF // last comment
76
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 10 '21 edited Dec 11 '21
Image Transcription: Code
[Transcriber's note: There is a new line at the end of the following code, marked as an error by the IDE; as Reddit does not display an empty line at the end of a code block, I have instead marked it with a note. The code reads as follows:]
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
58
u/[deleted] Dec 10 '21
probably the only comment in the whole file lol
38
u/numbermess Dec 11 '21
17
u/99999999977prime Dec 10 '21
It’s not wrong.
10
u/deftware Dec 11 '21
6
u/NoahWright87 Dec 11 '21
I can't believe nobody mentioned the red squiggly. Looks like they're a curly brace short of the EOF 🤣
1
u/concatenated_string Dec 11 '21
Is this on a Zephyr project?
3
u/4bidden1337 Dec 11 '21
Could see this as a legitimate thing in a generated code tbh
5
u/campbellm Dec 11 '21
I had a colleague that would
EVERY DAMN CONSTRUCT. And her functions weren't that long, and it was in a curly brace language where the formatter would ensure that everything lined up right.
She was kind of a twat, besides that.
4
u/bnl1 Dec 11 '21
This isn't really bad code though
1
u/TheRealSlimCoder Dec 11 '21
https://media2.giphy.com/media/n8CfTDtY3G7HZUB0EQ/giphy.gif
1
u/uhhuhhuhu Dec 11 '21
Common and good practice in php when you omit the closing php tag ?> to prevent that trailing CRLF is sent to the client before the headers.
1
u/God_Told_Me_To_Do_It Dec 11 '21
I so often see "// filename.js" as the first line of a file and always feel like... Why?