Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Our coding standard was very strict. It was not possible to cheat and save lines by writing, eg:

  if (func()) a = 1;
You had to write:

  if (func())
    a = 1;
Writing very complex C programs with functions <= 25 lines is definitely possible. All Epita students were routinely doing it!


I was thinking more along the lines of:

if (func()) { a=1; }

/* curly braces didn't count in your allocation of LOC, but they would in mine. */




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: