• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Entity Naming convention - Part 2

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends

As per one of the use case in the assignment, user post requests for parts for bidding by suppliers. Is it ok to call it as PartRequest or should it be called BidRequest. The provided domain model calls it "Request" which is a very generic.
 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While naming entities or generic java classes..it is typically better to relate the names to reflect real world concepts (of course this isn't always true)

So, something like PartRequest would make sense..if it is a request for parts..
BidRequest..is misleading..because it seems like a request for a bid..but what you actually want to do is 'Bid'..

You are right...'request is way too generic'

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rahul Mishra wrote:While naming entities or generic java classes..it is typically better to relate the names to reflect real world concepts (of course this isn't always true)

So, something like PartRequest would make sense..if it is a request for parts..
BidRequest..is misleading..because it seems like a request for a bid..but what you actually want to do is 'Bid'..

You are right...'request is way too generic'



PartRequest will be used for only part requests. So should we go ahead and use 'Request' so that there could be enough room to accomodate items other than Parts in future?
I agree there are only part example mentioned in the BDM, should our design be generic enough so as to accomodate few requirements out of BDM?
 
reply
    Bookmark Topic Watch Topic
  • New Topic