Question

Apparently, Hadoop framework developers decided to return boolean rather than throwing an Exception. If you were...

Apparently, Hadoop framework developers decided to return boolean rather than throwing an Exception. If you were the lead developer, would you have taken the same approach? Why? Why Not?

Homework Answers

Answer #1

If I were the lead developer – I would definitely not return some value like bool, but I would throw an exception.

This is because, when some error like IO operation occurs - the function or the code should stop the execution and throw a message (error) explaining what the developer missed to taken into precaution.

Not all functions/codes are excepted to return values - they would just go no to do some steps and stop. If in this case if the function return a 0 in case of error; this would not be caught in the code as it did not stop - the code would blindly go to next stop and the developer would not know until something undesired happened.

Hence, it is always good to throw and error, so the developer may use TRYCATCH code to suppress the error or go properly to rectify the error'ed code, this is a better error handling approach.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
If you are seeking to have a new company in Oman rather than Nokia  what would it...
If you are seeking to have a new company in Oman rather than Nokia  what would it be? and Why? what type of leadership are you going to take into account is it a transformational leader or situational leader? justify your answer.
You created a standard curve using chlorophyll a from spirulina rather than leaf extract since it...
You created a standard curve using chlorophyll a from spirulina rather than leaf extract since it doesn’t contain chlorophyll b, yet were later told chlorophyll b doesn’t fluoresce. What might have happened if you made a standard curve using crudely-purified chlorophyll a from leaf extract? How would it have affected your results and why?
Two medical Technologists at JRU Medical Center(JRUMC) have decided to work part-time rather than full-time. They...
Two medical Technologists at JRU Medical Center(JRUMC) have decided to work part-time rather than full-time. They would like to work only two consecutive days per week. Because they would be part-time employees, salary and benefits per medical technologist-day for these medical technologists would be removed. JRU Medical Center(JRUMC)could hire an additional full-time medical technologist if needed. Should JRUMC agree for this request? If the satellite diagnostic clinic does agree, will additional medical technologist need to be hired? Assuming that part-time...
Why would you predict that zoonotic viruses are almost always RNA rather than DNA viruses? (SELECT...
Why would you predict that zoonotic viruses are almost always RNA rather than DNA viruses? (SELECT ALL THAT APPLY--MORE THAN ONE CORRECT ANSWER POSSIBLE) A. Like cellular life, viruses face limitations imposed by having to re-purposes existing traits when entering a new environment. B. RNA viruses generally have higher mutation rates than DNA viruses. C. Because mutational changes in a genome may create the variation required for adaptation to a new environment. D. Viruses face the same difficulties that cellular...
3.If you were given a role to be a manager or a leader of a company...
3.If you were given a role to be a manager or a leader of a company how would you classify them? 4.If you are seeking to have a new company in Oman rather than Nokia  what would be? Why? what type of leadership are you going to take into account is it a transformational leader or situational leader? justify your answer.
1. If you were able to put together a portfolio that completely eliminated all risk, what return would you expect to earn and why?
1. If you were able to put together a portfolio that completely eliminated all risk, what return would you expect to earn and why?This question is a real eye opener, in that with great risk can come great reward. The asset classes I can think of to present to me a zero-risk situation in the portfolio would be the following: Savings account, CD certificate, bonds, treasuries, and ponds. I expect to get minimal and low return on investment. Obviously the...
Maria Gutierrez and Devin Duzan recently graduated from the same university. After graduation they decided not...
Maria Gutierrez and Devin Duzan recently graduated from the same university. After graduation they decided not to seek jobs at established organizations but, rather, to start their own small business hoping they could have more flexibility in their personal lives for a few years. Maria’s family has operated Mexican restaurants and taco trucks for the past two generations, and Maria noticed there were no taco truck services in the town where their university was located. To reduce the amount they...
A few months ago, the upper management at a large corporation decided they wanted to make...
A few months ago, the upper management at a large corporation decided they wanted to make major changes in the organization. Leadership is concerned that employees may be resistant to the change, and they want to find out if there is a change management method that would help employees accept change more effectively and keep employee satisfaction high. Two methods they have considered are the ADKAR Framework and the Prosci Change Management Methodology. The company wants to implement a small...
WHAT HAPPENS WHEN YOU BARTER WITH STOCK? Does It Matter Whether It’s Treasury Stock or Newly...
WHAT HAPPENS WHEN YOU BARTER WITH STOCK? Does It Matter Whether It’s Treasury Stock or Newly Issued Stock? Clyde:              I acquired this land for my business by issuing stock. I did not pay a penny. Since it’s my stock, and I decided how much to give up for the land, does that mean I get to determine the value of the land on my balance sheet? Fredrika:         You could have issued the stock to somebody else, taken the cash received,...
**[70 pts]** You will be writing a (rather primitive) online store simulator. It will have these...
**[70 pts]** You will be writing a (rather primitive) online store simulator. It will have these classes: Product, Customer, and Store. All data members of each class should be marked as **private** (a leading underscore in the name). Since they're private, if you need to access them from outside the class, you should do so via get or set methods. Any get or set methods should be named per the usual convention ("get_" or "set_" followed by the name of...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT
Active Questions
  • consider that you have dropped a 300g rubber ball on the floor from a height of...
    asked 7 minutes ago
  • Most sample surveys call residential telephone numbers at random. They do not, however, always ask their...
    asked 17 minutes ago
  • Identify an industry that enjoys perfect (or nearly perfect) competition. How do the competitors interact with...
    asked 17 minutes ago
  • Given that -9i is a zero, factor the following polynomial function completely. Use the Conjugate Roots...
    asked 22 minutes ago
  • The Relationship Between State Agencies and Nonprofit Organizations Introduction The relationship between government agencies and nonprofit...
    asked 22 minutes ago
  • Problem Description Many recipes tend to be rather small, producing the fewest number of servings that...
    asked 25 minutes ago
  • Given the following grammar and the right sentential form, draw a parse tree and then specify...
    asked 30 minutes ago
  • IN JAVA Write a program that, given an integer, inserts a '*' between adjacent digits that...
    asked 44 minutes ago
  • Two shuffleboard disks of equal mass, one orange and the other yellow, are involved in an...
    asked 53 minutes ago
  • The Barnett Corporation is analyzing the proposed purchase of a new machine for $2,750,000. The proposed...
    asked 1 hour ago
  • Write a Python program that does the following: Creates a list with the values 2,4,6,8,10 Gets...
    asked 1 hour ago
  • Perform a sensitivity analysis on the probability of a great market. To do this, enter formulas...
    asked 1 hour ago