Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi All,
I'm working on big project having 250 .cpp and .h files.Project size is directly propotional to number of project files.so project increase my number of project file increase....
 
So problem is maintainance of project but obeouse ,maintaining such big project is not small thing.
_____________________________________________
So,
We planed to restructure our code into small - small modules.
By using,
1)DLL
2)LIB
 
So is i'm goes throught right path or any thing else present to do so.
 
thanks regard
santosh
________________________________________________________
Posted 26-Dec-11 1:16am
Edited 26-Dec-11 1:17am
v2
Comments
ThatsAlok at 28-Dec-11 1:57am
   
Just small comment, Could you do a walk through of your code, find the common things and include design pattern when restructure or refactor your code. since companies doesn't give you second thought on your codes!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

That sounds good.
 
Organize your libraries by function and give them meaningful names.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Break out things into libraries where it makes sense, not just because you can. Follow the kiss (keep it simple stupid) design methodology where possible and it will save you headaches in the long run.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Projects can take help of the following to group functionality:
 
Classe.
Namespace
Libraries
Folders
 
You have to give nice and meaningful names. Group similar code in same places. Keep code modular. Give proper comments. Avoid keeping dead code.
 
Google C++ Style Guide[^]
This is the guide line provided by google to work with C++ code. Follow it and improvise.
  Permalink  
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 341
1 Marcin Kozub 225
2 Sergey Alexandrovich Kryukov 220
3 Praneet Nadkar 197
4 Shweta N Mishra 161
0 OriginalGriff 8,149
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 27 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100