This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

The impact of one huge header file

Hello,
Somebody here insists that all the program's definitions will be stored in one large header file that all C modules include, rather that keeping the declarations distributed among specific header files. That sounds pretty crappy to me - but how bad it is really? will it have a very negative impact on build time?

Parents
  • The IDE should not matter in this case. Todays compilations are almost fully controlled by the amount of optimization. For some tools, the link step can also take a lot of time if a project is big and has debug information - especially C++ can produce huge amounts of debug information.

    Remember that you don't build with high optimization levels :)

Reply
  • The IDE should not matter in this case. Todays compilations are almost fully controlled by the amount of optimization. For some tools, the link step can also take a lot of time if a project is big and has debug information - especially C++ can produce huge amounts of debug information.

    Remember that you don't build with high optimization levels :)

Children
  • "Today, who cares if a build takes 3 or 5 seconds."

    We used to have some bloke here with a poster that stated something along the lines of:

    "Remember guys, the faster your computer, the bigger your ....."

    (I'll let you fill in the missing word.)

  • Ah, Sausage, a blok I used to work with hung this slogan on his monitor:

    "wie stabiliteit wilt, kan geen schoonheid verwachten"

    which means:

    "The one that wants stability, cannot expect beauty"

    It was funny that it was printed with these ornaments positioned around the inscription, like it was some kind of a religious decree [is it? I bet "Jack Sprat" knows :-) :-) ]

  • I think that's not true:

    It takes skill & care to make something beautiful; I think it's far more likely that something which has been made with such skill & care will be stable than something that hasn't.

    Or maybe it was about women...

  • A while ago I thought about putting up my own little poster:

    "You're a thinker, not a doer"

    Why?

    One weekend a couple of years ago I though I'd save some money by buying a hedge trimmer and tidy the hedges around our garden myself.

    Big mistake ... I managed to get a very numb arm from swinging the trimmer up high and down low for a long period.

    So I went to the doctor, explained what I had done and he responded (without even looking at my arm):

    "It's rubbing nerves. The trouble is that you haven't realised that you're a thinker and not a doer".

    Really didn't know whether to take it as a compliment or an insult.

    Anyway ... I don't think I'll try to save money in that way again.

    Anyone want to buy a hedge trimmer? - It's only been used once!