• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Sybex 816 Errata on Pages 342 and 677

 
Ranch Hand
Posts: 229
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chapter 6, Page 342, Question 14 - There are 3 packages mentioned: "magic.wand", "magic.portion" and "magic.until". It says to give each module the same name as the package. Therefore, the reference to the module "magic.helper" is incorrect.

Appendix B, Page 677, answer to Chapter 6 question 15 - The sentence "The service provider must have a uses directive, but that is on the service provider interface". This is incorrect as it is the service locator that must have the uses directive. Or maybe the sentence is trying to say that the service provider must have the requires directive on the service provider interface.
 
author & internet detective
Posts: 41250
849
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Edmund Yong wrote:Chapter 6, Page 342, Question 14 - There are 3 packages mentioned: "magic.wand", "magic.portion" and "magic.until". It says to give each module the same name as the package. Therefore, the reference to the module "magic.helper" is incorrect.


Right before that, it says that the magic.helper module contains the magic.util package. The part about giving the module/package the same name applies to the other two which don't have anything specific. While this could certainly be clearer, I don't think it is wrong. I've added a note in our private list of things that could be clearer.
 
Jeanne Boyarsky
author & internet detective
Posts: 41250
849
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Edmund Yong wrote:Appendix B, Page 677, answer to Chapter 6 question 15 - The sentence "The service provider must have a uses directive, but that is on the service provider interface". This is incorrect as it is the service locator that must have the uses directive. Or maybe the sentence is trying to say that the service provider must have the requires directive on the service provider interface.


Agreed and added to errata. Good catch!
 
Jeanne Boyarsky
author & internet detective
Posts: 41250
849
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:

Edmund Yong wrote:Chapter 6, Page 342, Question 14 - There are 3 packages mentioned: "magic.wand", "magic.portion" and "magic.until". It says to give each module the same name as the package. Therefore, the reference to the module "magic.helper" is incorrect.


Right before that, it says that the magic.helper module contains the magic.util package. The part about giving the module/package the same name applies to the other two which don't have anything specific. While this could certainly be clearer, I don't think it is wrong. I've added a note in our private list of things that could be clearer.


Actually, there is an errata there. This post explains the problem with magic.helper and magic.util. It must be magic
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Jeanne,

As a result, what is the correct result of the question. In the explanation, you said that no modules needed to specify requires on the service provider since that is the implementation. But as I understand from the chapter,

"service provider" needs require directive for "service provider interface".



Did I misunderstand something?

Jeanne Boyarsky wrote:

Jeanne Boyarsky wrote:

Edmund Yong wrote:Chapter 6, Page 342, Question 14 - There are 3 packages mentioned: "magic.wand", "magic.portion" and "magic.until". It says to give each module the same name as the package. Therefore, the reference to the module "magic.helper" is incorrect.


Right before that, it says that the magic.helper module contains the magic.util package. The part about giving the module/package the same name applies to the other two which don't have anything specific. While this could certainly be clearer, I don't think it is wrong. I've added a note in our private list of things that could be clearer.


Actually, there is an errata there. This post explains the problem with magic.helper and magic.util. It must be magic

 
Jeanne Boyarsky
author & internet detective
Posts: 41250
849
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hasan Çelik wrote:Dear Jeanne,

As a result, what is the correct result of the question. In the explanation, you said that no modules needed to specify requires on the service provider since that is the implementation.


I think the book answer is right if you apply the errata
Options D, E, and F should say “magic.helper” instead of “magic.util”
 
Hasan Çelik
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So sorry I think we are talking about different question. I hadn't mentioned that question. My question was about the question 15. By the way to recall it, it was;

15. Suppose you have separate modules for a service provider interface, service provider, service locator, and consumer. Which module(s) need to specify a requires directive on the service provider?

  • Service locator
  • Service provider interface
  • Consumer
  • Consumer and service locator
  • Consumer and service provider
  • Service locator and service provider interface
  • Consumer, service locator, and service provider interface
  • None of the above



  • When I looked that the answer of this question, a sentence like that "no modules needed to specify requires on the service provider since that is the implementation" is written. But as I understand from the chapter,

    "service provider" needs require directive for "service provider interface".



    I thought the answer was "Service provider interface" but "none of above" is the correct answer. Did I misunderstand something?

    Jeanne Boyarsky wrote:

    Hasan Çelik wrote:Dear Jeanne,

    As a result, what is the correct result of the question. In the explanation, you said that no modules needed to specify requires on the service provider since that is the implementation.


    I think the book answer is right if you apply the errata
    Options D, E, and F should say “magic.helper” instead of “magic.util”

     
    Jeanne Boyarsky
    author & internet detective
    Posts: 41250
    849
    Eclipse IDE VI Editor Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Hasan Çelik wrote:
    When I looked that the answer of this question, a sentence like that "no modules needed to specify requires on the service provider since that is the implementation" is written. But as I understand from the chapter,

    "service provider" needs require directive for "service provider interface".


    This is true. It's the opposite of the question though. service provider interface doesn't depend on service provider so it isn't the answer here.
     
    Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
    Garden Master Course kickstarter
    https://coderanch.com/t/754577/Garden-Master-kickstarter
    reply
      Bookmark Topic Watch Topic
    • New Topic