Belowland
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@ElCanut@jlai.lu to Programmer Humor@programming.dev • 8 months ago

Asking the real questions

jlai.lu

message-square
264
fedilink
1.16K

Asking the real questions

jlai.lu

@ElCanut@jlai.lu to Programmer Humor@programming.dev • 8 months ago
message-square
264
fedilink
alert-triangle
You must log in or register to comment.
  • @iAvicenna@lemmy.world
    link
    fedilink
    23•8 months ago

    why settle for \n when you can go for the stylish carriage return

    • @lseif@sopuli.xyz
      link
      fedilink
      10•
      edit-2
      7 months ago

      so John\r Doe ? depending on the software, when it gets printed, the carriage return will move the cursor to the start of the line without moving a line down, becoming \x20Doe.

      • lad
        link
        fedilink
        English
        4•8 months ago

        This is the ideal rendition, I would say. On a related note, I just love it when there are backspaces in my filenames

    • @Scrollone@feddit.it
      link
      fedilink
      10•8 months ago

      ¿Porqué no los dos? A nice \r\n, Windows style.

      • @QuazarOmega@lemy.lol
        link
        fedilink
        8•8 months ago

        Gotta band it Windows tho, it just feels right, I want to enjoy my fake typewriter

  • Andromxda 🇺🇦🇵🇸🇹🇼
    link
    fedilink
    English
    34•8 months ago

    Easy, John\nDoe

    • Nomecks
      link
      fedilink
      -7•
      edit-2
      8 months ago

      Probably have to escape it so it will work properly: John\/nDoe

      • Andromxda 🇺🇦🇵🇸🇹🇼
        link
        fedilink
        English
        32•
        edit-2
        8 months ago

        \n already is an escape sequence, consisting of \, the escape character, and n, the code that is responsible for the new line. Together they form an escape sequence.

        • Nomecks
          link
          fedilink
          1•
          edit-2
          8 months ago

          Sure, but if you don’t escape the \ then you likely won’t even be able to get the name into the first system. You need the name to contain \n so that it gets passed correctly to other systems, otherwise his name may wind up just being “John” .

        • @Bldck@beehaw.org
          link
          fedilink
          English
          5•8 months ago

          This person unicodes

  • @frayedpickles@lemmy.cafe
    link
    fedilink
    English
    53•8 months ago

    Can I kill someone who wants to do this? How do I legally get away with it?

    • @LavenderDay3544@lemmy.world
      link
      fedilink
      30•8 months ago

      Plead permanent sanity. If I was the judge I would let you go.

      • @mojofrododojo@lemmy.world
        link
        fedilink
        English
        12•8 months ago

        Plead permanent sanity.

        temporary sanity is the best I can manage these days.

      • @frayedpickles@lemmy.cafe
        link
        fedilink
        English
        3•8 months ago

        Thanks bro

        • @LavenderDay3544@lemmy.world
          link
          fedilink
          5•8 months ago

          I gotchu

      • @Rednax@lemmy.world
        link
        fedilink
        1•8 months ago

        Of myself of the now dead purpetrator?

  • @x4740N@lemm.ee
    link
    fedilink
    11•8 months ago

    I’m not american and I’m glad I’m not but intended if someone could enter a bunch of zero width spaces

  • @ano_ba_to@sopuli.xyz
    link
    fedilink
    25•
    edit-2
    8 months ago

    It’s impossible to represent that on paper. It could be misrepresented as a specific number of spaces. Depending on the position on the paper, it may also be hard to tell if the carriage return comes with the line feed. Unless you want the document to be in ASCII or EBCDIC hex, it’s like writing an ambiguous math problem where the answer is different depending on how you were taught about the order of operations. Don’t do this to your kid, Abcde.

  • @Atomic@sh.itjust.works
    link
    fedilink
    51•8 months ago

    Not legal in Sweden. Our “IRS” must also accept the name and deem it legal.

    I for one like this. As it stops some very stupid people to name their children some very stupid names. Such as “Adolf Hitler”.

    And yes. Someone did try to name their child this and they were appropriately stoped from doing it.

    • @Chekhovs_Gun@lemmy.world
      link
      fedilink
      7•8 months ago

      Should have went with Adolf Olivernipples

    • @lseif@sopuli.xyz
      link
      fedilink
      5•8 months ago

      ugh literally 1984

    • Lemminary
      link
      fedilink
      9•8 months ago

      If only Sweden invaded the rest of the world instead of Russia… *le sigh*

      • @LavenderDay3544@lemmy.world
        link
        fedilink
        5•8 months ago

        I accept our new Scandinavian overlords. But I would rather have it be Finland.

        • @Scrollone@feddit.it
          link
          fedilink
          5•8 months ago

          Akchtually, Finland is not a Scandinavian country properly.

          • @MutilationWave@lemmy.world
            link
            fedilink
            2•8 months ago

            Fuck that, we think it is in the US. And we’re the only people who matter on the internet.

      • @Facebones@reddthat.com
        link
        fedilink
        9•8 months ago

        Eh, if they went imperial they would be subject to imperial needs leading to all the usual imperial problems.

        • @Bluetreefrog@lemmy.world
          link
          fedilink
          English
          5•8 months ago

          What, inconsistent units? /s

        • @Atomic@sh.itjust.works
          link
          fedilink
          4•
          edit-2
          8 months ago

          Funny enough. Sweden already went through that problem. We call it “Age of Greatness”. (Stormaktstiden)

          Basically. Sweden got too big too fast, couldn’t maintain an army large enough to secure everything. If i remember correctly, we couldn’t produce enough food, and we lost a bunch of territory.

  • TGhost [She/Her]
    link
    fedilink
    English
    25•
    edit-2
    8 months ago

    NaN,
    Not a Number, and now Not a Name

    • luluu
      link
      fedilink
      7•8 months ago

      NaN: „Hey Nanna, can you call the nanny?“

    • @mindbleach@sh.itjust.works
      link
      fedilink
      1•7 months ago

      Arguably any name is not a number.

      Except for Jennifer 8 Lee.

  • socsa
    link
    fedilink
    English
    51•8 months ago

    If elected president my first order of business will be to make all birth certificates fully unicode compatible.

    • @JohnyRocket@discuss.tchncs.de
      link
      fedilink
      9•8 months ago

      (ノ-_-)ノ~┻━┻ Miller

    • @bandwidthcrisis@lemmy.world
      link
      fedilink
      4•8 months ago

      I govenment site I visited recenly made a point of how it accepts emojis in passwords!

    • agilob
      link
      fedilink
      English
      21•8 months ago

      How is your son X Æ A-12?

      • Andromxda 🇺🇦🇵🇸🇹🇼
        link
        fedilink
        English
        5•8 months ago

        “It sounds like a password”

      • Phoenixz
        link
        fedilink
        10•8 months ago

        Screw everything about Elon musk

    • Aeri
      link
      fedilink
      5•8 months ago

      Howdy friend, I’m ▒⟪♶⳽Ⰶ⮫☲Ⰱ∓✑ⲍ␝ⅼⓑ⊯⛝≋ⱚⵯ⿳➡⸷⋘⎋⛏⍫⣺⨼⛜⧄ⅈ⎥⦶⋣⩥⮯⨏⼧⁹⟤.

      • @clutchtwopointzero@lemmy.world
        link
        fedilink
        3•8 months ago

        Oh, poor thing. It must be terrible to be one of insufferable Elon Musk’s progeny

    • @takeheart@lemmy.world
      link
      fedilink
      8•8 months ago

      Y̴̥͉͕͌̀ǫ̴̗̅̕u̵̱̾̋͐̚ ̷̡͕͈͛̇h̴̳̱̘̆ä̶̼́̕ṽ̷̬͕è̷͓̰̔̌ ̸̪͋m̷͍͎͙̂́̔ͅy̷̰̘̎́̉ͅ ̷̳͒v̷̭̕o̷̢͚̟͇͒̃͐̕t̴̪̙͗̐͆́ë̶̦͗ ̵̗͌̅p̶̰̫͛̑r̷̨͛̏̈́͝e̷͇͍̋̚͜s̸̳͙̒͘î̶̞̍̍̋͜ͅd̴̰̭͚̞͗ě̶̯̖n̶̩̿̕t̶͎͉̂ ̵̦͂̍̀Z̵̧̲̦̹̾͋a̴̒̑ͅl̷͇̘̝̬͒̊͝ǵ̴̹̣͖’̷͂͜o̴̢͔̱̔ò̷̧͛!̷̦̎͑͆͘ ̵̺̼̜̃̑

  • Klnsfw 🏳️‍🌈
    link
    fedilink
    52•8 months ago

    I’d rather include a bell character ‘\a’

    • @xmunk@sh.itjust.works
      link
      fedilink
      28•8 months ago

      And that’s why you’re not safe for work.

    • lime!
      link
      fedilink
      English
      7•8 months ago

      Bing Crosby

  • @Steamymoomilk@sh.itjust.works
    link
    fedilink
    English
    2•8 months ago

    John doe is invaild syntax.

    It just be

    (John \doe);

  • @SaharaMaleikuhm@feddit.org
    link
    fedilink
    65•
    edit-2
    8 months ago

    No, cause “John\nDoe” messes up my regex. Sorry, out of the question. I’m not good with regex.

    • @lseif@sopuli.xyz
      link
      fedilink
      26•8 months ago

      no one is “good” with regex.

      • @BluesF@lemmy.world
        link
        fedilink
        17•8 months ago

        Then who’s coming up with all the bits that I copy/paste off the internet? The regex dragon?

        • @Whelks_chance@lemmy.world
          link
          fedilink
          9•8 months ago

          From what I’ve seen, it’s Cthulhu.

        • @lseif@sopuli.xyz
          link
          fedilink
          4•7 months ago

          they likely aren’t good regex’s ;P … anything with more than, say, 6 operators is probably missing an edge case or will be outdated in a year (and then it’s impossible to determine its original intention)

        • @nucleative@lemmy.world
          link
          fedilink
          English
          7•8 months ago

          There was only one, we’re all still copying from him or her.

  • @ofak@lemmy.world
    link
    fedilink
    3•7 months ago

    John

    Doe, related to Derrick Nippl-e perhaps? (Fry and Laurie)

  • @rambling_lunatic@sh.itjust.works
    link
    fedilink
    59•8 months ago

    Sibling of Bobby Drop Tables

    • @funkyfarmington@lemmy.world
      link
      fedilink
      15•8 months ago

      Y’all need to learn how to sanitize your inputs!

  • @Busyvar@jlai.lu
    link
    fedilink
    37•8 months ago

    Frontend devs hates this guy.

    • @ArtVandelay@lemmy.world
      link
      fedilink
      English
      5•7 months ago

      Still better than Jennifer Null I guess

  • @chaitae3@lemmy.world
    link
    fedilink
    9•7 months ago

    Apparently no-one did it yet, so I’ll name my child +++ATH0

Programmer Humor@programming.dev

!programmer_humor@programming.dev
Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
  • 56 users / day
  • 280 users / week
  • 1.35K users / month
  • 4.39K users / 6 months
  • 2 subscribers
  • 1.53K Posts
  • 50.2K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.18.1
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org