|
From a perfectionists' point of view, having job callers deal with sequences of calls violates encapsulation: job callers do not need to know that a job requires a "setup" and a "cleanup" steps.
To hide the internals from your callers while keeping the distinction in your implementations, make an abstract class with a skeleton method, then override pre/post/job methods as needed in your derived classes. This technique is commonly known as the "Template Method" pattern[^]; I prefer "skeleton" to avoid confusion with C++ templates.
AbstractClass::Job()
{
doPreJob();
doJob();
doPostJob();
}
DerivedClass::doPreJob() {}
DerivedClass::doJob() {}
DerivedClass::doPostJob() {}
JobCaller()
{
pAbstractClass -> Job();
}
|
|
|
|
|
Hi
I am stuck with a problem when i have been told to fill the details regarding the application which we have built for providing us a server.
The details to be filled are as below.
disk space required to store each associate (kb/MB)
size of each transaction (kb/mb)
So how do i estimate?
Regards
Naina
Naina
|
|
|
|
|
nainakarri wrote: So how do i estimate?
Look at the classes you are using and what information they expect to contain, multiply by the expected quantity. This is just simple mathematics.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Hi Thanks for the reply.
Is there any way tool/way to calculate the size of data transporting when using the application?
Naina
Naina
|
|
|
|
|
What data, how are you transporting it, where are you processing it? Your question is far too generalised to give a valid answer. Try searching the internet (Google, Bing) for the subject matter you are interested in.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
sizes get measured on a development system, and if necessary on a mock-up. Just measure total size for quantity 1, 10, 100, 1000 and you'll know unit size. Quantities you need to estimate yourself. No tools involved, just common sense.
|
|
|
|
|
I now have to deal with a whole lot of very badly structured solutions and projects. My first bugbear is solution files within project folders. To me this smells very bad, as projects are subordinate to solutions, and maintaining a healthy solution folder structure should not rely only on the solution file contents, but should be implicit in the actual Windows folder structure.
I would like to propose a standard for use by me and my colleagues, and in this suggest a truly hierarchical structure with a Code folder containing a solution file, and subordinate folders for all projects, containing only .csproj files and source, no solution files! I would very much also like to include some useful background information justifying my proposal, but I don't want to ramble too much and would like sources I could maybe quote, with attribution of course. What good articles, tutorials, books, etc. could I consult for this?
|
|
|
|
|
|
I'm sure most questions here could be answered by Google. In fact, most of mine are actually answered by Google, but I like forums because they introduce experience factors versus mere PageRank.
|
|
|
|
|
The first few hits seemed quite to the point, and your post did show interest but not really prior research, hence...
|
|
|
|
|
lol, hate the cynicism, love the approach.
|
|
|
|
|
I don't see the problem with having individual solutions Thats a good thing, particularly if the solution can be implemented in isolation. Also I can't see a problem with other more enterprise type solutions being able to reference projects within another solutions.
I doubt you will find a book or article expressly on the subject because it is a fundamental principle of OOP. I think what maybe more concerning is a lack of namespacing guidance. As enterprises develop over time, namespacing does become an issue (that's life) and changing namespacing is relatively simple. What you need to consider in backward compatibility. Changing namespacing can cause upgrade deployment issues.
|
|
|
|
|
I disagree with your ideas.
We have a few solutions, and some of them share projects, e.g. both Solution1 and Solution2 make use of ProjectA. And here, the structure you suppose would fail.
Our sln files reside in the "main" project of a solution, not in a shared project. When shared projects contained sln files, I would not like that either.
|
|
|
|
|
What would be a good source of information to read upon the various methodologies and the documentation that should go along with it, who is responsible the various documents, document templates(industry standards),etc?
|
|
|
|
|
This is really a research question, type the methodology name or subject that interests you into Google and see what happens.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Microsoft has something they call the Microsoft Solutions Framework which has definitions of teams and various artifacts. I haven't looked at it since several versions back when I was studying for the now retired 70-300 certifciation exam. It looks like it has been updated to handle some Agile processes since then.
I don't know that I would actually recommend using that particular framework, but at least it will give you a good idea of some of the concepts you should consider.
|
|
|
|
|
I struggle with this question teaching Project Management. There is no standard. Each organization is different in there approach and each project within an organization is different. You need to "customize" a methodology to meet the organization's development guidelines and at the same time meet the project requirements.
So keep an open mind and customize the templates and guidance you find to the project at hand.
|
|
|
|
|
In my project I am using Visual Studio and SQL Server.
During my project review, the reviewers asked me that "Why u preferred Visual Studio,ASP.NET and SQL Server and trying to waste money on buying them?"
"Why didn't u go behing free and open source development options like using PHP/MySQL?"
I could only reply with some features of Visual Studio.
But I still doubt why Microsoft is selling things when the powerful PHP is free.
How should I reply to the reviewing team? Please give me a good explanation.
|
|
|
|
|
Well, they seem to be mistaking Visual Studio for a language. PHP is a language, while VS is an IDE. The key thing is that it is integrated, so you can do more than just edit source code in it; you can manage your databases, run unit tests, code coverage, profiling, metrics analysis, and so on in the IDE.
|
|
|
|
|
You can run PHP from Visual Studio. You cannot run Visual Studio from PHP
Question for the reviewer; Linux is free, but the largest part of the world is spending money on Windows. Why?
I are Troll
|
|
|
|
|
Simple answer - productivity.
If you spend $10k on development tools and they save you 2 hours a day in productivity then if you do the math there is a break even point not too far down the track, at which point it is cheaper to use the expensive tools.
You can use notepad and write machine code for free but almost noone does.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Visual Studio Express editions are free.
You need to look at the development team and the tools they are familiar with. If they are familiar with VS then you need to consider what are the appropriate VS licenses for each member.
If the team are PHP developers then VS is a total waste of time. Find out what tools the development team are familiar with and use them. A cost analysis of retraining the team might be a sobering reality for the reviewers.
|
|
|
|
|
I am coding a 2D Tile Based Scroller in Java. When I first started this project I was going to make it a screen-by-screen scroller, but now I want to make it tile-by-tile (the character stays in the middle of the screen and the world scrolls under you). The problem I am facing is this is a client/server setting, so I need to server to be able to constantly send pieces of the map to the client, but I can't wrap my head around how the client should store and parse out this data. When it was just map by map I could have the map in memory and it was of fixed size, now the map size will constantly change and just the viewing size of it will be static.
Any ideas?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi
I hope I am not too much out of line.
One of the big problems is handling multiple pictures (After downlo0ading from your camera).
The most familiar tasks are multiple Rotaing and multiple shrinking.
A nice tool would let you see all pictures in a directory and lets you select some of the pictures for RightRotate, some for LeftRotate, and some for 180 degrees rotation.
Then, one would like to shrink all pictures to some maximal size: say 100 KB. This way you can easily send the pictures.
Of course a good idea would be NOT to delete to old pictures.
Is there a tool (and code) to do these ?
If such tool does NOT exist, does anybody here think that it is something to do (and post) ?
zmau
|
|
|
|
|
I have a meeting tomorrow regarding this subject.We have a case which involves where exactly visible signature files captured and enrolled should be stored, the company has a Windows Active Directory and one option they have is to store it in the user profile attribute jpgPhoto or so.Other would be to store it in a database.One application basically has to query and pick it up and pass it to a signing web service.I feel that storing it in the ad would reduce the "security" related overheads as it is a single point of storage of a user information , rather than replicating it in a database,also the user sensitivity in how secure is his solutions.This may be for max 100 users.The IT admins are gonna give me a tough time.Any good points to store in AD vs Database ?
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|