344
kuba
7y

Teacher: Your program has to be at least 2000 lines long.

-_-

Comments
  • 39
    Do something silly like
    if (true) {
    $a = 1;
    }
    When you're declaring variables. For shits and giggles of course
  • 72
    add 100 paragraph of lorem ipsum as a multi-line comment

    www.lipsum.com
  • 13
    @kuba

    Seems that you are a newcomer.

    Kuba kuba = new Kuba();

    kuba.print("Welcome to devRant!");
  • 8
    @CozyPlanes
    @Tasperen
    thanks, but I forgot to mention it was few years ago, when I was still studying :-)
  • 13
    @kuba Inside comments write story.
  • 7
    @jAsE imagine when you missed a semicolon and the error log gives you more than 100 errors saying 'Probably a semicolon is missing....'
  • 9
    I remember when i had to do assembler in first year of uni. I wrote the code that was so short that i failed when I came to see my exam assistant teiend to run the code(we wrote on paper) it worked indeed
  • 22
    wrtie something in C without using libraries
  • 2
    @jAsE well played lool
  • 4
    Or simply put giant doc blocks before each function.
  • 3
  • 5
    Make a program that parses your project en unrolls every loop. Let that program run on itself :)
  • 3
    @karwler Write something in C without the STANDARD library...
  • 2
    This actually happened to one of my friend's class. It's so silly coz he has a solution thats like 30 - 40 lines but the teacher rejected it coz its not thousands of lines XD
  • 2
    Write a code that writes a source code, with a lot of random for loops and printf:s with random messages.
  • 6
    "Less is More" - Me, 2017
  • 5
    @karwler submit a small OS
  • 2
    Write an essay on " devRant vs quora" and then comment it
  • 5
    Use COBOL. A simple Hello World is about two pages long, of you print it.
  • 4
    Compile it into Assembly and turn that in
  • 3
    @Seralic Robert Browning, 1855
  • 1
    @Deserter you destroyed my worldview.
  • 2
    Me..
    <actual code here>
    //
    //
    //
    //
    //
    //
    //
    //
    //
    //
    //
    //
    .
    .
    .
    .
    <end tag here>
  • 2
    Apply a short line length code style. More lines, same logic.
  • 1
    @Tasperen while this is fine in PHP and JS (when using var) in most programming languages that I'm aware of there is a block scope which means $a is not available outside that if's body
  • 3
    @dimitarnestorov The more lines then.
    int a;
    if(true)
    {
    a = 1;
    }
    And @Tasperen, if you want to make it really silly, add an else block to that... 8))
  • 4
    "console.log("fuck my teacher");. Copy and paste it for the remaining lines you need.
    (use your languages equivilant obviously).
  • 2
    @linuxxx Unterminated string literal.
  • 2
    @Umbra On my Commodore 16 that would have been a hell of a lot. 12 KB programmable memory, in Basic. You do the maths :)
  • 2
    String tmp;

    tmp = "":

    CTRL+C

    CTRL+V....
  • 2
    Don't use functions
  • 2
    Replace loop with duplicated code
  • 3
    Doctor, this appendicitis operation must last at least for two hours!
  • 1
    Write it in brainfuck
  • 2
    A lot of Space lines
  • 1
    @jAsE +1 for the effort used writing the comment 😆
  • 1
    *intentionally writes code in Python just to mess with teacher*

    I'm actually the kind of guy who would do that. No wonder my marks are bad at times 😂
  • 1
    No problem. I can even write a "hello world" in more than 2k lines. Only for fun of course. That's a cool challenge by the way. I need to design that ;)
  • 2
    If I were a teacher it'd go the other way.
    you get 100 lines each 80 columns write a program that does this and that.

    Why give a code line number minimum, give them a maximum they'll learn to program much better that way.
Add Comment