You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logDebug(`Execution time for listing tasks: ${(endTime-startTime)/1000} seconds`);
111
+
}
112
+
}
113
+
114
+
constmanager=newTaskManager();
115
+
manager.addTask("Implement User Authentication","Develop a user authentication system that allows users to register, log in, and log out securely.");
116
+
manager.addTask("Fix Bug in Feature Resize window","Fix Bug in Feature Resize window");
117
+
manager.addTask("Write Unit Tests","Write Unit Tests - Create tests for the user authentication module using Jest.");
118
+
manager.addTask("Refactor Code for Module Lang_translation","Refactor Code for Module Lang_translation - Simplify the logic and remove redundant code.");
119
+
manager.addTask("Deploy Application to Production","Deploy Application to Production - Set up CI/CD pipeline and deploy the latest build.");
120
+
manager.listTasks();
121
+
manager.removeTask("Implement User Authentication");
122
+
manager.editTask("Fix Bug in Feature Resize window","Fix Bug in Feature Resize window - Resolve the issue causing the application to crash on submission.");
123
+
manager.listTasks();
124
+
125
+
/* Output: DEBUG: This is a debug message.
126
+
INFO: This is an informational message.
127
+
WARNING: This is a warning message.
128
+
ERROR: This is an error message.
129
+
CRITICAL: This is a critical message.
130
+
INFO: Task added: Implement User Authentication - Develop a user authentication system that allows users to register, log in, and log out securely.
131
+
DEBUG: Execution time for adding task: 0 seconds
132
+
INFO: Task added: Fix Bug in Feature Resize window - Fix Bug in Feature Resize window
133
+
DEBUG: Execution time for adding task: 0 seconds
134
+
INFO: Task added: Write Unit Tests - Write Unit Tests - Create tests for the user authentication module using Jest.
135
+
DEBUG: Execution time for adding task: 0 seconds
136
+
INFO: Task added: Refactor Code for Module Lang_translation - Refactor Code for Module Lang_translation - Simplify the logic and remove redundant code.
137
+
DEBUG: Execution time for adding task: 0.001 seconds
138
+
INFO: Task added: Deploy Application to Production - Deploy Application to Production - Set up CI/CD pipeline and deploy the latest build.
139
+
DEBUG: Execution time for adding task: 0.001 seconds
140
+
INFO: Task list:
141
+
INFO: - Implement User Authentication: Develop a user authentication system that allows users to register, log in, and log out securely.
142
+
INFO: - Fix Bug in Feature Resize window: Fix Bug in Feature Resize window
143
+
INFO: - Write Unit Tests: Write Unit Tests - Create tests for the user authentication module using Jest.
144
+
INFO: - Refactor Code for Module Lang_translation: Refactor Code for Module Lang_translation - Simplify the logic and remove redundant code.
145
+
INFO: - Deploy Application to Production: Deploy Application to Production - Set up CI/CD pipeline and deploy the latest build.
146
+
DEBUG: Execution time for listing tasks: 0.006 seconds
147
+
INFO: Task removed: Implement User Authentication
148
+
DEBUG: Execution time for removing task: 0 seconds
149
+
INFO: Task edited: Fix Bug in Feature Resize window - New Description: Fix Bug in Feature Resize window - Resolve the issue causing the application to crash on submission.
150
+
DEBUG: Execution time for editing task: 0.004 seconds
151
+
INFO: Task list:
152
+
INFO: - Fix Bug in Feature Resize window: Fix Bug in Feature Resize window - Resolve the issue causing the application to crash on submission.
153
+
INFO: - Write Unit Tests: Write Unit Tests - Create tests for the user authentication module using Jest.
154
+
INFO: - Refactor Code for Module Lang_translation: Refactor Code for Module Lang_translation - Simplify the logic and remove redundant code.
155
+
INFO: - Deploy Application to Production: Deploy Application to Production - Set up CI/CD pipeline and deploy the latest build.
156
+
DEBUG: Execution time for listing tasks: 0.005 seconds */
157
+
158
+
159
+
/*Info Note:
160
+
Continuous Integration is a development practice where developers frequently integrate their code changes into a shared repository, usually several times a day.
161
+
Each integration is automatically tested to detect errors quickly. This helps ensure that the codebase remains stable and that new changes do not break existing functionality.
162
+
Tools commonly used for CI include Jenkins, Travis CI, CircleCI, GitHub Actions, and GitLab CI.
163
+
CD (Continuous Delivery or Continuous Deployment):
164
+
165
+
Continuous Delivery is an extension of CI that ensures that the code is always in a deployable state. This means that after passing automated tests, the code can be deployed to production at any time.
166
+
Continuous Deployment takes it a step further by automatically deploying every change that passes the tests to production without manual intervention.
167
+
This practice allows for faster release cycles and more frequent updates to the application. */
0 commit comments