|
Your concept looks OK, but if your are really going to name classes DL and BL you are looking for trouble.
I do not believe they are right who say that the defects of famous men should be ignored. I think it is better that we should know them. Then, though we are conscious of having faults as glaring as theirs, we can believe that that is no hindrance to our achieving also something of their virtues. - W. Somerset Maugham
My New Blog
|
|
|
|
|
Hi Everyone,
This is my first post on this board. I've been reading it for over a year now trying to soak up any information I can get.
MY QUESTION:
I need to learn better design skills, but I am a lone coder. Unfortunately, I work by myself so I don't have anyone to bounce ideas off or learn from. How can I take my design skills to the next level? What are your suggestions?
MY BACKGROUND:
Unfortunately, I have been programing for a career for over 10 years. I started with Basic on the Apple when I was a kid. I then began my career with VB, and have since moved onto VB.NET. I became MCSD certified in with Visual Studio 6. I have taken the MS classes on .NET, and have read a few books, but I don't feel like I've got the necessary knowledge to design good systems. I mean, my systems work, but I'm afraid if someone looked at them they'd say, "What the heck were you thinking?!?".
I started to read a book on OO Design, that was based on the Martin Fowler book, but it used Bears, Zoo animals, and flowers as the examples. I didn't find the application of these to be to clear. Most of the time, it doesn't seem like my systems call for complex patterns, but without outside eyes how do I know?
So is the answer reading the right book? Or is it seeking out skilled people to teach me?
Any advice would be greatly appreciated!
Regards,
Wauna
|
|
|
|
|
As you are on your own, I would advise you to pick a reasonably complex problem that has a database, business logic and possibly multiple front-end options. Then, break down your code into the various areas, e.g. data access at the database end. At this point, you should have a reasonable idea about what you expect your system to be composed of, so you could use TDD (Test Driven Development) to take a crack at developing your system.
Normally, I would expect you to do a lot more design up front, but as this is for your benefit only and as a way to experiment with what works for you, you can get to the coding a bit earlier than you would in a real project. Think about what patterns are present in your project, and how you can layer your code for best effect. Then - ask questions here on CP.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
A good start is to read the HeadFirst Design Pattern & Head First Object-Oriented Analysis & Design.Check those out at http://www.headfirstlabs.com/books.php.Contact me any time at stzo_2@msn.com
|
|
|
|
|
These people have a number of resources you will find helpful. To access some of them, you will need to register with them.
http://www.netobjectives.com/[^]
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Another good book about patterns is http://www.oreilly.com/catalog/hfdesignpat/
and also Jimmy Nilsson book where he is beeing like a pair programmer to you
http://weblogs.asp.net/fbouma/archive/2006/06/26/Applying-Domain_2D00_Driven-Design-and-Patterns-by-Jimmy-Nilsson.aspx
|
|
|
|
|
Hi Everyone,
Thank you for all of your responses. It looks like there are lots of books and resources that would be good to review. I'm also going to try posting some of the basics here.
Thanks again!
Wauna
|
|
|
|
|
You want to look at some code of how design patterns etc are applied. MSDN has some really cool sample applications. These applications are full n-tier design and gets stuck right into new concepts like software factories as well as best practices
Try the Microsoft .NET PetShop 4.0
http://msdn2.microsoft.com/en-us/library/Aa479070.aspx
|
|
|
|
|
Hi all,
I've got the following sceanrio for a customers project:
- Application running as a service an a server.
- Database running on a different server.
- Lot's of messurement equipment connected to the server.
- Administration-Tool, running on (some?) client's
- Web-Browser-Interface to get information about the facilities state
I'll to use remoting for communication between Admin-Tool and the Service.
But I wonder how I can get data from the service to the admin-tool. The problem is that creating a WebService via
RemotingConfiguration.Configure(...);
with configuration
wellknown mode = "Singleton"
type = "RezeptServiceManager.RezeptServiceManager, RezeptServiceManager"
objectUri ="CoreManager.soap"
this leads (as desired) to a single server-object of type RezeptServiceManager, but these object does not have any connection to the service doing the actual work, therefore dataexchange is not possible.
Accessing the Database from my RemoteObject is no option.
Is it possible to get the Object connected to the service and therefore access the data?
Does anybody can give me hint to solve this problem?
thanx in advance
Franz
|
|
|
|
|
franz.huber wrote: Accessing the Database from my RemoteObject is no option.
Why?
franz.huber wrote: Is it possible to get the Object connected to the service
I don't understand, I thought you said the remote object "is" hosted in the service?
|
|
|
|
|
Yeah, the customer tends to be a bit paranoid - so he dislikes the idea of access his production-database from the net.
Therefore I need a way to exchange data with the service.
thanx
Franz
|
|
|
|
|
The remote object is hosted on a server therefore the database access is coming from that server not from the proxy object in the client.
|
|
|
|
|
quoted...
- Application running as a service an a server.
- Database running on a different server.
- Lot's of messurement equipment connected to the server.
- Administration-Tool, running on (some?) client's
- Web-Browser-Interface to get information about the facilities state
It seems that you are running an application on a test computer, and then send information of equipments, connected with the comuputer, to a server. And you wanna use another client computer to access the status of equipments on server database. Am I right?
just like we send blogs to a web server, and others can view the blog though internet.
|
|
|
|
|
HI,
I am wondering what to include for the method part of a class diagram. I have already created my program and I'm going back to this to correct it. I know you usually have get and set methods but my TL told me to include what ever my code says, but I use sql statements to get the data and then display them using table adapters using .FILL.Can anyone help me out?
;)
Sianny aka Sharny
|
|
|
|
|
falles01 wrote: I know you usually have get and set methods
Really? I do? I don't think so.[^]
|
|
|
|
|
Hi everyone!
I'm looking for some informations about the multi tier/layer architecture for a web project (AJAX + tons of javascript) but also with a lot of C# code for the web portal's objects parts. I've found some informations (even some in CP) but I think I need more and go deeper, especially, something that contains examples.
Could someone help me?
Thanks in advance! :]
See you...
|
|
|
|
|
|
Please don't cross post.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
At my place of employment we have access cards as a system for entering the building. We have a utility that shows who is in the building, and who is out. This utility gets the in and out employees from a SQL Database.
My supervisor wants a new feature added, and I have been giving the task of doing the design work for this. I have been mulling around for a few hours, considering my options. I was wondering what the CPians think of this idea, or if you guys have a better idea.
The new feature would allow you to select an employee from the "Out of the building list," and set a notification on the person. So, when they enter the building, you will recieve an E-Mail saying "Joe Shmoe entered the building at 5:00 PM." We want this added to enterprise namespace so this can be a re-usable object in any software we design.
So, my Idea is as such:
I would create a service running on one of the servers in the building. The user will look at the In&Out utility, select a user, and say "Hey I wanna be notified when they come in" The service will accept notification request, and store it in a database. The service will constantly monitor the In&Out database, and when a condition for one of the notification requests has been met, it will send an E-Mail to the requestor. Then, the service will remove the notification request from the list.
I have been looking at This Article[^] and I believe a lot of this is applicable to me. What do you guys think?
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
Well - another way to accomplish this would be to use a Notifications system like, say, the one with SQL Server 2005. Take a look at it - it's really very, very good.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Leaving the implementation to one side, the approach taken to establish if an employer is in or out of the building using the card system may not be 100% accurate i.e. employer holds the door open for another, some override over the lock is performed, employer is using a temporary card if they misplaced their assigned one etc... Might be worth making your supervisor aware of this.
As for the implementation if your using sql server 2005 I believe you can use a SqlDependency to check for data changes, it might be worth investigating.
|
|
|
|
|
Leaving aside implementation specific details and assuming you have access to DB servers keeping this information.
Whenever you get a request for monitoring someone you can create a trigger in the database. The trigger should get triggered when the employee uses his access card to enter the building. In the code for trigger you can do the necessary processing.
In an even based programming model, you should have events for whenever someone enters or leaves the building (OnEnter, OnExit).
When you get a request to monitor someone you can store that in DB, and when the onEnter event is triggered, you can check against the DB to see if this person is on the notification list.
Of course you have to put in appropriate code to remove the trigger once the condition has been met.
Hope this was helpful
- Vivek
|
|
|
|
|
How you seen MAC OS forms and dialogs? Most of them don't have any save button. I was wondering when exactly (and in response to which event) they store data to hard drive.
I wanted to implement a simmilar functionality in MFC Dialogs, I have a grid, clicking on each row of the grid, loads respective data to the controls below the grid. After user changes data in the controls(textboxes, combo, etc) data should be saved automatically.
Which messages would you process to archive this goal? (I thought of KillFocus but there are some issues )
-- modified at 12:07 Friday 21st September, 2007
// "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }
|
|
|
|
|
Hamed Mosavi wrote: but there are some issues
Like what?
|
|
|
|
|
Saving data on each killfocus causes a lot of hard disk engagement. Putting save on killfocus of last control is not practical because later UI might change, or it might be optional, and user might never set focus into it, so there won't be any killfocus.
Anyway, I decided to put that save button, after thinking a little bit more today. As another post suggested here, it's not such a nice idea to put such a feature.
Thanks.
// "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }
|
|
|
|