Cron Job Scheduler For iOS
CronJobScheduleriOS
====================
-
Installation environment:
Xcode 13.0 -
Directory
-
Project
CronJobScheduler.xcodeproj
-
Executable swift file
./CronJobScheduler/main.swift
- How to run
cd ./CronJobScheduler
cat input.txt | swift main.swift 16:10
Description
The task can be run from terminal using the above instruction. All the codes reside in main.swift
file.
If I had the time, I would do the following things:-
- Create mock data and test each of the individual
methods
of classes/structs(ie.InputValidator, InputParser, SimulatedTimeParser, OutputFormatter
etc.). - Add more comments on each core logics to help reviewer understand the code more easily.
- Add more validation and error safety for edge cases or invalid input patterns.