7

Whats your favourite completely useless function / code?

Comments
  • 5
    (a=>a.bind(0,a))(a=>a.bind(0,a))()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()();
    Its dope to run it in node over a slow ssh conn...
  • 5
    IsAGoat(), I think it's a Android functions that return true if user is goat
  • 2
    @mrsulfat its true for me!
  • 1
    NetworkStream.Length in .net.
  • 3
    function swap_num(int a, int b)

    {

    int temp;

    temp = a;

    a = b;

    b = temp;

    }
  • 1
    @swappy
    If you use numbers you even can discard the temp variable:
    function swap_num(a, b) {
    a += b
    b = a - b
    a -= b
    }

    Or the very simple python thing:
    def swap_num(a, b):
    a, b = b, a
  • 4
    @LinusCDE : thats the reason, the above posted function is USELESS :D
  • 1
    @swappy You're right. 😅 I completly missed that.
  • 0
    () => {}
  • 0
  • 1
    int main(){
    return rand();
    }
  • 0
    IsThirteen(n) {
    return n == 13;
    }
  • 0
    @LinusCDE I think JavaScript copied that from python. You can do this in js now to swap two variables.
    [a,b] = [b,a];
  • 0
    @abhishekb you know the npm?
  • 0
    @abhishekb It isn't unusual (or bad) for programming languages to copy from each other.
    Didn't js have the ...-operator for that?
Add Comment