Questions Log   C:\1passion.labs\handson_javaoo\QuestionsLog 2017_04_05 20_45.rtf

Audience Question: 
Q: Hello , How are you ? Are we going to be using design principles and patterns today ?[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 6:53 PM] [A: 6:56 PM] 
A: Yes, some

Q: Yes[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 6:57 PM] 

Q: Yes[HORACE HO] [hho0455@gmail.com] [Q: 6:57 PM] 

Q: All set and ready[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 6:57 PM] 

Audience Question: 
Q: what is moreunit for ?[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 7:15 PM] [A: 7:15 PM] 
A: It helps you to write unit test a bit easier.

Audience Question: 
Q: is this being recorded and will it be posted for later review?[Rob Glasener] [robglasener@me.com] [Q: 7:15 PM] [A: 7:16 PM] 
A: Yes, it is being recorded will be posted to the class website

Q: great[Rob Glasener] [robglasener@me.com] [Q: 7:16 PM] 

Audience Question: 
Q: if you get a chance today please use it and show..[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 7:16 PM] [A: 7:16 PM] 
A: Yes, I plan to show it soon

Audience Question: 
Q: why do we have super in Retiree class ?[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 7:20 PM] [A: 7:20 PM] 
A: You don't have to do indeed.

Audience Question: 
Q: Can you talk to why you hav employee, salaries and hourly Class... some of us need a orientation to OOP to relate to the code..[Mohan Vijaya gopal] [mohan.vijayagopal@aglife.com] [Q: 7:36 PM] [A: 7:39 PM] 
A: forwarding...

Audience Question: 
Q: Can please repeat, if it's composition how we would have implemented this?[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 7:40 PM] [A: 7:40 PM] 
A: The rest of the code will use composition.  So you will see plenty of examples.

Q: yes that will be great.[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 7:41 PM] 

Audience Question: 
Q: I think here we use inheritance because HourlyEmplee or SalariedEmployee are two (specific) kinds of employee. We can speak about the "IS A" relationship.[Akil  Elkamel ] [akil.elkamel@gmail.com] [Q: 7:42 PM] [A: 7:43 PM] 
A: Correct. By inheritance, I meant the logic of computing monthly payment.  That could be implemented via composition.

Audience Question: 
Q: are there any plans of having codecamp for developing UI dashboards etc.. with Javascript or any language?[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 7:43 PM] [A: 7:44 PM] 
A: Angular 2 with Bootstrap will be the closest thing you are looking for.

Audience Question: 
Q: Are you planning for Angular 2 with Bootstrap anytime soon ?[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 7:45 PM] [A: 8:03 PM] 
A: Not anytime soon.

Audience Question: 
Q: the refactoring done can be replaced by a simple if statement in the for loop in te computeTotalPaymentAmount method. in this if statement we can use the instanceOf operator to distinguish between the real object type. in this case if the object is of type A we call method x else if it's of type B we call a different method y?? is it correct?[Akil  Elkamel ] [akil.elkamel@gmail.com] [Q: 8:06 PM] [A: 8:10 PM] 
A: I am glad you asked.  What you described above is NOT using OO programming technique.  It is very procedural.  The problem of procedural code is when you need to change in the future.  You have to change existing code to add another Employee type for example,which violates the Open Close principe.  OO programming all about change'ability.

Q: Yes yes right!![Akil  Elkamel ] [akil.elkamel@gmail.com] [Q: 8:11 PM] 

Audience Question: 
Q: it breaks open close principle[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 8:11 PM] [A: 8:12 PM] 
A: Indeed

Audience Question: 
Q: meanwhile, are you aware of any online documentation to work on Bootstap, I think angular js2 there are few lessons posted.[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 8:09 PM] [A: 8:12 PM] 
A: If you google, there are a few.. I have not added Bootstrap part to the Angular 2 course yet.

Audience Question: 
Q: How to get recorded access of this session[Gauravjeet Chhabra] [gpchhabra1430@gmail.com] [Q: 8:14 PM] [A: 8:14 PM] 
A: You just log in to the Jpassion.com with paying membership.

Q: yes[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 8:14 PM] 

Q: employee[Akil  Elkamel ] [akil.elkamel@gmail.com] [Q: 8:16 PM] 

Audience Question: 
Q: What are the pre-requisities for Saturday codecamp ?[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 8:26 PM] [A: 8:26 PM] 
A: There is really no pre-requisite.

Q: code duplicaiton[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 8:38 PM] 

Audience Question: 
Q: We can move it to a new class using SRP[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 8:38 PM] [A: 8:39 PM] 
A: forwarding..

Audience Question: 
Q: Now that we have extracted the method into a new class "PensionManager", what if the contribution differs on the Employee type, lets say there is a requirement that the Company matches the employee contibution for Retiree and contribute 50% for Salaried Employee.. now the logic in the Pension manager depends on the employee type.. how are we going to avoid if logic in the method in Pension Manager..[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 8:44 PM] [A: 8:45 PM] 
A: forwarding...

Q: oh ok thanks..[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 8:46 PM] 

Q: protrctrd[Akil  Elkamel ] [akil.elkamel@gmail.com] [Q: 8:59 PM] 

Audience Question: 
Q: your test case shows hourly employee instead of salaried emplyee for 100000[John Darby] [jtdarby9738@gmail.com] [Q: 8:55 PM] [A: 9:02 PM] 
A: OK.

Audience Question: 
Q: I am assuming you didnt add pension manager in Employee class similar to Insurance Manager as it is not applicable to all employee type ?[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 8:56 PM] [A: 9:03 PM] 
A: forwarding...

Q: Yes it does Thanks.[Vikram Srinivasan Venkatakrishnan] [vvikramsri@gmail.com] [Q: 9:03 PM]