• @noodle@feddit.uk
    link
    fedilink
    English
    42
    edit-2
    2 years ago

    When I was learning programming I wrote a small program that I called for_you.exe. It printed an animated ASCII penis ejaculating on some boobs. I emailed it to my girlfriend and thankfully she thought it was hilarious. We’re still together.

        • WhiteHotaru
          link
          fedilink
          14
          edit-2
          2 years ago

          My

          1. The Finnish author Tove Marika Jansson (1914 - 2001) invented this name for her stories about the Mumin troll (Moomin Trolls). Lilla My (Little My) lives with the Mumin family. She is so small that she can sit in the family’s milk jug. My gives expression to a most destructive turn of mind. She is totally disrespectful and can be very aggressive but has nevertheless an extremely positive attitude to life. Sometimes, she may even demonstrate a kind of careless friendliness - when it suits her.
          2. My is also the name of the 12th letter in the Greek alphabeth.
          3. Creative Spelling of Mi (see Mia)

          See: https://www.nordicnames.de/namefinder/

    • ValiantDust
      link
      fedilink
      52 years ago

      Imagine running out of ideas before having named one after every kid. Now that would be awkward.

  • @ch00f@lemmy.world
    link
    fedilink
    412 years ago

    I mean Steve Jobs named the Lisa after the daughter he disowned. There’s opportunities here.

  • stephfinitely
    link
    fedilink
    772 years ago

    This person misunderstands a beautiful function code can be very sexy or maybe I’m a odd girl.

    • nickwitha_k (he/him)
      link
      fedilink
      8
      edit-2
      2 years ago
      var LogicGate = map[string]string{
          "OR": "OR",
          "AND":  "AND",
          "NOT": "NOT",
          "NOR": "NOR",
          "NAND": "NOR",
          "XOR": "XOR",
      }
      
      func isLogicGate(inString string) (bool) {
          _, ok := LogicGate[strings.ToUpper(inString)]
          if ok {
              return true
          } else {
              return false
          }
      }
      
      func stringAsGateLogic(inString string) (bool, error) {
          inSplit := strings.Split(inString, " ")
          var phrase1 strings.Builder
          var phrase2 stringa.Builder
          var gateString string
          for word := range inSplit {
              if isLogicGate(word) {
                  if len(gateString) < 1{
                      gateString = word
                  } else {
                      phrase2.WriteString(word)
                  }
              } else {
                  if len(gateString) < 1{
                      phrase1.WriteString(word)
                  } else {
                      phrase2.WriteString(word)
                  }
              }
          }
          boolPhrase1 := bool(phrase1.String())
          boolPhrase2 := bool(phrase2.String())
          switch strings.ToUpper(gateString) {
              case "OR":
                  return (boolPhrase1 || boolPhrase2), nil
              case "AND":
                  return (boolPhrase1 && boolPhrase2), nil
              case "NOT":
                  return (!boolPhrase2), nil
              case "NOR":
                  return (!(boolPhrase1 || boolPhrase2)), nil
              case "NAND":
                  return (!(boolPhrase1 && boolPhrase2)
              case "XOR":
                  orRes := (boolPhrase1 || boolPhrase2)
                  nandRes := (!(boolPhrase1 && boolPhrase2))
                  return (orRes && nandRes), nil
              default:
                  return false, fmt.Errorf("Why you do dis?: %v", inString)
          }
      }
      
      func main(){
          answer, err := stringAsGateLogic ("This person misunderstands a beautiful function code can be very sexy or maybe I'm a odd girl.")
          if err != nil {
              fmt.Println(err)
          }
          fmt.Println(answer)
      }
      
      • @wallmenis@lemmy.one
        link
        fedilink
        English
        32 years ago

        isLogicGate is not used. Maybe you mean to place it in “isGate” in the stringAsGateLogic for loop’s if statement?

        • nickwitha_k (he/him)
          link
          fedilink
          62 years ago

          Thank you. That’s what I get for writing a drawn-out shitpost program on my phone over several hours while away from home, instead of in a few minutes in vim.

          • @AVincentInSpace@pawb.social
            link
            fedilink
            32 years ago

            Speaking of, Vim is actually quite easy to set up on Android. Simply download Termux from F-Droid (the version of Termux on Google Play is severely out of date) and pkg install vim (or nvim if you prefer). (Also, full aarch64 linux terminal on non-rooted Android, woo!) Using Vim with an onscreen keyboard is agonizing, of course, but it does work (Termux provides the Ctrl and Esc keys). The F-Droid app Unexpected Keyboard is a recommended addition – it’s an alternative on-screen keyboard with no predictive text and swiping to the corners of each key for alternate symbols. It makes using Vim on a touchscreen at least moderately less painful.

      • qaz
        link
        fedilink
        62 years ago
        if ok {
            return true
        } else {
            return false
        }
        

        Why?

  • Poggervania
    link
    fedilink
    112 years ago

    Have all of your functions named after loved ones and/or nicknames for your genitalia - that way you can say stuff like “muh dick needs to call shawty in order to work”.

  • originalucifer
    link
    fedilink
    112 years ago

    duuude, one of my favorite devices ever was a pre-ipod mp3 player (empeg), and it had “wendy filters”… which were essentially ‘my girlfriend is in the car, dont play this shit’… but i seem to recall that was the name of the feature ‘wendy filters’

  • Cool Beance
    link
    fedilink
    English
    6
    edit-2
    2 years ago

    X: “Your code isn’t working because there’s something missing at the end of this line”

    Y: “Oh. Well then, do you wanna semicolon?”

    That’s rizzzz with a Z++.

    Step up, song makers. Don’t get tied up in your chords

    • swab148
      link
      fedilink
      32 years ago

      Me trying to write a love song: Crap, I just re-wrote “Giant Steps”

  • @ArbitraryValue@sh.itjust.works
    link
    fedilink
    English
    140
    edit-2
    2 years ago

    Once when I was still a kid, I told a woman I loved her so much that I could only love her more if she was a robot.

    She did not think that was romantic.