How Much should I understand of server.c ? There are too much code and too many functions. I can understand most of it, however there are certain line that I don't understand yet; For example the big if(connected) block. I can't get the pattern or the logic behind it. The question to be clear is: should I understand the whole thing and be able to write a similar code or just understand the main general idea of the code in order to be able to solve the problem set just for the current time? In this level of the course, should I be able to write a similar code?

1 Answer 1


I think while nice to be able to read and understand the whole code, you shouldn't necessarily comprehend it all, what is needed in pset6 is to be able to write correctly the functions required.

  • Yes, I know that for sure. I mean, aside from pset 6, should a person in this current level of the CS50 course be able to understand the whole thing and implement something similar ?
    – A.Emad
    Commented Aug 30, 2016 at 18:21
  • You could treat it as a black box as a challenge if you can understand or if you don't you can do it as an exercise on how to approach code bases.
    – thomas
    Commented Aug 30, 2016 at 20:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .