42

TIL you can write this 🙇🙇

Comments
  • 5
    That's kind of a bad practice when using many namespaces as functions can overlap and you won't know which libs functions you're calling.
  • 4
    Just because you can doesn't mean you should.
  • 18
    wtf, why in a .java file???
  • 20
  • 3
    🤦‍♀️
  • 12
    Iirc compilers will just look for a file that has a "main" function defined in it

    Ps. Fuck whoever wrote that code. INCONSISTENT INDENTATION.
  • 5
    @D--M
    + A little piece inside me dies always when I see opening curly bracket on new line... :(
  • 4
    Is that the best IDE gedit?
  • 1
    I know which program is that.
    It's hamming code program, right?
  • 4
    @D--M inconsistent indentation AND inconsistent brackets
  • 0
  • 0
    @D--M Mate, you might want to look at that file name. (.java)🤐
    About indentation, some professor gives us 200 lines of codes unindented as questions on a regular basis in exams. No wonder some students have picked it up and consider it the way to write code.
  • 1
    @2erXre5 it's weird the number of people who understood this is so low. Thankyou 🙏
  • 2
    @okkimus some college mates just don't get it. Gedit is their whole world.
  • 2
    @abhinavr888
    So are you writing java? Or c++, cause that looks like c++ to me, in which case, having a file called pineapples.java would still work and compile as c++
  • 0
    😂😂
  • 0
    @abhinavr888 Yeah. BTW are you from which college? Am also from the same country that you belongs to.
  • 1
    I just don't understand coders who don't put spaces between their operators. I mean, how do you manage to read that shit?
  • 0
    Use a linter you insensitive f***.
  • 0
    I dont understand the TIL.. iostream is maybe the most common C++ library.

    Its just some shitty C++ code with a bad filename. But i enjoy the free code review it gets in the comments.
  • 2
    Want to know what really triggers me about this code? He isn't putting a space between cout << "String".

    AAAAHHHHHHH
  • 0
    @ilikeglue "using namespace" is fine in .cpp files. Just if one overlap happens you should remove all "using namespace" for consistency.

    But please, PLEASE don't use it in Headers.

    Pllllleeeeaaaaaassssseeee!
  • 1
    @D--M Well I had no idea you could write C++/C code in a .java file. And neither did the person who wrote this. Hence, the joke.
    How do you compile such a file? Javac filename?
  • 0
  • 1
    @bioDan well devRant won't let you post without a minimum 6 characters. Added gibberish really
  • 3
    The grade I'd assign: death.
Add Comment