Giter Club home page Giter Club logo

ip's Introduction

Hi this is Tianle ๐Ÿ˜„

Computer Science fresh grad at the National University of Singapore.

Track: Software development + game development

Experienced in front-end development:

Tailwind CSS Figma React Vue.js TypeScript Next.js Flutter

in back-end development:

Java C++ Python Flask Go redis Nginx

in cloud computing:

  • K8s, docker, AWS, Google Cloud, Tencent cloud
Docker Kubernetes Auth0 Git AWS Firebase

in game development:

C++ C# Unity Godot Unreal Engine

and also prompt engineering XD


Some Game demo

The Tale of kentridge

https://www.youtube.com/watch?v=CfYs6wlWDug&t=14s

MetalCore

https://www.youtube.com/watch?v=ohToEW5kBoM

AssaShine

https://drive.google.com/file/d/1JtRQdXbKe1JXdZph2cF10lFCTyegYR70/view

Find out more about me ๐Ÿ“ซ

ip's People

Contributors

damithc avatar j-lum avatar jiachen247 avatar

Watchers

 avatar

ip's Issues

Sharing iP code quality feedback [for @ddx-510]

@ddx-510 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

Example from src/main/java/duke/helptool/Parser.java lines 129-224:

    public static Command parse(String input) throws DukeException {
        if (input.equals("bye")) {
            // detect bye
            return new ExitCommand();
        } else if (input.equals("list")) {
            // detect list
            return new ListCommand();
        } else if (input.startsWith("find")) {
            String findDetail = input.substring(4);
            if (isEmpty(findDetail)) {
                throw new DukeException("โ˜น OOPS!!! The description of a find cannot be empty.");
            }
            return new FindCommand(findDetail);
        } else {
            if (input.startsWith("mark") || input.startsWith("unmark") || input.startsWith("delete")) {
                boolean isDigit = !Character.isDigit(input.charAt(input.length() - 1));
                int markDigit = Character.getNumericValue(input.charAt(input.length() - 1));
                if (input.startsWith("mark")) {
                    // detect digit
                    if (isDigit) {
                        throw new DukeException("โ˜น OOPS!!! The mark cannot be done.");
                    }
                    return new MarkCommand(markDigit);
                }
                if (input.startsWith("unmark")) {
                    // detect unmark
                    if (isDigit) {
                        throw new DukeException("โ˜น OOPS!!! The unmark cannot be done.");
                    }
                    return new UnmarkCommand(markDigit);
                }
                if (input.startsWith("delete")) {
                    // detect delete
                    if (isDigit) {
                        throw new DukeException("โ˜น OOPS!!! The delete cannot be done.");
                    }
                    return new DeleteCommand(markDigit);
                }
            } else if (input.startsWith("todo")) {
                // generate
                String description = getDescription(input, "T");
                if (isEmpty(description)) {
                    throw new DukeException("โ˜น OOPS!!! The description of a todo cannot be empty.");
                }
                Tag newTag = addTag(input);
                return new AddCommand(description, "T", newTag);
            } else if (input.startsWith("deadline")) {
                if (isEmpty(input.substring(8))) {
                    throw new DukeException("โ˜น OOPS!!! The description of a deadline cannot be empty.");
                }
                if (!input.contains("/by")) {
                    throw new DukeException("โ˜น OOPS!!! The date of a deadline cannot be empty.");
                }
                int byPos = input.indexOf("/by");
                String description = getDescription(input, "D");
                String byDateTime;
                if (!input.contains("#")) {
                    byDateTime = input.substring(byPos + 4);
                } else {
                    byDateTime = input.substring(byPos + 4, getTagPos(input) - 1);
                }
                if (isValidDate(byDateTime)) {
                    LocalDateTime dateTime = LocalDateTime.parse(byDateTime, dateFormat);
                    Tag newTag = addTag(input);
                    return new AddCommand(description, "D", dateTime, newTag);
                } else {
                    throw new DukeException("โ˜น OOPS!!! The date time is not of correct format dd/MM/yyyy HHmm.");
                }
            } else if (input.startsWith("event")) {
                if (isEmpty(input.substring(5))) {
                    throw new DukeException("โ˜น OOPS!!! The description of a event cannot be empty.");
                }
                if (!input.contains("/at")) {
                    throw new DukeException("โ˜น OOPS!!! The date of a event cannot be empty.");
                }
                int atPos = input.indexOf("/at");
                String description = getDescription(input, "E");
                String atDateTime;
                if (!input.contains("#")) {
                    atDateTime = input.substring(atPos + 4);
                } else {
                    atDateTime = input.substring(atPos + 4, getTagPos(input) - 1);
                }
                if (isValidDate(atDateTime)) {
                    Tag newTag = addTag(input);
                    LocalDateTime dateTime = LocalDateTime.parse(atDateTime, dateFormat);
                    return new AddCommand(description, "E", dateTime, newTag);
                } else {
                    throw new DukeException("โ˜น OOPS!!! The date time is not of correct format dd/MM/yyyy HHmm.");
                }
            } else {
                throw new DukeException("โ˜น OOPS!!! I'm sorry, but I don't know what that means :-(");
            }
        }
        return null;
    }

Example from src/main/java/duke/helptool/Storage.java lines 87-137:

    public ArrayList<Task> load() throws DukeException {
        try {
            File myObj = new File(this.filePath);
            Scanner myReader = new Scanner(myObj);
            ArrayList<Task> tempTaskList = new ArrayList<>();
            while (myReader.hasNextLine()) {
                String data = myReader.nextLine();
                String tempType = data.substring(1, 2);
                DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMM dd yyyy hh:mm a");
                switch (tempType) {
                case "T":
                    Tag tag = getTag(data);
                    Task tempTask = new ToDo(data.substring(7), tag);
                    if (data.charAt(4) == 'X') {
                        tempTask.markAsDone();
                    }
                    tempTaskList.add(tempTask);
                    break;
                case "D":
                    int byPos = data.indexOf("(by:");
                    String by = data.substring(byPos + 5, data.length() - 1);
                    String description = data.substring(7, byPos - 1);
                    tag = getTag(data);
                    tempTask = new Deadline(description, LocalDateTime.parse(by, formatter), tag);
                    if (data.charAt(4) == 'X') {
                        tempTask.markAsDone();
                    }
                    tempTaskList.add(tempTask);
                    break;
                case "E":
                    int atPos = data.indexOf("(at:");
                    String at = data.substring(atPos + 5, data.length() - 1);
                    description = data.substring(7, atPos - 1);
                    tag = getTag(data);
                    tempTask = new Event(description, LocalDateTime.parse(at, formatter), tag);
                    if (data.charAt(4) == 'X') {
                        tempTask.markAsDone();
                    }
                    tempTaskList.add(tempTask);
                    break;
                default:
                    break;
                }
            }
            myReader.close();
            return tempTaskList;
        } catch (FileNotFoundException e) {
            this.create();
            return null;
        }
    }

Suggestion: Consider applying SLAP (and other abstraction mechanisms) to shorten 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

Example from src/main/java/duke/Duke.java lines 21-25:

    /**
     * Create a chatterbot with record file located at filePath
     *
     * @param filePath The file's storage path
     */

Example from src/main/java/duke/Duke.java lines 37-42:

    /**
     * Generate response text based on user input
     *
     * @param input the input
     * @return the response
     */

Example from src/main/java/duke/gui/Launcher.java lines 9-13:

    /**
     * The entry point of application.
     *
     * @param args the input arguments
     */

Suggestion: Ensure method/class header comments follow the format specified in the coding standard, in particular, the phrasing of the overview statement

Aspect: Recent Git Commit Message (Subject Only)

No easy-to-detect issues ๐Ÿ‘

โ„น๏ธ The bot account @nus-se-bot 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 @ddx-510] - Round 2

@ddx-510 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

Example from src/main/java/duke/Duke.java lines 60-60:

        boolean result = false;

Suggestion: Follow the given naming convention for boolean variables/methods (e.g., use a boolean-sounding prefix).You may ignore the above if you think the name already follows the convention (the script can report false positives in some cases)

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

Example from src/main/java/duke/gui/Launcher.java lines 9-13:

    /**
     * The entry point of application.
     *
     * @param args the input arguments
     */

Example from src/main/java/duke/helptool/Parser.java lines 65-70:

    /**
     * Add tag help method.
     *
     * @param input the input
     * @return the tag
     */

Example from src/main/java/duke/helptool/Parser.java lines 82-88:

    /**
     * Add tag help method.
     *
     * @param input the input
     * @param type  the type
     * @return the tag
     */

Suggestion: Ensure method/class header comments follow the format specified in the coding standard, in particular, the phrasing of the overview statement.

Aspect: Recent Git Commit Message (Subject Only)

No easy-to-detect issues ๐Ÿ‘

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.

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.