For whatever reason, our company has a coding guideline that states:
Each class shall have it's own header and implementation file.
So if we wrote a class called MyString we would need an associated MyStringh.h & MyString.cxx.
Does anyone else do this? Has anyone seen any compiling performance repercussions as a result? Does 5000 cl...
I'm used to doing all my coding in one C file. However, I'm working on a project large enough that it becomes impractical to do so. I've been #including them together but I've run into cases where I'm #including some files multiple times, etc. I've heard of .h files, but I'm not sure what their function is (or why having 2 files is bette...
Currently, I've got images (max. 6MB) stored as BLOB in a InnoDB table.
As the size of the data is growing, the nightly backup is growing slower and slower hindering normal performance.
So, the binary data needs to go to the file system. (pointers to the files will be kept in the DB.)
The data has a tree like relation:
- main site
-...
I'm using SyncToy 1.4 and it would be fine for what I need except that:
It can't handle the assigned drive letter changing between systems (e.g. syncing a USB drive),
it leaves its own (hidden) files in the folders being synched (is this a limitation of the OS/FS?),
it recreates empty folders for ones that have been deleted,
it syn...
I love to organize my code, so ideally I want one class per file or, when I have non-member functions, one function per file.
The reasons are:
When I read the code I will always
know in what file I should find a
certain function or class.
If it's one class or one non-member
function per header file, then I won't
include a whole mess ...
I define a project as an SVN directory containing trunk, branches, tags sub dirs.
What criteria do you use when determining when to split a project into two or consolidate several projects into one?
- One App per "Project" with a shared projects for common source and resources?
- One big "project" containing all source and resources fo...
Is there any standard directory layouts for Java projects?
What layout do you prefer most?
I'm asking about more complex layout than just 'src' and 'bin' in project's directory (i.e. where do you put your test classes, build configurations, etc.?).
Thanks in advance.
...
Python can only import files from the current working directory, or from its path, I guess, but this means that if I'm working in a subdirectory on a certain project, I can't import stuff from a parent directory that I wrote to simplify things or provide shortcuts.
This is more for interactive work in IPython and the like, not developin...
Is it necessary to #include some file, if inside a header (*.h), types defined in this file are used?
For instance, if I use GLib and wish to use the gchar basic type in a structure defined in my header, is it necessary to do a #include <glib.h>, knowing that I already have it in my *.c file?
If yes do I also have to put it between the...
I first want to say I've read the Subversion manual. I've read this question. I've also read this question. Here's my dilemma.
Let's say I have 3 repositories laid out like this:
DataAccessObject/
branches/
tags/
trunk/
DataAccessObject/
DataAccessObjectTests/
PlanObject/
branches/
tags/
trunk/
PlanObject/
PlanObjectTests/
Win...
We have an Oracle 10g database (a huge one) in our company, and I provide employees with data upon their requests. My problem is, I save almost every SQL query I wrote, and now my list has grown too long. I want to organize and rename these .sql files so that I can find the one I want easily. At the moment, I'm using some folders named a...
Let's say we have several exception classes that extends exception.
My question is, in order to proper organize our files, where should those classes be placed ?
i.e - Are they helper classes?
One on it's on file? Ok.
Respecting naming conventions. Ok.
But then we group those files and in what folder should we put them? On a folder...
We're working on a site who's document management policy is to put all files onto the network (i.e. My Documents mapped to a network server) for all personal or project related documents, or files.
The problem is that the network has poor uptime. We have configuration files for tools, project related code libraries, and other developmen...