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
-
py2js27657yYou can't/shouldn't correct everyone. Tell them their mistake if they understand then awesome otherwise leave them be. By the way this dude likes to live dangerously
-
@py2js i didn't say anything to him, i just asked him politely to write it clearly with indentations so others can read it too
-
Mistakes happen. If I had seen such a code in production then my eyes would be burning now. I it is a newbie then it is better if we correct their style of coding.
-
guthix4237yIt's either j++ in the third line, or this code is gonna print ~2^16 stars per line (assuming 4 byte integer) for 5 lines I guess (if first line prints x stars, next line prints x+1 stars and so on)
-
guthix4237yAlso, you did the right thing by suggesting him to try indenting his code for readability instead of lashing out or outright denying to see his code. Good job! 😄
Related Rants
some people are just worst than the devil.
int main()
{for (int i=0;i<5;i++)
{for(int j=i;j<5;j--)
{printf("*");
}printf("\n");
}
}
(some dude from class wrote that)
rant
pretty print
sadness
code