... | ... | @@ -11,6 +11,14 @@ make sure you can implement the tasks from [Lab-12](Lab-12) and [Lab-13](Lab-13) |
|
|
|
|
|
now is the time to ask about those niggling problems or things that just didn't seem to work right.
|
|
|
|
|
|
## tidying / refactoring
|
|
|
|
|
|
once things are working ok, it's time to go back and tidy up!
|
|
|
|
|
|
arrange your code in a sensible directory structure. make use of constants where useful (e.g. db credentials, directory names). try to roll up your code as much as possible in to configuration, templates and functions that you can include through 'require' statements.
|
|
|
|
|
|
this logical approach will make it easier to move to an object oriented approach.
|
|
|
|
|
|
## extension
|
|
|
|
|
|
if you're up to date with those tasks, you can extend the search function with sorting and pagination, as covered in the last lecture.
|
... | ... | |