Skip to content
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

Add Node.js to list of languages on README and demo languages #2297

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pxpeterxu
Copy link

Motivation

Related to DMOJ/judge-server#1143:

After enabling support in judge-server for a Node.js-based executor, we need add the language to the demo instance and the documentation

Changes

  • Add JavaScript (Node.js) to the demo instance's languages list (language_all.json)
  • Add Node.js to the list of supported languages in the README

Testing

Ran python3 manage.py loaddata language_all and verified the languages were loaded properly in the Admin interface

image

README.md Outdated
@@ -121,6 +121,7 @@ The judge can also grade in the languages listed below:
* GAS x86/x64/ARM
* Haskell
* INTERCAL
* JavaScript (Node.js, V8)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose for consistency with the C++ variants this should say "(Node.js and V8)".

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to say Node.js and V8!

"fields": {
"key": "NODEJS",
"name": "JavaScript (Node.js)",
"short_name": "Node.js",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The short name is used on the submission listing. For consistency, it should be all uppercase. If you leave it as null, then key will be used instead (which seems fine in this case).

"pk": 77,
"fields": {
"key": "NODEJS",
"name": "JavaScript (Node.js)",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This naming sounds good to me -- could we also rename V8 to "JavaScript (V8)" for consistency?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants