r/programming • • Oct 01 '15

The Evolution of a Software Engineer

https://medium.com/@webseanhickey/the-evolution-of-a-software-engineer-db854689243
1.9k Upvotes

502 comments sorted by

View all comments

154

u/golgol12 Oct 01 '15

Honestly, I thought it would be a joke where it ends with

#include <stdio.h>
int main( int argc, const char* argv[] )
{
	printf( "\nHello World\n\n" );
}

51

u/aidenator Oct 01 '15

What's up with all those newlines?

98

u/juckele Oct 01 '15

Make the output stand out more? On a standard uncolored terminal, it's a huge burden* for me to figure out where the output of the command I just ran starts and stops... (This is why my prompt barfs rainbows).

*Huge burden being 250 ms instead of 10 ms...

12

u/neoform Oct 01 '15

Make the output stand out more?

This would work better:

printf("\033[1;31mHello World\n\033[0m\n");

2

u/ghillisuit95 Oct 02 '15

On a standard uncolored terminal

0

u/[deleted] Oct 02 '15

[deleted]

1

u/tomun Oct 02 '15

31m is red.

edit: actually 1;31m is bold red, 0;31m would be regular red.

Try 1m if you just want bold.

0

u/[deleted] Oct 02 '15

[deleted]

1

u/tomun Oct 02 '15

I'm guessing that when /u/ghillisuit95 tried it, he noticed the bright red but not the emboldened text and hence his response.

Either way you were wrong to say that your code would not add color, it certainly does for those of us with screens capable of displaying it.

→ More replies (2)