This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PerformanceReview | |
{ | |
private readonly Employee _employee; | |
public PerformanceReview(Employee employee) | |
{ | |
_employee = employee; | |
} | |
public PerfReviewData PerfReview() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PerformanceReview | |
{ | |
private readonly Employee _employee; | |
public PerformanceReview(Employee employee) | |
{ | |
_employee = employee; | |
} | |
private IEnumerable<PeersData> LookupPeers() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Car | |
{ | |
public void Maintenance10k () { | |
BaseMaintenance() | |
} | |
public void Maintenance30k () { | |
BaseMaintenance() | |
CheckSpareWheel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Car | |
{ | |
public void Maintenance10k () { | |
CheckBreakFluid(); | |
CheckBatteryTerminals(); | |
CheckEngineOil(); | |
} | |
public void Maintenance30k () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Basket | |
{ | |
private List<Products> products; | |
public AddProduct(product) | |
{ | |
if (products.Length > 3) { | |
throw new Exception("Max 3 products allowed"); | |
} | |
products.Add(product) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bind,apply,call | |
function foo(a,b){ | |
console.log(arguments); | |
console.log('below is apply call') | |
boo.apply(null,arguments); | |
console.log('below is apply call') | |
boo.apply(null,[a,b]); |