SOFTWARE DEVELOPMENT
SOFTWARE DEVELOPMENT
C++ Task Manager
A command-line task management application designed to organize tasks, manage deadlines, and display task information through a structured terminal interface.
Project Overview
This project involves developing a command-line task management application using modern C++. The application allows users to create tasks with customizable names, descriptions, and due dates while providing a structured interface for viewing and organizing task information.
The objective is to strengthen my understanding of object-oriented programming, software architecture, data management, and user input handling by developing a functional application from scratch.
Task Class
Encapsulates individual task information, including its name, description, creation date, due date, and completion status. It also provides methods for modifying task attributes, checking deadlines, and formatting task information.
TaskManager Class
Manages task collections, user interaction, menu navigation, task creation, and formatted task display.
Main Program
Initializes the TaskManager object and maintains the application's execution loop until the user chooses to exit.
Implementation
The application uses STL vectors to dynamically store task objects without requiring a predetermined collection size. Encapsulation is maintained through private class attributes and public methods that provide controlled access to task information.
The C++20 `std::chrono` library is used to represent calendar dates, retrieve the current local date, and support overdue task detection.
A custom stream insertion operator formats task information into readable tables. A text-wrapping algorithm handles lengthy descriptions and splits oversized words through hyphenation to maintain consistent description column widths.
Input validation is implemented using conditional checks, `std::optional`, and exception handling to reject invalid dates and task selections and improve application robustness.
Demonstrations
Challenges & Takeaways
One of the main challenges was designing a readable terminal interface while handling descriptions of varying lengths. This required developing a custom text-wrapping algorithm and coordinating it with formatted stream output.
Another challenge was managing calendar dates and user input while maintaining separation between task data and application logic.
This project has strengthened my understanding of encapsulation, modular software design, STL containers, modern C++ features, and defensive programming.
Future Development
Complete the interactive task-editing interface.
Implement automatic task categorization based on deadlines and completion status.
Add task deletion functionality.
Implement persistent file storage and task-list loading.