4dd3r
Re:When GOTO makes sense
on Wednesday April 25, 2012 @08:36AM (#3888822)
I use goto all the time, but only for one coding pattern. It's a very powerful pattern, which allows me to do memory cleanup completely on a per-function basis:
int abc(void *ctx) { int rc = -1;
if (outcome_of_first() != SUCCESS) {
my_log(MY_LEVEL, "Log my error");
goto over;
}
if (outcome_of_second() != SUCCESS) {
my_log(MY_LEVEL, "Log my error");
goto over;
}
...
rc = 0;
over:
if (something_allocated != NULL)
free(something_allocated); if (something_else_allocated != NULL)
free(something_else_allocated);
return rc;
}
Re:49% of UK get less than average broadband speed.
on Thursday February 23, 2012 @08:45AM (#3624878)
haha - this is classic!
Re:Twitter will exceed 500 million users on Wednesday
on Monday February 20, 2012 @11:16AM (#3612804)
That's true. They have managed boost it in the past two years, but the amount of active users are still only in the region of 100 - 150 million.
Twitter will exceed 500 million users on Wednesday
Re:How to act against ACTA
on Sunday January 22, 2012 @01:47PM (#3497279)
My (slightly altered) version: http://nul.co.za/freedom.txt