• Hamartiogonic@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I just asked Bing to write some VBA code that adds two numbers together. Here’s the code.

    `Sub AddTwoNumbers() Dim x As Integer Dim y As Integer Dim z As Integer

    x = 1
    y = 1
    z = x + y
    
    MsgBox "The result is " & z
    

    End Sub `

    I’m a VBA developer now. I’m entitled to get my own API, right?

    Oh, but that’s not all, there’s also a Whitespace version of my program.

    `Here is a possible whitespace code that adds two numbers together 1+1:

      		 	 	 	 	 	 # push 1
      		 	 	 	 	 	 # push 1
      		 	 	 	 # add
      		 	 	 # print as number
      		 	 	 	 	 # exit
    ``` `
    
    Before you ask, Wthisepace is an actual programming languga, alot like Brainfuck.