how can i tell...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

being kinda new with .net, how can i tell if i'm writing logic in my ui
that's suppose to be in the lower levels (business, data layers)? i know
about the ui process app block however, it's not clicking yet.

Anyone have some simple advice out there so i can catch myself doing this?

thanks,
ari
 
I am not a strict adherent, but if you have logic in your form then yes it
needs to be in a different layer.


button_click
'no logic here

dim c as controller=new controller
c.handle buttonclick...
 
The idea behind business objects is to abstract your problem domain from your
user interface. Problem domain is a fancy word that is used to describe what
your application is really trying to do. The best way to avoid mixing your
form code and your business objects is to design you business objects first.
Define all business objects that will support all the requirements of your
problem domain before even writing one line of code in a form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top