Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Tasperen9887yDo something silly like
if (true) {
$a = 1;
}
When you're declaring variables. For shits and giggles of course -
-
kuba3527y@CozyPlanes
@Tasperen
thanks, but I forgot to mention it was few years ago, when I was still studying :-) -
@jAsE imagine when you missed a semicolon and the error log gives you more than 100 errors saying 'Probably a semicolon is missing....'
-
ikozul557yI 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
-
micfort1377yMake a program that parses your project en unrolls every loop. Let that program run on itself :)
-
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
-
Write a code that writes a source code, with a lot of random for loops and printf:s with random messages.
-
@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
-
@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)) -
"console.log("fuck my teacher");. Copy and paste it for the remaining lines you need.
(use your languages equivilant obviously). -
@Umbra On my Commodore 16 that would have been a hell of a lot. 12 KB programmable memory, in Basic. You do the maths :)
-
*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 😂 -
beriba8567yNo 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 ;)
-
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.
Related Rants
-
hell11Manager asked for access to server with admin rights for a third party contractor and I questioned him... His ...
-
DP130618Professor at Uni: "Missing a semicolon on yozr final exam could be a reason to fail that exam. Coding on pape...
-
abhiksark4Told my Boss Server is Down. He told me to go downstairs and work there.
Teacher: Your program has to be at least 2000 lines long.
-_-
undefined
wk63