|
What is the definition of "Software Architect"?
What does he do exactly?
Thank you,
M. Derbashi
|
|
|
|
|
|
A man who designs smooth buildings!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I think there is not just one defintion, but hundreds of what a software architect is... or software architecture. Possibly one understaning is that a software architect does the "global/strategic design" and lays the the foundation for used processes/organisation.
|
|
|
|
|
One good thing to read that is focused on just this is Microsoft's architecture journal[^].
In issue number 8 they started a section where they interview architects about their work and the roles they play withing companies. Really good read and should give you some perspective.
_____________________________________________________________________
Our developers never release
code. Rather, it tends to escape, pillaging the countryside all around.
The Enlightenment Project (paraphrased comment)
Visit Me at GISDevCafe
|
|
|
|
|
Guys
There are regular situations in the code base i am working on where exceptions are thrown but nothing is done with them. The end result is vague exceptions being caught at the top level with no information regarding what went wrong.
As a result, i have begun catching them, adding data relevant to the location where they were caught, and re-throwing.
In some cases the same exception can be caught and re-thrown 4+ times. I know exceptions are slow, but what are the other options?
Note: Generaly these exceptions shouldn't be thrown that often and are a vital debug tool
Regards
Tris
|
|
|
|
|
Tristan
I think you have to ask yourself why you are rethrowing an exception so many times. Exceptions serve the purpose of allowing you to deal with a problem as soon as possible. The further up the trace strack you go, the lower the value of the exception becomes. For instance, suppose that I'm trying to open a file. If the file isn't present, I should expect to receive a FileNotFound exception. Now, this shouldn't bubble back up the chain because there is less that I can do with it at each stage back up the stack. What I should do is handle it at the point that the exception was first caught.
Now, why are you catching exceptions? Generally this is because you either want to be able to handle extraordinary conditions gracefully, e.g. don't attempt to read the file in if you receive a FileNotFound exception, or because you want to capture the fact that your code failed. In the first case, you want to handle the exception and move on. In the second case, you want to identify what happened where. Throwing it back up the chain isn't going to help you one bit in the second case. What you should really look at is implementing some form of logging mechanism and use that to log exceptions.
Finally - only rethrow an exception if there is value in doing it, e.g. by breaking the normal program flow to cater for exceptions.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Excelent, thanks.
Food for thought.
It was option 2 actualy, but there are an excessive quantity of Try / Catch blocks in existance which do nothing. I'm actualy trying to bring order to chaos and have a good clean up of an existing code base that throws meaningless errors.
Cheers
Tris
-------------------------------
Eats: Software
Sleeps: Software
Drinks: Decaf
|
|
|
|
|
How can I restrict read and write permission on USB drive on windows xp using WINDOWS API...?ANY help wil be appreciated..
|
|
|
|
|
Sounds like something that can only be done from the admin level.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
How can I restrict read and write permission on USB drive on windows xp using WINDOWS API...?ANY help wil be appreciated..
|
|
|
|
|
Hi to all,
i have developed solution for bookkeeping agency.
There are a lot of inserts in database (two tables header and details) from many points (10-15-20). Operators are inserted documents with 10-20(50 or 100) items. At the moment, mine solution is insert in database a each row of data as it is comlete and just after insert there is select wich retrive data from database. With this i have data in scope of everyone, but as it is very frequntly it is so SLOW. After each row select(with several 9-10 joins) retrives more and more data. Mine other idea is that operator is working in local and when is finished with a document then to lounch insert in database.
With this i will bypass continual rounds throuh server, but data will bee in scope just after inserting whole document ...
I need some instructions about solving this bussiness task.
I'm working with sql 2000 and vb.net
Thanks to all
|
|
|
|
|
alexrad wrote: i have developed solution for bookkeeping agency.
alexrad wrote: I need some instructions about solving this bussiness task.
Well at least you have selected the appropriate time to consider this...
led mike
|
|
|
|
|
|
Hi,
Has anyone implemented the design patterns from www.dofactory.com?? If so, what are your comments on these design paterns??
I am an established .NET developer with lots of development experience behind my name, but I want to take my development skilss and the way that I do things to a next level.
I am working through their design patterns, and I want to use Microsoft's Membership provider. I have used this alot in the past by just coding everything. Is there no better way of using their loggin system with design patterns? If so, please can someone advise??
Regards
ma se
(South Africa)
|
|
|
|
|
Whenever I need a quick refresher on the intricacies of a pattern, I head to Dofactory. While I find their online examples are a bit contrived and a bit limited, their UML diagrams are spot on.
ma se wrote: I am working through their design patterns, and I want to use Microsoft's Membership provider. I have used this alot in the past by just coding everything. Is there no better way of using their loggin system with design patterns?
The Membership Provider is based on a design pattern. It's called the Provider pattern.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks.
Are you very familiar with patterns??
Do you know if there are any sample web apps, besides the Do Factory website, that shows exaples of how patterns are used?
Would you recommend any good reading material with patterns and .NET 2.0?
Cheers.
|
|
|
|
|
ma se wrote: Are you very familiar with patterns??
Well, I've been using them for several years now, so I guess the answer is yes.
ma se wrote: Do you know if there are any sample web apps, besides the Do Factory website, that shows exaples of how patterns are used?
Try this, http://msdn2.microsoft.com/en-us/practices/default.aspx[^]
ma se wrote: Would you recommend any good reading material with patterns and .NET 2.0?
If you want to know patterns, you really should start with the GoF (Gang of Four) book. http://www.amazon.com/Design-Patterns-Object-Oriented-Addison-Wesley-Professional/dp/0201633612[^]. Once you know how they work, there are any number of sources (on-line and in book format) for using patterns along with .NET (primarily in C# it has to be said).
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I use an IMessageTransport to send various B2B messages and receive replies. It has various methods related to various business functions, so e.g. I will pass a DocumentMessage to the SubmitDocument method, or a StatusRequest to the GetDocStatus method. A requirement has arisen to include, lets call it, a SenderID, with each message sent. Now, before I do any refactoring, I need a Guid SenderID param for each IMessageTransport method.
Now, to remove this duplication I could delegate the insertion of the SenderID to the implementors of IMessageTransport, but I may want to allow these to also send messages from other senders. I seem to have two choices: all IMessageTransport methods must be passed an object that derives from MessageBase, which exposes a SenderID property, and populates this from config, or an IMessage interface, with the same property that is populated by a sender dedicated factory class. Which would be the better direction to look in?
|
|
|
|
|
I would definitely go with the Factory pattern. It gives you more flexibility later on, especially if things change further down the line.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Brady Kelly wrote: I need a Guid SenderID param for each IMessageTransport method.
You need a GUID for each method?
led mike
|
|
|
|
|
Yes, but the same one. Until a point, I have separated the sender ID from the business information, as at the interface to our other system there is always only one sender, but I prefer not to fix a single sender ID in my transport. Therefore between the transport layer getting a message to send, and sending it, it must determine a sender ID. At the moment it's passed with the message as a parameter.
|
|
|
|
|
i'm using microsoft visio 2003 to draw class diagrams for my project. I want to generate C# classes for my diagram. I duno how to generate the code? Can anyone help?
Ahmed
|
|
|
|
|
What version of visual studio do you have?
the ony thing i tried once is to design it in 2005 teamsiute.
Cheers
|
|
|
|
|
I am searching for Load Runner , Win Runner Tutorials. can anyone direct me to get this on the web..
Tech_spidy
|
|
|
|