Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 674963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:45:55+00:00 2026-05-14T00:45:55+00:00

Are there any known design principles, best-practices and design patterns that one can follow

  • 0

Are there any known design principles, best-practices and design patterns that one can follow while designing a C project? Or useful design principles for procedural (imperative) programming in general?

(I’m child of the ‘object-oriented generation’ and have to design a large C project for the first time)

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:45:55+00:00Added an answer on May 14, 2026 at 12:45 am

    Information hiding – as espoused by Parnas (Software Fundamentals).

    Careful management of headers and visibility:

    • Everything in a source file that can be hidden from the outside world should be; only the documented external interface should be exposed.
    • Everything that is exposed is declared in a header.
    • That header is used where the functionality is needed (and where it is defined).
    • The header is self-contained – when you need it, you use it, and you don’t have to fret about ‘what other headers do I also have to include’ because the header ensures it works by including anything it needs to make it work.
    • The header is self-protected – so it does not matter if it is included multiple times.

      #ifndef HEADER_H_INCLUDED
      #define HEADER_H_INCLUDED
      ...rest of header contents, including other #include lines if necessary
      #endif /* HEADER_H_INCLUDED */
      
    • Design sets of functions to work on ‘objects’ (usually structures) – and use those functions rather than poking around the innards of the structure in the code that is using it. Think of it as self-imposed encapsulation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there already any collection of best practices for languages like Scala? I've found
I am looking for best practices/design patterns for keeping JavaScript in external JS files/bottom
is there any new design patterns available other than the patterns covered by GoF
Are there any known issues with ASP.Net Ajax and IE6 in Windows 2000 machines
Is there any known attack on this modified version of Yahalom? Cannot find anything...
Are there any known regular expressions out there to validate credit card track 1
Is there any known hashing algorithm, which for similar input returns similar output? I
I was wondering - are there any known techniques to control access to a
Using jquery UI 1.8's autocomplete, is there any known way to take the results
Is there any well-known algorithm (or obvious solution) for transforming a list from order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.