Funny dev related stuff - the chill corner 😂

Atunci când Google îți citează din Biblie pentru un search despre o eroare mysql.

9 Likes

8 Likes

6 Likes

6 Likes

Cat de cat ontopic !

2 Likes

https://twitter.com/wfaler/status/957712606852239360/photo/1

4 Likes

:slight_smile:

5 Likes

Chestia asta mi se pare… cum să zic… diabolică :smiley:

const a = {
  i: 1,
  toString: function () {
    return a.i++;
  }
}

if(a == 1 && a == 2 && a == 3) {
  console.log('Hello World!');
}

:troll:

8 Likes

what about this? :D:D

1 Like
const a = {
  i: 1,
  valueOf: function() {
     console.log('LOL');
     return 0;
  },
  toString: function () {
    return this.i++;
  }
}

:smiley:

more evil please.

Cred ca tot ce-i aici este WAT

https://www.destroyallsoftware.com/talks/wat

Si cred ca toata lumea de pe aici stie de ea !

3 Likes

offtopic !

Sunt curios daca este voie sa cream un topic de Pranks
Acele farse care au fost facute colegilor la birou cum ar fi programul in vb care deschide si inchide unitatea cdrom :))

Apropo de evaluarea de mai sus, C++ e chiar mai pervers:

#include <iostream>


struct A {
    bool operator==(int) const { return true; }
};


int main()
{
    A a;
    
    if(a == 1 && a == 10 && a == 100 && a == 34912389)
    {
        std::cout << "Hello world!" << std::endl;
    }
    
    return 0;
}

http://cpp.sh/4vutq


Dar cea mai bizară variantă ar putea fi asta :slight_smile:

#include <iostream>


struct A {
    bool operator==(bool) const { return true; }
};


int main()
{
    A a;
    
    if(a == false && a == true)
    {
        std::cout << "Hello world!" << std::endl;
    }
    
    return 0;
}

http://cpp.sh/44bse

3 Likes
var a = 9;

if‌(a==1 && a== 2 && a==3)
{
    //console.log("Yes, it is possible!😎")
    document.write("<h1>Yes, it is possible!😎</h1>")
}

//--------------------------------------------

function if‌(){return true;}

Asa a reusit

If you just see top side of my code and run it you say WOW, how?

So I think it is enough to say Yes, it is possible to someone that said to you: Nothing is impossible

Trick: I used a hidden character after if to make a function that its name is similar to if. In JavaScript we can not override keywords so I forced to use this way. It is a fake if but works for you in this case!

@serghei cred ca glumesti daca chemi “pervers” C++ comparat cu JavaScript. C++ e un limbaj compilat, putin respect macar. Macar daca te legi la C++ de chestii gen diamond problem, multiple inheritance.

JavaScript e cea mai populara perversitate. E ca si cum intr-un intreg continentul, toata populatia isi fura unul de la altul chilotii de pe sarma.

Perversitatea din ultimile 2 snipett-uri ale lui @iamntz si @OvidiuG mi se pare de-a dreptul :nauseated_face::face_vomiting: Nu sunt noi, dar sunt dezgustatoare.

2 Likes

Glumesc, bineînţeles. Doar suntem pe “the chill corner”. Am senzaţia că în ultimul timp suntem cam încordaţi :slight_smile:

5 Likes

Si eu glumeam, dar mai colorat.

1 Like

(click)

De aici: https://blog.toggl.com/lightbulb-cartoon-developers/

7 Likes

o postare a fost mutată într-un nou subiect: Surviving the Framework Hype Cycle