It's not that character, though. It's a ligature (the IDE displaying multiple characters as one). You can tell from the fact that it spans two character lengths still, and that the not equals character wouldn't be valid syntax.
Even if it were, I do get things wrong in transcriptions sometimes. It's not a shocking thing.
A fictional disease designed to sound similar to "lick my balls" (used to trick a person into asking the meaning). quotations ▼ "Hey, have you heard of ligma?" "What's ligma?" "Ligma balls!"
in ruby i would do !!twin and that’s the whole function, but the readability of his function is fine, it isn’t slower, it’s only an extra line, there are really no sins here
I guess instead of using if(HalfEdge.hasTwin()), the user should just do if(HalfEdge.twin). I think hasTwin() is more readable though, and the compiler would just optimise it out
HalfEdge.twin could and most likely would be misunderstood as accessing the ‘twin’ property of HalfEdge, rather than checking whether HalfEdge has a twin or not
Definitely an option but if you know there's more code to go in one or both of the branches it's not uncommon to leave a TODO comment and assert(false) or whatever works in your language. Writing code in different style for debugging vs release isn't "bad".
141
u/jd31068 Feb 19 '23
Every programmer at one time or another:
Scrolls code months later ... "WTF was I smoking when I wrote this!?"
56
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Feb 19 '23
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
119
u/grrangry Feb 19 '23
Not getting enough sleep causes ligatures. Gotcha.
32
u/[deleted] Feb 19 '23
wars wrong here really?
9
u/scooptyy Feb 19 '23
What’s wrong here?
6
u/[deleted] Feb 19 '23
For a second there I thought I forgot to put on my glasses.
17
u/ilikedankmemes3 Feb 19 '23
How did you type !=?!? I can’t even figure out what Id need to do for that on a regular keyboard 😭
2
u/Gh0st96 Feb 19 '23
Where are the pixels Lebowski? Huh? Seriously, though did you take this screenshot with a pinhole camera?
1
u/RIP_lurking Feb 19 '23
My DCEL also turned out awful, lol
1
u/ssjskipp Feb 19 '23
The real shame is not using a smart pointer I guess
1
u/[deleted] Feb 20 '23
I, too, forget how to take screenshots when I've not had enough sleep.
1
u/[deleted] Mar 09 '23
I find this too clear TBH