-
-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding analyzer feedback for karls language concept exercise #2722
Adding analyzer feedback for karls language concept exercise #2722
Conversation
I have also a couple of questions:
|
If we 100% want to make public <T> String isInstanceOf(List<T> list) {
for (T element : list) {
if (element instanceof Integer) {
return "Integer";
}
}
return "String";
} And introduce the concept |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these hints may give away a bit too much. Based on the documentation I'd say they could be just a little bit more cryptic. For example, instead of
Try using the
isEmpty()
method.
it might say
One of the methods on the
List
type can be used to check if it is empty.
Same for the other hints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
How would that work exactly? AFAIK we can't define variables in Markdown files. |
Nah I think removing the |
Update hints to not say exactly what to do Update isEmpty name to one that does not says directly what to apply change the analyzer topic that checks that the students re uses containsLanguage to informative Add an informative topic if the students uses an if statement on containsLanguage
Yeah, I thought that the variables accept plain text, but it seems that they only accept URLs. However, I still think we should find a way to handle this, because currently, we have a ton of documentation for different Java versions – 7, 8, 9, 11, 12, 13, 14, etc. Perhaps a policy to only add documentation for the latest current version, but that wouldn't eliminate the need to update the older ones at some point. |
Can you add a new issue to discuss this? |
exercises/concept/karls-languages/.meta/src/reference/java/LanguageList.java
Outdated
Show resolved
Hide resolved
Sure |
pull request
closes #2678
To be consistent with lasagna design.md, I made a couple of changes, so instead of using a loop make the user reuse code seem better for me.
Reviewer Resources:
Track Policies