Think about this (partial) module here --- most of the work in here
Strategy is an interface type that's being used in the Provider class.
The Provider class has:
A private field named strategy that is of type Strategy (interface)
A constructor that takes a Strategy parameter to initialize this field
A setter method that allows changing the strategy field after the object is created
This implementation follows the Strategy design pattern, where:
Provider is the context class that uses a strategy
Strategy is the interface that defines the contract for all concrete strategy implementations
--- The concrete strategy classes would implement the Strategy interface
// add the class up here
private Strategy strategy;
public Provider(Strategy strategy) {
this.strategy = strategy;
}
public void setStrategy(Strategy strategy) {
this.strategy = strategy;
}
}
https://hexometer.com/http-status-codes/
Read about error no. 999: "Status code 999 - a non-standard code is returned by some sites (e.g. LinkedIn) which do not permit scanning."
Doesn't it mean that creating such a program is basically blocked by LinkedIn itself?
Well... that was a mess. The instructions were actually wrong in multiple places and the validator was all over the place. No wonder only 24 people completed this. It was actually a pretty cool task to implement, but it was way more painful than it needed to be. If anyone needs help on this one you can message me. or message me the link to your question in the help section.
If you are not acquainted with html I recommend you this course you will need it.
In tasks 8 and 16 just add a break before going to the next page since the codegym cache web only have one page.
Happy coding :)
Validation is a little bit dumb. For Linkedin strategy, remove duplicate job postings. But don't remove duplication for Indeed strategy
Indeed strategy: private static final ... URL_FORMAT will not pass validation. use "static private final ..."
GO TO FULL VERSION