Fun stuff

I couldn’t find such topic. Feel free to share fun stuff related to programming here. I’ll start this out :slight_smile:

the main programming lesson is that the world doesn’t say hello in response.

1 Like

Rammstein:

do
do while
do while break
1 Like
/*
                           \\\|///
                         \\  - -  //
                          (  @ @  )
O-----------------------oOOo-(_)-oOOo--------------------O
| CPP-file                                               |
|                by John Smith                           |
|                                                        |
|                                Oooo                    |
O------------------------oooO---(   )--------------------O
                        (   )    ) /
                         \ (    (_/
                          \_)
  */
1 Like

stackoverflow-com

full-stack developer stands one step from stack-overflow developer

Bill Gates’ worst nightmare: Penguin eating an apple and then throws it at a window.

78843896_1023810804639694_9090247085973831680_n

4 Likes

CodinGame Challenge: “Count to ten!”

Wood League:
print("1 2 3 4 5 6 7 8 9 10")

Bronze League:
print("0 1 2 3 4 5 6 7 8 9 10")

Silver League:

<?php $sol=[]; for($i=0; $i<=10; $i++) { $sol[]=$i; } echo implode(' ' ,$sol)."\n"; ?>

Gold League:

class Sol { static void solve(int n) { if (n == 0) System.out.print(n); else { solve(n-1); System.out.print(" " + n); }} public static void main(String[] args) { solve(10); System.out.println(); } }

Legend League:
cout << "0 1 2 3 4 5 6 7 8 9 10" << endl;

1 Like

Legend league:

0 1 2 3 4 5 6 7 8 9 10

(in php)

But who is using php in Legend? (Except me but I am mostly stuck in Gold or lower…) :slight_smile:

If you have to hardcode, php is the best ! :smiley:

I am legend at fantastic bit (multi) in php :wink:

So the answer at your question is Dwarfie (and there should be other) :smiley:

Then we are the nerdest among the nerds :slight_smile:

As I just recently made a small CG data download tool using the API, I happen to know the exact answer to my own question: there are 95 Legend submissions, by 43 codingamers, written in PHP in all multis and contests combined (from a total of 5548 Legend bots). We are a rare and endangered species!

1 Like

Old but gold :slight_smile:

1 Like