GithubHelp home page GithubHelp logo

ip's Introduction

Skyler Feature Enhancement

Changes Made

  1. Implemented new features and improvements for Skyler.
  2. Enhanced user experience with text-based interactions.
  3. Added functionality to manage tasks efficiently.

Features Added

  • Managing tasks with Skyler is now text-based and easy to learn.
  • Skyler is FAST, SUPER FAST to use.
  • Download Skyler here.
  • Double-click the downloaded file to launch Skyler.
  • Add your tasks and let Skyler manage them for you ๐Ÿ˜‰.
  • Skyler is FREE!

Features

[x] Managing tasks. [x] Managing deadlines. [ ] Reminders.

skyler is the name of a very cutie doge

For Java Programmers

If you are a Java programmer, you can use Skyler to practice Java too. Here's the main method:

public class Main extends Application {

    private Skyler skyler = new Skyler();

    @Override
    public void start(Stage stage) {
        try {
            FXMLLoader fxmlLoader = new FXMLLoader(Main.class.getResource("/view/MainWindow.fxml"));
            AnchorPane ap = fxmlLoader.load();
            Scene scene = new Scene(ap);
            stage.setScene(scene);
            fxmlLoader.<MainWindow>getController().setSkyler(skyler);
            stage.setTitle("Skyler");
            stage.show();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

ip's People

Contributors

eunrcn avatar j-lum avatar damithc avatar seanleong339 avatar jiachen247 avatar eclipse-dominator avatar

Forkers

slinkiedinky

ip's Issues

Sharing iP code quality feedback [for @eunrcn] - Round 2

@eunrcn We did an automated analysis of your code to detect potential areas to improve the code quality. We are sharing the results below, so that you can avoid similar problems in your tP code (which will be graded more strictly for code quality).

IMPORTANT: Note that the script looked for just a few easy-to-detect problems only, and at-most three example are given i.e., there can be other areas/places to improve.

Aspect: Tab Usage

No easy-to-detect issues ๐Ÿ‘

Aspect: Naming boolean variables/methods

No easy-to-detect issues ๐Ÿ‘

Aspect: Brace Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Package Name Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Class Name Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Dead Code

No easy-to-detect issues ๐Ÿ‘

Aspect: Method Length

Example from src/main/java/skyler/main/Parser.java lines 20-66:

    public static String processUserInput(String userInput) throws SkylerException {
        String result = "";

        if (userInput.equals("list")) {
            result = TaskList.listTasks();
        } else if (userInput.startsWith("todo")) {
            result = TaskList.addTask(new ToDo(getTaskDescription(userInput, 4), false));
        } else if (userInput.startsWith("deadline")) {
            String[] parts = userInput.split("/by", 2);

            if (parts.length != 2 || parts[0].trim().isEmpty() || parts[1].trim().isEmpty()) {
                throw new SkylerException(
                        "Invalid 'deadline' command. Please provide a valid description and deadline.");
            }

            String description = parts[0].substring(9).trim();
            String by = parts[1].trim();
            LocalDate byDate = LocalDate.parse(by, DateTimeFormatter.ofPattern("yyyy-MM-dd"));
            result = TaskList.addTask(new Deadline(description, byDate, false));
        } else if (userInput.startsWith("event")) {
            String[] parts = userInput.split("/from", 2);

            if (parts.length != 2 || parts[0].trim().isEmpty() || parts[1].trim().isEmpty()) {
                throw new SkylerException("Invalid 'event' command. Please provide a valid description and timeframe.");
            }

            String description = parts[0].substring(6).trim();
            String from = parts[1].split("/to")[0].trim();
            String to = parts[1].split("/to")[1].trim();
            LocalDate fromDate = LocalDate.parse(from, DateTimeFormatter.ofPattern("yyyy-MM-dd"));
            LocalDate toDate = LocalDate.parse(to, DateTimeFormatter.ofPattern("yyyy-MM-dd"));
            result = TaskList.addTask(new Event(description, fromDate, toDate, false));
        } else if (userInput.startsWith("delete")) {
            result = TaskList.deleteTask(userInput);
        } else if (userInput.startsWith("undo")) {
            result = TaskList.undoTask();
        } else if (userInput.startsWith("mark")) {
            result = TaskList.markTask(userInput);
        } else if (userInput.startsWith("unmark")) {
            result = TaskList.unmarkTask(userInput);
        } else if (userInput.startsWith("find")) {
            result = TaskList.findTasks(userInput.substring(5).trim());
        } else if (userInput.startsWith("view")) {
            result = TaskList.viewTasksOnDate(userInput);
        } else if (userInput.startsWith("help")) {
            result = TaskList.help();
    }else {

Example from src/main/java/skyler/main/TaskList.java lines 226-297:

    public static String help() {
        StringBuilder guide = new StringBuilder("# Skyler TaskList User Guide\n\n");
        guide.append("Welcome to Skyler, your personal task management chatbot!\n\n");

        // 1. Adding Tasks
        guide.append("## 1. Adding Tasks\n");
        guide.append("To add a new task, use one of the following commands:\n\n");
        guide.append("```\n");
        guide.append("todo Buy groceries\n");
        guide.append("deadline Submit report /by 2024-02-29\n");
        guide.append("event Team meeting /from 2024-03-01 /to 2024-03-01\n");
        guide.append("```\n");
        guide.append("Skyler will confirm the addition and update you on the total number of tasks in your list.\n\n");

        // 2. Listing Tasks
        guide.append("## 2. Listing Tasks\n");
        guide.append("To view all tasks in your list, use the following command:\n\n");
        guide.append("```\n");
        guide.append("list\n");
        guide.append("```\n");
        guide.append("Skyler will provide a numbered list of all your tasks.\n\n");

        // 3. Deleting Tasks
        guide.append("## 3. Deleting Tasks\n");
        guide.append("You can delete a task by specifying its number in the list. For example:\n\n");
        guide.append("```\n");
        guide.append("delete 2\n");
        guide.append("```\n");
        guide.append("This will remove the task at position 2 in your list. Skyler will confirm the deletion and update you on the total number of tasks remaining.\n\n");

        // 4. Undoing Tasks
        guide.append("## 4. Undoing Tasks\n");
        guide.append("Undo the last add operation with the following command:\n\n");
        guide.append("```\n");
        guide.append("undo\n");
        guide.append("```\n");
        guide.append("Skyler will confirm the undone operation and update you on the current state of your task list.\n\n");

        // 5. Marking Tasks as Done
        guide.append("## 5. Marking Tasks as Done\n");
        guide.append("To mark a task as done, use the following command:\n\n");
        guide.append("```\n");
        guide.append("mark 3\n");
        guide.append("```\n");
        guide.append("This will mark the task at position 3 as done. Skyler will confirm the action.\n\n");

        // 6. Marking Tasks as Not Done
        guide.append("## 6. Marking Tasks as Not Done\n");
        guide.append("To mark a task as not done (undoing a previous mark), use the following command:\n\n");
        guide.append("```\n");
        guide.append("unmark 3\n");
        guide.append("```\n");
        guide.append("This will unmark the task at position 3. Skyler will confirm the action.\n\n");

        // 7. Finding Tasks
        guide.append("## 7. Finding Tasks\n");
        guide.append("You can search for tasks containing a specific keyword:\n\n");
        guide.append("```\n");
        guide.append("find groceries\n");
        guide.append("```\n");
        guide.append("Skyler will provide a list of tasks that match the keyword.\n\n");

        // 8. Viewing Tasks on a Specific Date
        guide.append("## 8. Viewing Tasks on a Specific Date\n");
        guide.append("To view tasks scheduled for a particular date, use the following command:\n\n");
        guide.append("```\n");
        guide.append("view 2024-02-29\n");
        guide.append("```\n");
        guide.append("Skyler will display tasks with deadlines or events on the specified date.\n\n");

        return guide.toString();
    }

Suggestion: Consider applying SLAP (and other abstraction mechanisms) to shorten methods e.g., extract some code blocks into separate methods. You may ignore this suggestion if you think a longer method is justified in a particular case.

Aspect: Class size

No easy-to-detect issues ๐Ÿ‘

Aspect: Header Comments

No easy-to-detect issues ๐Ÿ‘

Aspect: Recent Git Commit Message

possible problems in commit 60a579a:


Final


  • Perhaps too short (?)

possible problems in commit f15a437:


trying


  • Not in imperative mood (?)
  • Perhaps too short (?)

possible problems in commit 1e67fae:


Fixed Exceptions


  • Not in imperative mood (?)

Suggestion: Follow the given conventions for Git commit messages for future commits (do not modify past commit messages as doing so will change the commit timestamp that we used to detect your commit timings).

Aspect: Binary files in repo

No easy-to-detect issues ๐Ÿ‘


โ— You are not required to (but you are welcome to) fix the above problems in your iP, unless you have been separately asked to resubmit the iP due to code quality issues.

โ„น๏ธ The bot account used to post this issue is un-manned. Do not reply to this post (as those replies will not be read). Instead, contact [email protected] if you want to follow up on this post.

Sharing iP code quality feedback [for @eunrcn]

@eunrcn We did an automated analysis of your code to detect potential areas to improve the code quality. We are sharing the results below, to help you improve the iP code further.

IMPORTANT: Note that the script looked for just a few easy-to-detect problems only, and at-most three example are given i.e., there can be other areas/places to improve.

Aspect: Tab Usage

No easy-to-detect issues ๐Ÿ‘

Aspect: Naming boolean variables/methods

No easy-to-detect issues ๐Ÿ‘

Aspect: Brace Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Package Name Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Class Name Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Dead Code

No easy-to-detect issues ๐Ÿ‘

Aspect: Method Length

No easy-to-detect issues ๐Ÿ‘

Aspect: Class size

No easy-to-detect issues ๐Ÿ‘

Aspect: Header Comments

No easy-to-detect issues ๐Ÿ‘

Aspect: Recent Git Commit Message

possible problems in commit 49b27ed:


{Current Situation}
The parseTaskFromFile method does not include assertions to check for a non-null data parameter.

{Why It Needs to Change}
To enhance code robustness and catch potential issues early, it is crucial to ensure that method parameters are not null, especially in critical parsing operations.

{What Is Being Done About It}
Assertions have been added to the parseTaskFromFile method to verify that the data parameter is not null before proceeding with task parsing.

{Why It Is Done That Way}
By employing assertions, we establish a defensive measure during development, preventing potential null pointer issues in the parseTaskFromFile method. This ensures a more robust and reliable parsing process.

{Any Other Relevant Info}
Assertions contribute to code quality by expressing and validating assumptions, providing a clear mechanism for documenting and enforcing critical conditions in the code. Remember to enable assertions during development for them to take effect.


  • No blank line between subject and body
  • body not wrapped at 72 characters: e.g., The parseTaskFromFile method does not include assertions to check for a non-null data parameter.

possible problems in commit bcfc228:


Implement Level 10: GUI

Integrate JavaFX technology to create a graphical user interface for the chatbot. Following the SE-EDU/guides JavaFX tutorial


  • body not wrapped at 72 characters: e.g., Integrate JavaFX technology to create a graphical user interface for the chatbot. Following the SE-EDU/guides JavaFX tutorial

possible problems in commit d895111:


CheckStyle Integration
โ†ณ Detect and Enforce Coding Style

Implementing CheckStyle to identify and address coding style violations..


  • No blank line between subject and body
  • body not wrapped at 72 characters: e.g., Implementing CheckStyle to identify and address coding style violations..

Suggestion: Follow the given conventions for Git commit messages for future commits (do not modify past commit messages as doing so will change the commit timestamp that we used to detect your commit timings).

Aspect: Binary files in repo

No easy-to-detect issues ๐Ÿ‘


โ„น๏ธ The bot account used to post this issue is un-manned. Do not reply to this post (as those replies will not be read). Instead, contact [email protected] if you want to follow up on this post.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.