Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Reuse of MBOs

2 posts in General Discussion Last posting was on 2012-08-24 16:18:30.0Z
Ricardo Moura Posted on 2012-08-10 15:15:12.0Z
Sender: 7baf.50252089.1804289383@sybase.com
From: Ricardo Moura
Newsgroups: sybase.public.sup.general
Subject: Reuse of MBOs
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <50252580.7c4d.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 10 Aug 2012 08:15:12 -0700
X-Trace: forums-1-dub 1344611712 172.20.134.41 (10 Aug 2012 08:15:12 -0700)
X-Original-Trace: 10 Aug 2012 08:15:12 -0700, 172.20.134.41
Lines: 23
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1070
Article PK: 1087219

Hi Folks,
My company is starting to use SUP. Since the beggining we
have been ask to ourselves if it will be a good idea try to
reuse MBOs among aplications or not. We have read the
document about best practice and we understand that use a
MBO that brings just the informations that will be used in
the screen is the best option. But, for example, in a
situation that I already have a MBO that brings me 3 fields
(int type) of a table and I just need two. Why shouldn't we
reuse that ? Why should we create a new one ?
In a scenario like that, probably the server will have to
worry about keep boths MBOs updated besides to use more disk
space of the database.
I mean. I understood that is a best practice to create a MBO
as close as possible to the screen, but in some situations
it will be better loose a litle of performance in order to
save resources and speed up my development.
How you guys have been working ? Are you reusing MBOs to
different applications ?

Thanks in advance
Regards
Ricardo Moura


Mike R Posted on 2012-08-24 16:18:30.0Z
Sender: 427e.5037a783.1804289383@sybase.com
From: Mike R
Newsgroups: sybase.public.sup.general
Subject: Re: Reuse of MBOs
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <5037a956.42db.1681692777@sybase.com>
References: <50252580.7c4d.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 24 Aug 2012 09:18:30 -0700
X-Trace: forums-1-dub 1345825110 172.20.134.41 (24 Aug 2012 09:18:30 -0700)
X-Original-Trace: 24 Aug 2012 09:18:30 -0700, 172.20.134.41
Lines: 46
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1077
Article PK: 1020151

Ricardo,

I had the same thoughts as you did about reusing MBOs. I
come
from an SAP backgroup and we reuse code/objects etc whenever
we
can ... however ... I took the SUP521 course (excellent by
the
way) and about half way through the course I realized that
although resuing MBOs would be nice, I am not sure that it
is
practical. From my limited experience it seems that the
MBOs
will need to be customized for each app you write. I think
you
would find yourself writing code just to accomodate the MBO
in each instance.

I am new to SUP, but the instructor I had seemed to have a
similar view.

-Mike

> Hi Folks,
> My company is starting to use SUP. Since the beggining we
> have been ask to ourselves if it will be a good idea try
> to reuse MBOs among aplications or not. We have read the
> document about best practice and we understand that use a
> MBO that brings just the informations that will be used in
> the screen is the best option. But, for example, in a
> situation that I already have a MBO that brings me 3
> fields (int type) of a table and I just need two. Why
> shouldn't we reuse that ? Why should we create a new one ?
> In a scenario like that, probably the server will have to
> worry about keep boths MBOs updated besides to use more
> disk space of the database.
> I mean. I understood that is a best practice to create a
> MBO as close as possible to the screen, but in some
> situations it will be better loose a litle of performance
> in order to save resources and speed up my development.
> How you guys have been working ? Are you reusing MBOs to
> different applications ?
>
> Thanks in advance
> Regards
> Ricardo Moura