473,387 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Best approach for web and windows based flavors

Greetings,

I will be developing an application that will have two versions, a web
application to be deployed at the client side and a windows application.

The question is, what would be the best approach for developing these two
versions reusing code as much as possible?. Is there a best practice for this
type of development?

I have read about User Interface Application Block, but I don't know at this
point if that is a good fit.

Any comments, suggestions?

Nov 24 '05 #1
4 1396
Yes there is a best approach fro developing in these kinds of situations.
Use the Model View Controller pattern. This basicly means that you should
keep your data your interface and the logic seperated.

Microsoft has a user interface application block which is probably overkill
but the pdf that is included in this block does explain the thought behind
the code.

It's good reading material.

Bye,
--
Rainier van Slingerlandt
(Freelance trainer/consultant/developer)
www.slingerlandt.com
"David Pinx" wrote:
Greetings,

I will be developing an application that will have two versions, a web
application to be deployed at the client side and a windows application.

The question is, what would be the best approach for developing these two
versions reusing code as much as possible?. Is there a best practice for this
type of development?

I have read about User Interface Application Block, but I don't know at this
point if that is a good fit.

Any comments, suggestions?

Nov 25 '05 #2
Hi David,

Sorry I didn't read your question good enough, you already read the user
interface application block.

Let me think, if you need more information for your application architecture.
You can keep on reading ofcourse there is a good book that explains patterns
If you read it completly you will understand the Model View Controller
pattern also (It's the last pattern in the book). Head first design patterns
(Java book).
And you can ofcourse hire a good consultant to get the project underway, try
Microsoft consultancy services. Let them take a look at your design papers,
this is a verry educational experiance.

Bye,

--
Rainier van Slingerlandt
(Freelance trainer/consultant/developer)
www.slingerlandt.com
"Rainier [MCT]" wrote:
Yes there is a best approach fro developing in these kinds of situations.
Use the Model View Controller pattern. This basicly means that you should
keep your data your interface and the logic seperated.

Microsoft has a user interface application block which is probably overkill
but the pdf that is included in this block does explain the thought behind
the code.

It's good reading material.

Bye,
--
Rainier van Slingerlandt
(Freelance trainer/consultant/developer)
www.slingerlandt.com
"David Pinx" wrote:
Greetings,

I will be developing an application that will have two versions, a web
application to be deployed at the client side and a windows application.

The question is, what would be the best approach for developing these two
versions reusing code as much as possible?. Is there a best practice for this
type of development?

I have read about User Interface Application Block, but I don't know at this
point if that is a good fit.

Any comments, suggestions?

Nov 25 '05 #3
Thanks Rainier,

I'll continue to read those patterns and see whether it seems reasonable to
apply them to my projects.

At first sight it seems the UIP Application Block is a little too complex
and instead of easing things for developing both versions, could end up
introducing more compexity on them. I know it could be better on the long
run, because of maintenance advantages, but, with the time constraint, I
donĀ“t know if there is time for the learning curve associated with its
implementation.

David.

"Rainier [MCT]" wrote:
Hi David,

Sorry I didn't read your question good enough, you already read the user
interface application block.

Let me think, if you need more information for your application architecture.
You can keep on reading ofcourse there is a good book that explains patterns
If you read it completly you will understand the Model View Controller
pattern also (It's the last pattern in the book). Head first design patterns
(Java book).
And you can ofcourse hire a good consultant to get the project underway, try
Microsoft consultancy services. Let them take a look at your design papers,
this is a verry educational experiance.

Bye,

--
Rainier van Slingerlandt
(Freelance trainer/consultant/developer)
www.slingerlandt.com
"Rainier [MCT]" wrote:
Yes there is a best approach fro developing in these kinds of situations.
Use the Model View Controller pattern. This basicly means that you should
keep your data your interface and the logic seperated.

Microsoft has a user interface application block which is probably overkill
but the pdf that is included in this block does explain the thought behind
the code.

It's good reading material.

Bye,
--
Rainier van Slingerlandt
(Freelance trainer/consultant/developer)
www.slingerlandt.com
"David Pinx" wrote:
Greetings,

I will be developing an application that will have two versions, a web
application to be deployed at the client side and a windows application.

The question is, what would be the best approach for developing these two
versions reusing code as much as possible?. Is there a best practice for this
type of development?

I have read about User Interface Application Block, but I don't know at this
point if that is a good fit.

Any comments, suggestions?

Nov 25 '05 #4
We do this very successfully by using Web Services. We have a rich but thin
client that consumes the services, AJAX code that consumes them and gives
you field-at-a-time processing in a browser and ASP.NET pages that
consolidate a pages worth of data and submit it. As a bonus, the .NET
Compact Framework gives us a PDA client which we are using on devices like
the O2 XDA II. The services are quite generic - there are only a few, but
one of the parameters is an XML document which contains a description of the
request (eg <Field name="CustomerAddress" value="123 Some St"/>) and the
response is an XML document which contains the sum of the changes the server
has made based on business rules executed. In fact, as another bonus, its
B2B ready and fits in well with SOA.

Note this is a home-baked solution- we dont use much (any?) of the MS
provided architectural stuff.

Radek

"David Pinx" <Da*******@discussions.microsoft.com> wrote in message
news:56**********************************@microsof t.com...
Greetings,

I will be developing an application that will have two versions, a web
application to be deployed at the client side and a windows application.

The question is, what would be the best approach for developing these two
versions reusing code as much as possible?. Is there a best practice for
this
type of development?

I have read about User Interface Application Block, but I don't know at
this
point if that is a good fit.

Any comments, suggestions?

Nov 25 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Paul | last post by:
Hi. Just trying to find out the best approach as I beleive it might give me problems later on down the road. I have an ASP.NET application which references a shared database class which...
1
by: Andy Britcliffe | last post by:
Hi I'm faced with the situation where I could have a single physical file that could contain multiplie XML documents e.g file.txt contains the following: <?xml version="1.0"...
0
by: Carl | last post by:
Hi, I am trying to figure out the best approach for this simple scenario. I have one C# Windows application Form that consumes few web services for all data related function. In this form...
8
by: Andrew | last post by:
Hi, friends, I am programming a Windows Form app using VC#. I need to have some info shared through the whole app, e.g., login user id/name. I know I can create a classs to hold these info in...
4
by: Greg Linwood | last post by:
I am wondering what the best approach to binding XML data to an asp:Table from the Page_Load event in a code behind module? I'm using VB.Net and initially approached this by adding a table to the...
1
by: milesm | last post by:
I've spent the last 3 hours reading various MSDN articles, other site articles and news group postings and was wondering what the best approach to my situation would be since I'm unable to come up...
0
by: D. Shane Fowlkes | last post by:
OK - I'm looking for the best approach on how to do this. I have a form page where the user can edit their "Profile" (data) which is in SQL Server. It's your basic company information - address,...
2
by: Andrew | last post by:
Hello, friends, I implemented Forms Authentication in my asp.net app, it worked fine. However, now I have another problem: Although a user can be authenticated, but he/she may still not be...
5
by: gw7rib | last post by:
I'm writing a program which has "notes" - these can appear on the screen as windows with text in. It is possible to create an "index note" - at present, this will contain a list of the titles (or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.