Live data from Hacker News

Resume in C

gist.github.com

1–10 of 115 posts

Re: Resume in C

#2

    --- a/resume.c
    +++ b/resume.c
    @@ -118,7 +118,7 @@ void print_job(job_t * job) {
            }
     }
    
    -int main(int argc, char * argv) {
    +int main(int argc, char ** argv) {
    
            int i = 0;
            while (jobs[i]) {
    @@ -127,4 +127,4 @@ int main(int argc, char * argv) {
            }
    
            return 0;
    -}
    \ No newline at end of file
    +}

Re: Resume in C

#4
When I was in university, I did something similar in Python. I printed it off in color and brought it to a career fair. One guy loved it excitedly. But I didn't hear back from him :(. And that's the story of how I cam to work in Java ;)

Re: Resume in C

#5
Wow, I didn't know this was valid C code, it's pretty convenient.

  school_t uiuc = {
      .school   = "University of Illinois at Urbana-Champaign",
      .location = "Urbana, IL",
      .program  = "BS Computer Science",
      .started  = 1251158400,
      .left     = 1336608000,
      .accomplishments = {
          "Minor in International Studies in Engineering, Japan",
          "Focused on systems software courses",
          NULL
      }
  };

Re: Resume in C

#6
It's cheeky, but then again it is a project you can show someone. Graphic designers get to make fancy schmancy resumes to impress their potential employers, so why not programmer? Better make sure there are no bugs in it though.

Re: Resume in C

#7
post #5

Wow, I didn't know this was valid C code, it's pretty convenient. school_t uiuc = { .school = "University of Illinois at Urbana-Champaign", .location = "Urbana, IL", .program = "BS Computer Science", .started = 1251158400, .left = 1336608000, .accomplishments = { "Minor in International Studies in Engineering, Japan", "Focused on systems software courses", NULL } };

It's a C99 feature (I think?) -- designated literals. They're absolutely wonderful.

Re: Resume in C

#9
post #6

It's cheeky, but then again it is a project you can show someone. Graphic designers get to make fancy schmancy resumes to impress their potential employers, so why not programmer? Better make sure there are no bugs in it though.

Ah nothing like handing your resume over to a prospective employer and having it SEGFAULT

Re: Resume in C

#10
Code review:

* The struct members and variables pointing at string literals should be const.

* People do break this all the time but typedefs ending in _t are reserved by POSIX.

* Your C99 style struct initializers are valid but it's notable that one popular compiler, MSVC, will not like them.

* If we are being idiomatic I would suggest pointer arithmetic to iterate instead of using a counter i.

Post reply on HN