Am birthday is today πŸŽ‚

Yes we will hopefully. Staff is actually supportive of the idea.

3 Likes
using System;

namespace testcs
{
    class Program
    {
        static void Main(string[] args)
        {
            string x = "\nHappy Birthday ", y = x + "to You";
            Console.Write(y + y + x + "Dear Qwerty" + y);
        }
    }
}
4 Likes
for lyric in range(2):
  (greet:= lambda:print((happy:="Happy birthday","to you")))
print(happy,"dear Qwerty");greet()

Code not tested.

3 Likes
#include<stdio.h>

int main()
{
	for(int c; c-5;)
		printf("Happy Birthday %s\n",++c-4?"To You":"Dear Qwerty");
	return 0;
}
2 Likes
#include <iostream>
int main(){for(int i=2;i--){std::cout<<"Happy Birthday"<<(i?"To You":"Dear QwertyQwerty54");}}
1 Like

We could just make a string that includes the whole thing :laughing:.

print('Happy birthday to to\netc.')
1 Like
#include <discourse/api.h>
#include <stdlib.h>
int main() {
  discourse *replit_ask;
  discourse_login(replit_ask, "https://ask.replit.com", getenv("REPLIT_ASK_USERNAME"), getenv("REPLIT_ASK_PASSWORD"));
  if(!replit_ask) abort();
  // <span> to bypass minimum post length (this is entirely theoretical)
  discourse_topic_reply(replit_ask, 18433, "Happy birthday!<span></span>");
}

:cupcake: for u :smile: β™©β™ͺ♩♬ ♬♩β™ͺβ™© happy birthday to u β™©β™ͺ♩♬ ♬♩β™ͺβ™© happy birthday to u β™©β™ͺ♩♬ ♬♩β™ͺβ™© happy birthday dear qwerty β™©β™ͺ♩♬ ♬♩β™ͺβ™© happy birthday to u

2 Likes
(=Ir#)>;:48v
v:,_@:"H"<

; ^,48*,:"a"<
>;^,48*,:"p"<
>;^,48*,:"p"<
>;^,48*,:"y"<
>;^,48*,:" "<
>;^,48*,:"b"<
>;^,48*,:"i"<
>;^,48*,:"r"<
>;^,48*,:"t"<
>;^,48*,:"h"<
>;^,48*,:"d"<
>:,@:"a"<
>:,@:"y"<
>:,_@:"!"<

(in malboge)

That wins for least readable and loses for fewest lines.

1 Like

jsfsck should win on both unreadability and fewest lines

Malboge is a truly annoying thing … among the worst

1 Like

I go for the exotic code …

section .text
global _start

_start:
    mov eax, 0x646168 
    push eax
    mov eax, 0x20797270 
    push eax
    mov eax, 0x74697070 
    push eax
    mov eax, 0x20657061 
    push eax
    mov eax, 0x79 
    push eax
    mov eax, 4 
    mov ebx, 1 
    mov ecx, esp 
    mov edx, 13
    int 0x80 

    mov eax, 1
    xor ebx, ebx 
    int 0x80

PS: This is not mine …

2 Likes
print(β€œh”)
print(β€œ a”)
print(β€œ  p”)
print(β€œ   p”)
print(β€œ    y”)
print(β€œβ€)
print(β€œ     b”)
print(β€œ      i”)
print(β€œ       r”)
print(β€œ        t”)
print(β€œ         h”)
print(β€œ          d”)
print(β€œ           a”)
print(β€œ            y”)

this was a pain to write
edit: :baguette_bread:

3 Likes

You could have written a program to write that:
Something like this:

with open('happy.py', 'w') as file: # This will create a file or overwrite an existing one
  space = ''
  for letter in 'happy birthday':
    file.write(f'print("{letter}{space}")\n')
    space+=' '

I think that will work. All in one program:

with open('happy.py', 'w') as file: # This will create a file or overwrite an existing one
  space = ''
  file.write('def main():\n')
  for letter in 'happy birthday':
    file.write(f'  print("{letter}{space}")\n')
    space+=' '
from happy import main
main()
1 Like

Challenge: Make it handle when that file exists and compensate (and clean up after itself, maybe even search the filesystem for a writable dir if the current dir isn’t writable)

i dont care :baguette_bread: :baguette_bread: print(β€œβ€) superiority

I could make it search for the file but I don’t want to take the time to because it’s unnecessary.

what about with eval?

I used print. I just also cheated and didn’t take the time to write it all out.