devfuuu, (edited )

Imagine using a language that still uses semicolons.

Asudox,
@Asudox@lemmy.world avatar

I use Rust

Zerush,
@Zerush@lemmy.ml avatar

I still use it in Spanish, English and also in German, but certainly not very often.

merriam-webster.com/…/a-guide-to-using-semicolons

bigkahuna1986,

Klingon doesn’t have a semicolon, switch to that.

Zerush,
@Zerush@lemmy.ml avatar

But they programm in Malbolge

Hobbes_Dent,

What about the Oxford semicolon in formal languages?

Frozzie,
@Frozzie@lemmy.world avatar

Hah. Try it on my version controlled project!

Zerush, (edited )
@Zerush@lemmy.ml avatar

What? Remapping your keyboard? Well, there are worst jokes, I still remember that time when the first PCs appeared and you could try them in shopping centers. They quickly stopped doing this, because some went into the BIOS and disabled the keyboard or worse, the screen, Hail Satan. Good ol’ times 😏

Frozzie,
@Frozzie@lemmy.world avatar

No I mean the code is on a git repository so you see unsaved changes

InternetPerson,

When your keyboard is remapped, you commit those changes yourself.

dlok,

Wanted to use this to prank a colleague but SQL server accepts that as well lol

idunnololz,
@idunnololz@lemmy.world avatar

Hilt

TheHottub,
@TheHottub@lemmy.world avatar

Replace all

AwkwardTurtle,

8===D (;)

tfw_no_toiletpaper,

Maybe if you’re “coding” in notepad

Darken, (edited )
@Darken@reddthat.com avatar

deleted_by_author

  • Loading...
  • baatliwala,

    I mean, if they’re evaluating hand written code no sane teacher is going to go “Good God this isn’t a semi colon, it’s a Greek question mark!”

    Buddahriffic,

    And what of the insane ones?

    notthebees,

    I had a friend who was a compsci minor who did almost the entirety of said minor on a really old chromebook. They did everything on a basic text editor. You would be surprised

    Brickardo,

    Why, of all possible languages, would you suggest this for Javascript where semicolons are not mandatory

    ulkesh,
    @ulkesh@beehaw.org avatar

    Not only that, the interpreter will point directly to the line of code and possibly to the exact character that is the problem. Any programmer worth anything would find the issue or, worst case, retype the line of code and have the problem fixed rather quickly. “Illegal character” is a pretty easy error to diagnose.

    But…I still chuckled a little at the intent of the joke. I’m sure there are better pranks one could come up with, though.

    UnRelatedBurner,

    rule 24

    Zerush,
    @Zerush@lemmy.ml avatar

    Ask the author of this meme.

    radiofreeval,
    @radiofreeval@hexbear.net avatar

    Rust doesn’t let you do this. Crab stays winning.

    fubarx,

    MSVC supports unicode. In C or C++, you could try:

    ; ;

    Second one is the greek semicolon but the client I’m using may strip it out. I’m too lazy to try.

    Sailing7,

    I’m not sure but I think the second one looks just a tiny bit different, so it should have worked.

    PM_ME_VINTAGE_30S,

    Running ; anything yields error: macro names must be identifiers for both C and C++ in an online compiler. So I don’t think the compiler will let you redefine the semicolon.

    fubarx,

    Haha. Thanks for checking. Given the C pre-processor, I’m sure there’s a way to maliciously bork it if someone sets their mind to it.

    PM_ME_VINTAGE_30S, (edited )

    Well I just tried int void in C and C++ before a “hello world” program. C++ catches it because main() has to be an int, but C doesn’t care. I think it is because C just treats main() as an int by default; older books on C don’t even include the “int” part of “int main()” because it’s not strictly necessary.

    int void replaces all ints with type void, which is typically used to write functions with no return value.

    HenriVolney,

    u/foundsatan

    Passerby6497,

    Meanwhile in VS Code: hey, I see this Unicode symbol that’s confused for this expected symbol, would you like to replace it?

    moshtradamus666,

    That’s too evil. At my work people like to put a tape under someone’s mouse and it can be pretty funny.

    Zerush, (edited )
    @Zerush@lemmy.ml avatar

    Some hairs under the lens, it gives some funny erratic moves of the pointer.

    LittleBorat2,

    The funny erratic movement can keep your work pc from locking up while you do nothing. It’s win win.

    TrickDacy,

    giv’s

    Wtf

    Albbi,

    It’s ok, someone either put a hair under his ‘e’ key, or remapped it so that it randomly spits out ’ instead.

    Lightfire228,

    I just had this happen to me

    I pulled a literal ball of pet fur out of the optical sensor

    Feyr,

    If you get a post-it just right halfway over the lens, the mouse will only move in one direction!

    reddit_sux,

    Would be cooler if u do it in C

    NegativeLookBehind,
    @NegativeLookBehind@lemmy.world avatar

    U+037E

    whotookkarl,
    @whotookkarl@lemmy.world avatar

    BOM U+FEFF is another fun one, most editors won’t show it but it can cause errors like when I found one in a SQL script that was combined from existing utf-8 files together with cat. You’ll see it in a hex editor or in notepad I think it just made the rest of the line italic.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • memes@lemmy.ml
  • ethstaker
  • DreamBathrooms
  • cubers
  • mdbf
  • everett
  • magazineikmin
  • Durango
  • Youngstown
  • rosin
  • slotface
  • modclub
  • kavyap
  • GTA5RPClips
  • ngwrru68w68
  • JUstTest
  • thenastyranch
  • cisconetworking
  • khanakhh
  • osvaldo12
  • InstantRegret
  • Leos
  • tester
  • tacticalgear
  • normalnudes
  • anitta
  • megavids
  • provamag3
  • lostlight
  • All magazines