• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Has anyone passed with coockie-requirments and 3-tier design chosen?

 
Aleh Barysevich
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
After reading "The Big Thread" on this forum, I feel myself a bit confused.
I beleive it is better(more reasonable) to have 3-tier architecture, but at the same time I've got coockies in my instructions
---
public long lock(int recNo) throws RecordNotFoundException;
public void unlock(int recNo, long cookie) throws RecordNotFoundException, SecurityException;
---
I'd like to know if there anyone who has already passed with coockie-requirments and 3-tier architecture. If there are some people, I'd definitely join to the 3-tire side of this forum (I hope I'll be able to protect this choice in my choices.txt ).
Thank you and I appreciate any feedback,
Aleh
[ December 06, 2003: Message edited by: Aleh Barysevich ]
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aleh,
Welcome to this forum.
After reading "The Big Thread" on this forum, I feel myself a bit confused.

I may understand that.
I beleive it is better(more reasonable) to have 3-tier architecture

You guess that I'll agree with you.
but at the same time I've got coockies in my instructions.

You have one of the new instruction sets, so you may choose between both designs. The oldest assignment (FBN) had to implement a 2-tiers one (it was explicitely required).
The fact that your locking scheme uses cookies has no influence on that choice IMO. BTW, I got cookies too (URLyBird 1.2.1).
This guy passed with a 3-tiers design, with a maximum score for locking and data access.
There is nothing which may let us guess if he had cookies or not, but it's a new assignment, so comparable to yours in that area.
I hope I'll be able to protect this choice in my choices.txt

Mmh... "The Big Thread" you mention should give you enough arguments !
Best,
Phil.
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aleh,
I forgot Ken who is a 3-tierer too and passed with a high score !
Here is a discussion on his design.
Best,
Phil.
 
Ken Krebs
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aleh,
Having this cookie specified in your data interface, as opposed to simply binding to the current thread, forces your hand a little bit in your Data implementation but I still see no need to expose this implementation detail to the client. I would still hide its use in my adapter class on the server side.
 
Aleh Barysevich
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Phil, Ken, thanx for your answers!
Your post encourage me to provide a 3-tier solution, but... As Andrew said in "The Big Thread"
The cookie only makes sense if the client has to receive it and work with it.

And I must admit this phrase really makes sense... For now I'll be creating a 3-tier solution, but I'm still a bit afraid about it and I can change my mind any time
Tank you,
Aleh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic