organization

Sharing Common SQL Queries Amongst a Team

I don't even want to think about how many man hours have been spent writing the same queries to join over the exact same tables at my company. When I first started at my job I identified this as an inefficiency and started writing views in a separate schema for the sole purpose of developer convenience. My boss didn't like this very muc...

How can I group functions in an ASP.NET class?

I currently have a VB.NET class named "Customers" and it's been steadily growing in size and I now have a couple dozen functions in it. Is there a way of maintaining the functions in the same class? Since they still use common private methods, but group them by similarity. For example: Class Customers -GetData ---GetCustomerObject() -...

How should I organize project-specific read-only files in c#

My standalone smallish C# project requires a moderate number (ca 100) of (XML) files which are required to provide domain-specific values at runtime. They are not required to be visible to the users. However I shall need to add to them or update them occasionally which I am prepared to do manually (i.e. I don't envisage a specific tool, ...

Accessibility and code organization problems in javascript with jquery.

I'm having troubles with the order of my code in my program. right now I have some things with in document.ready(function() { } ); and some things out side of it. Whenever I move anything (to organize or improve my code) I end up breaking something, I'm guessing because of either order of declarations or access levels (ie. something outs...

how to organize an asp.net project

Hello, I am a PHP developer moving into an ASP.NET environment. I would like to know the best way to organize the different types of files. Right now in my project... I have the following: 3 Master Files 5 User Controls 1 Base page class Several Web Forms The web forms are organized into directories based on the sites structure...

Organization of Unit Tests in Visual Studio

I'm currently creating a paired unit test assembly for every assembly in my project, both are in the same folder. MyProject/MyProject.csproj MyProject.Test/MyProject.Test.csproj Looking at open source projects, I've seen some smaller project put all tests in one assembly, and other split it out like mine. I'm dealing with a large so...

Is it naughty to have a large utility file?

In my C project I have quite a large utils.c file. It is really full of many utilities of different sorts. I feel a bit naughty just stuffing different miscellaneous functions in there. For example it has some utilities related to low level stuff such as a lowercase() function, and it also has some quite sophisticated utilities such as c...

How can a 9-bit micro operation field in a microinstruction be divided into subfeilds?

How can a 9-bit micro operation field in a microinstruction be divided into subfeilds? ...

How should i set up my classes?

I'm starting to work with oop to build a site of user generated data. There are different types of data coming from my classes. I have functions that get a list of data from the database, and functions to just select one item from those lists. For example function Get_Article($aid); //Gets an article function Get_Users_Articles($uid);...

How to organize files in Haskell programs?

I've just started playing around in Haskell. After years of Ruby, I got used to a file organization that's used by Ruby on Rails or Rugui. Are there any guidelines, best practices, or maybe even frameworks about file-organization in Haskell programs? ("Learn you a Haskell" & "Real World Haskell" don't really handle this issue.) ...

How do you organize your code workspace and home folder?

How do you organize your personal workspace for your code projects in your home folder? And how do you keep the workspace efficient for handling multiple projects at the same time? The most important aspect of my question is above. You can stop reading unless you want to address specific subparts of the topic. Below are various relate...

How do you keep track of your thought process ?

I find it very hard to answer question like : "why did you implemented it this way?" or "what's the reason of using that instead of that?" usually because the implementation is the result of a long thought process and trials and errors. By the time i'm finished i can't recall every specific details. I wanted to know if you have some ti...

How do you organize your development environment

I've got a folder with all my projects, in different languages. Then I've got the libraries that I might eventually use in my code (mostly jar files). I'm sure there is an accepted practice, right? What do the professionals do? ...

How do you organize your servers for web development?

I am setting up some servers for website development. I want it to be organized in a fairly standard way. How do you organize your servers for development of relatively small websites, each with a little bit of unique code? Some details I am concerned about include (but not limited to): What distinct servers exist with respect to the...

Help with Structuring a Rails App

Hey guys. I'm creating a rails app and being one of the first times I've used the MVC pattern, let alone rails, I'm running into ambiguity and uncertainty. I already defined an application.html.erb which is working great, it has a yield statement which renders the current action's view. I want application.html.erb to contain some dynami...

Flash AS3 CS4 Project Organisation

I have a large .fla file with all my movieclips (and associated classes) for an entire site in the library. The whole thing is getting unmanageable - compiling very slowly - and not getting any smaller so I would like to know the simplest way to manage my assets in other fla files to be brought together when the main fla is published. ...

In trying to follow MVC, where should each of these elements go?

This is my first foray into "appropriately" using an MVC construct (with Code Igniter). I'm hoping some guru can wave her hands and tell me where the following code elements belong. I have them written, I just want to plunk them in the "right" spot! Call a DB and see if we have a user signed up Route to a signup page Route to the main ...

Organizing Classes in PHP

Suppose I've the following classes in my project: class Is // validation class class Math // number manipulation class Now, if I want to validate a given number for primality where would be the logical place to insert my Prime() method? I can think of the following options: Is_Math::Prime() Math_Is::Prime() ...

Where to put to_xls and from_xls in a rails app

So I have a model that I need to be able to serialize to/read from an Excel(XLS) document. I am a bit of a loss as to where this code actually belongs. My initial thought is that the to_xls is a view, but after poking around and seeing things like (to|from)_xml and (to|from)_json in ActiveRecord, I was wondering if maybe this stuff belon...

Workflow for maintaining different versions of codebase for different versions of Python

I'm developing an open source application called GarlicSim. Up to now I've been developing it only for Python 2.6. It seems not to work on any other version. I decided it's important to produce versions of it that will support other versions of Python. I'm thinking I'll make a version for 2.5, 3.1 and maybe 2.4. So I have several ques...