• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

About the application protocol

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers!

I'm new on JavaRanch, and I'm making the URLyBird assignment. The database is already done. And, I have some questions about the protocol of my application.
In my assignment, it was wrote that I have to serialize objects over connection. And, I thought Interpreter and/or Command patterns turn my application very extensible. Because of, I could put more commands or statements easily. However, the complexity will improve. I'd like to know if this sounds strange to other ranchers.

And sorry for any English mistake ....

Leandro
 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not really, we do it all the time. Do not worry on the style of North American English, we have big discussions about that in Meaningless Drivel and it is mostly the code and your question we are interested in.

To answer your question, an extensible project is generally a useable project. To make that decision involves no more than thinking about what the project is supposed to do and where it is supposed to run. For a first design I would choose an extensible design. Probably look in OO/UML and Refactoring forum for further or deeper questions.
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Leandro,

Another way of looking at it is that your Interpreter class may be a little more complex, but your other classes will become much less complex as a result. You could easily justify such a design in your documentation.

(And don't worry about your use of English - it is easily understandable).

Regards, Andrew
 
Leandro Cerencio
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the replies.

I will think more about how I design the protocol.

regards
Leandro
 
You didn't tell me he was so big. Unlike this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic