Git Product home page Git Product logo

forum's Introduction

Forum

This repo is used to host the issue tracker that is used as the main discussion forum of the module.

  • You are encouraged to watch this repo; that way, you will get an immediate email alert when there is an update to an issue
  • You can also subscribe to (or unsubscribe from) specific issues

forum's People

Contributors

damithc avatar

Stargazers

Jaime Ng avatar Kaylee Wong avatar Felix Chan You Yuan avatar  avatar Ethan Wei Yuxin avatar  avatar Jajabonks avatar xinen avatar  avatar  avatar Kenneth Seet avatar Hong Ray avatar Jm San Diego avatar Wilson Widyadhana avatar Zhu Yuechen avatar Udhaya avatar Jiahao avatar

Watchers

 avatar Yadunand Prem avatar Ethan Wei Yuxin avatar  avatar Chieu Le Heng avatar  avatar Titus Chew avatar Jovan Tan avatar  avatar Chong Chin Herng avatar Eric Goh avatar Hsin Ron avatar Marcus avatar Jm San Diego avatar  avatar  avatar  avatar Wong Kai Li avatar  avatar  avatar  avatar  avatar Zhu Yuechen avatar Li Haoquan avatar Ivan Koo Zhuo Hui avatar Kaylee Wong avatar aman zainal avatar  avatar Wilson Widyadhana avatar Rayson Yeap avatar Ryan Lim avatar  avatar Justin Tan avatar  avatar  avatar chewbum avatar Lim Zheng Ting avatar LIU JIAYAO avatar  avatar Felix Chan You Yuan avatar Sindhura Jain avatar yilin avatar Teo Hong Rui avatar  avatar  avatar Chen WenLong avatar  avatar Ronn avatar Safwan Hussein avatar  avatar  avatar Jim Seah avatar  avatar

forum's Issues

How to test against random behaviour

To add some personality to the Chatbot, I have been creating functions that randomize the conversations so that it randomly choose the replies, greetings and byes from lists of String.
However, such methods does not allow for current testing method. I want to ask

  1. Is this approach is not testable?
  2. Is there a workaround?
    If such behaviour is not expected, I will change accordingly.
    Thank you for your time!

Small Typo

Should be 'since midnight' not 'till midnight'

At W1.1f

image

Minor typo in w1.4c example

In W1.4c :
C++ to Java → Collections → The HashMap class
In the example line 20 and subsequently line 3 should be "Key y1 exists? " not "Key x1 exists? "
image
image

Minor typo in video slides

Week 2 Video 4 (Challenges and Solutions) 10:51: "Not preventing you from getting tech help; but redirecting you to aa better resource"
Just a heads up if the slides were to be reused in a future semester!

error when running Duke.main()

Error: Could not find or load main class Duke
Caused by: java.lang.ClassNotFoundException: Duke

my sdk is 11.0.17 and language level is sdk default

Type of printing/input classes for iP

Sorry if I have missed this somewhere, are we only allowed to use the basic System.out.println and Scanner for our I/O? Can we use BufferedReader/PrintWriter as I have learnt from 2040S.

Thank you.

How do I know if i committed and tagged properly?

I commited, then tagged, and then pushed. im currently doing level 2 (pushed level 0 and 1). how do i know if im doing it properly. im very scared as i continue on till level 6 if my commits/tags are wrong the whole thing will be messy

Week 3 Branches notes

Screenshot 2024-01-22 220959 Screenshot 2024-01-22 221038

For this part, why is it not feature1 instead of 'master' (pic 1) and my HEAD remains at master.

Minor typo in w2.3c

At the bottom of W2.3c the course website currently states:

It is fine to learn the CLI way only (using Sourcetree is optional), especially if you normally prefer to work with CLI user GUI.

I think this is a typo and should be

It is fine to learn the CLI way only (using Sourcetree is optional), especially if you normally prefer to work with CLI over GUI.

Screenshot for reference:
image

[Set-up] Setting up of system variables

Hi all, may I check with regards to this instruction "Set the JAVA_HOME/JDK_HOME system variables to point to /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home", is it to configure the system variable in my bashrc file if I am a mac user? If not, where shall I include this system variable?

Early Submission participation for Quizzes

Hi prof, may I confirm if i submit a quiz attempt before Monday and decide to retry the quiz again after Monday, would I still get the early submission participation points despite resubmitting another attempt (on Monday onwards)?

Bash script for text ui testing closing quickly

Tried running the bash script for text ui testing, but the script closes quickly without being able to check. Is this normal.

input.txt

@ECHO OFF

REM create bin directory if it doesn't exist
if not exist ..\bin mkdir ..\bin

REM delete output from previous run
if exist ACTUAL.TXT del ACTUAL.TXT

REM compile the code into the bin folder
javac  -cp ..\src\main\java -Xlint:none -d ..\bin ..\src\main\java\*.java
IF ERRORLEVEL 1 (
    echo ********** BUILD FAILURE **********
    exit /b 1
)
REM no error here, errorlevel == 0

REM run the program, feed commands from input.txt file and redirect the output to the ACTUAL.TXT
java -classpath ..\bin RyanGosling < input.txt > ACTUAL.TXT

REM compare the output to the expected output
FC ACTUAL.TXT EXPECTED.TXT

ACTUAL.TXT
EXPECTED.TXT

github tags

The tasks for Week 2 explain that we have to use tags in iP. Is this once we finish the part for that level, or should we create all tags now? Thanks.

💡(Git) Creating an Annotated Tag

Including a tag message with an annotated tag can provide additional context about the tag.
This message can describe the reason for the tag, such as a release version, a significant change, or a milestone in the project.

git tag -a <tagname> -m "Tag message"

For example,

git tag -a v1.0 -m "Release version 1.0

Question in Level-3

I am having trouble figuring out how to store the integer which comes after "mark" or "unmark" to use it to traverse the list and what should I do if the user enters an integer that is out of range.

typo(schedule): redundant closing bracket

Typo on week 2 schedule page

Location:

  • schedule/week2/notices-cs2103-fragment.md:57:75

Expected:

[bonus participation points](../../admin/participation.md)

Actual:

[bonus participation points](../../admin/participation.md))
                                                          ^

Git tag

I accidentally pushed my tag before pushing my code. May I know if I need to fix this issue, or just leave it as it is?

Small grammar/typo mistake in Week 2 Topics

Spotted a small grammar mistake in Week 2 Topics Page

[W2.3] RCS: Revision History => Tools → Git and GitHub → commit: Saving changes to history => 5. Do a few more commits. => Pointer 2

image

The highlighted text in the above image can be corrected to other

The following snippet is provided for locating the exact paragraph in the page via ctrl+f

You can decide what to stage and what to leave unstaged. When staging changes to commit, you can leave some files unstaged, if you wish to not include them in the next commit. In fact, Git even allows some changes in a file to be staged, while others changes in the same file to be unstaged. This flexibility is particularly useful when you want to put all related changes into a commit while leaving out unrelated changes.

Multiple commits per level

Are we allowed to write in more detailed commit messages in between each level for a commit?

E.g. the example commit history

  1. Level-4
  2. feat: add deadline
  3. feat: add event
  4. feaT: add todo
  5. Level-3

CredentialHelperSelector when push to remote repo

I follow the steps on W2.4e Tools → Git and GitHub → push: Uploading data to other repos, and when I want to push my repo to my remote repo, a page pop-up asking me to select one option from CredentialHelperSelector, I select and error show up. May I know how to solve this? Thank you.

Mismatched Tagging

I accidentally tagged and declared a certain level as completed (eg. level 1), but after a few more levels I realised a potential bug in level 1 and fixed it in a commit tagged in under another level (eg. Level 6).

Will this be an issue? Since the commit now technically belongs to both level 1 and level 6...

Will the completion of each level be graded according to the tags? Or would it be graded upon the final version (the one on level 6)?

Issue in Level-3

I am storing the tasks in the following format:
List l = new ArrayList();

However I get an error in the following line:
l.get(element_index).markDone();

The error says that it cannot resolve method 'markDone' in String.

Question regarding tagging

I forgot to add in tags after committing my first level, will it be alright if I add a tag at a commit which does not change the code much just to add in the tag?

Minor Typo in W2-Project Tab, Duke Level-0

There seems to be a minor typo at part (b) of Level-0, where it states:

"Implement an initial skeletal version of the it that simply greets the user and exits."

It should instead be:

"Implement an initial skeletal version of the it that simply greets the user and exits."

Attached is a screenshot of the typo.

Screenshot 2024-01-21 at 7 15 33 PM

Thanks for taking the time to rectify it!

Citing the Java documentation

Is citing the Java documentation (if we refer to it) something necessary to be done, or is the citation policy applicable only to resources aside from the documentation?

Regular Expressions in iP Level 4

Hello, I don't know whether to post this under the 3rd party libraries, or not.

I was doing the iP, and wondering if I could use regular expressions in the Level 4 - so that I can parse/validate the user input

For example, I want to do this to validate the todo command, which is followed by one or more lower case events that are to be added.

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {
    public static void main(String[] args) {
        Pattern pattern = Pattern.compile("todo [a-z]+$");
        Matcher matcher = pattern.matcher("todo command");

        boolean matchFound = matcher.find();
        System.out.println("match?" + matchFound);
    }
}

Thank you!

Minor typo in textbook: Overridden methods have same return type

Textbook:

https://nus-cs2103-ay2324s2.github.io/website/schedule/week1/topics.html#paradigms-oop-inheritance-overriding

Method overriding is when a sub-class changes the behavior inherited from the parent class by re-implementing the method. Overridden methods have the same name, same type signature, and same return type.

Actually, Java supports covariant return type. https://stackoverflow.com/a/14694885


Edit: probably more appropriate to report on se-edu/se-book#116 .

Handle edge cases for tasks

Is handling edge cases considered additional effort from the expectations, for example if task is done and we call mark on it, should we just ignore that it has already been marked and just mark again as if it was unmarked or give it a specialised message.

Thanks.

Small typo in template for seeking help

Hi, was browsing the different tags in the forum when I came across this typo:

Instead of:

Template for seekling help

It should be:

Template for seekling seeking help

Here's a screenshot for reference!
Screenshot 2024-01-22 at 6 10 36 PM

Thanks in advance to the teaching staff for maintaining the resources we have! 👍👍👍

Regarding Main method for Application

I've few questions to ask -

  1. Can we modify the filename of the bot i.e Duke.java to our bot name i.e "botname.java"
  2. Do we need to commit with specific messages for all the Levels ?
  3. What should be the main entry point for the application (i.e I've created an Main.java file as an entry point for the bot)

Query regarding tagging and A-TextUiTesting

I've been working on my iP as outlined by the website, but had this nagging feeling that I didn't have to tag the level A-TextUiTesting (the level after 4 but before 5), as it did not follow the naming convention of previous or following levels, but I tagged it anyway.

Should this be standard practice? Also, will it affect the grading of my iP?

Are there any teaching staff or students who care to weigh in about the issue? Any help is appreciated!

Level-5

CleanShot 2024-01-22 at 23 37 34@2x

For this Level-5, if we renamed our chatbot to another name do we still call it DukeException?

Order or precedent regarding quiz early vs 70%

Hi suppose I submit a quiz that is < 70% within the early submission period. But after the early submission period I submit another quiz that is > 70%.

Do I still get the early marks?

Query in Level-4

So far I have made 2 classes, which are Duke.java and Deadline.java.

Task is a nested class inside Duke. I want to be able to correctly run this statement in Deadline.java. How can I do that:
System.out.println("[D]" + " " + user_word.substring(9));
where user_word is the user input.

This line works in Duke.java but it wouldn't follow OOP principles, thus can someone tell how I can transfer this to Deadline.java

💡How to understand tagging

After getting confused by what exactly tagging is, heres a simple foolproof-way to doing tagging for iP.

A tag is basically a bookmark, it points to a specific commit.

Add the tag after committing.

So for example:

# this is the commit that implements Level-1
git commit -m "{commit message}"
git tag -a Level-1 -m "{Message or comment for the tag, e.g. Implement Rename, Greet, Exit}"

# renaming a commit BEFORE PUSHING
git commit --amend

git push 
git push --tags # this uplaods the tags to GitHub

A commit can have multiple tags but a tag can only point to one commit.

Hope this help those who are lost with what are tags exactly.

You also tag retrospectively, after you have already committed.
https://git-scm.com/book/en/v2/Git-Basics-Tagging#_tagging_later

Checking your tags

There is a command to see the associated tag.

git show level-1
will show you the what commit level-1 is tagged to:

ip> git show level-1
tag Level-1
Tagger: [Snipped]
Date:   Mon Jan 22 18:00:00 2024 +0800

Echo and bye function

commit 85e9b72e761065[snipped] (tag: Level-1)
Author: [snipped] <>
Date:   Mon Jan 22 18:00:00 2024 +0800

    Level-1 Set up echo function

Wrong commit message & multiple tags on each commit

Hi, I have the following 2 queries:

  1. Is it an issue if a commit has the wrong message? I.e. "Level 5. Automated Text UI Testing" when this is not one of the levels.

  2. After pushing tags I noticed newer tags are stacked onto previous commits for past increments. So now my Level-0 commit has tags Level-5 to 0. Is this a major issue for the grader and how do I rectify it?

Thank you!

Backwards compatibility

Are we supposed to make our code backwards compatible? As an example, do we assume that at Level-4, all tasks are strictly in either one of the three categories, or do we still allow for a generic task to be created?

Level 0 [IP]

for level 0 after the chatbot greets the user and asks what it can do for you, does it timeout after a certain amount of time if the user doesnt reply?

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.