diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..802c213 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,32 @@ +# Contributing to hello-world + +:+1::tada: First off, thanks for taking the time to contribute! :tada::+1: + +The following is a set of guidelines for contributing to MSU EVRL hello-world. These are mostly guidelines, not rules. Use your best judgement, and feel free to propose changes to this document in a pull request. + +## File name + +The file name should be of the form hello_world_username.extension. So for example if my user name is knwachuk and I am using the Python Programming language, then my file should be named: + +>`hello_world_knwachuk.py` + +#### Python Language +```Python +print("Hello World) +``` +This is because a language like Python does not require the name of the file and the functions to be the same. And it has a quirk whereby the name of the file is the module import statement, and since the `hyphen -` is a keyword in the Python programming language, `underscore _` are the preferred space delimiter in filenames. + +**However**, there are some languages (like Java) that requires the name of the class and the file to be the same. If that is the case, then stick with the convention of the language. + +>`HelloWorldKnwachuk.java` + +#### Java Language +```Java +public class HelloWorldKnwachuk +{ + public static void main(String[] args) + { + System.out.println("Hello World"); + } +} +``` diff --git a/HelloWorldAdibi1.java b/HelloWorldAdibi1.java new file mode 100644 index 0000000..738fde5 --- /dev/null +++ b/HelloWorldAdibi1.java @@ -0,0 +1,8 @@ + +public class HelloWorldAdibi1 +{ + public static void main(String[] args) + { + System.out.println("Hello World"); + } +} diff --git a/HelloWorldAlahl1.java b/HelloWorldAlahl1.java new file mode 100644 index 0000000..f36f13b --- /dev/null +++ b/HelloWorldAlahl1.java @@ -0,0 +1,6 @@ +public class HelloWorldAlahl1 +{ + public static void main(String[] args) { + System.out.println("Hello, World"); + } +} diff --git a/README.md b/README.md index 725ff38..f0316a5 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,16 @@ Before anything else, visit [Introduction to Github](https://guides.github.com/a Some guided instructions for a simpler introduction to git are [Codecademy's learn git series](https://www.codecademy.com/learn/learn-git) and for a more in-depth dive into git, you can use [Udacity's How to Use Git and GitHub course](https://classroom.udacity.com/courses/ud775) ## Instructions -1. Make a fork of this repository -2. Create a simple program (in ANY language of your choice named hell-world-msuid e.g. hello-world-kenwa1.py) +1. Make a fork of the [msu-evrl hello-world](https://github.com/msu-evrl/hello-world) repository. +2. Create a simple `hello world` program (in ANY language of your choice) named `hello_world_msuid.extension` e.g. `hello_world_kenwa1.py`. 3. Send a pull request to the main repository to accept your change. ## Added Information -You are allowed to modify this `README.md` file to provide more information on the project. Although the change must be accepted by the maintainer in order to be updated to the upstream (msu-evrl/hello-world) master. +You are allowed to modify this `README.md` file to provide more information on the project. Although the change must be accepted by the maintainer in order to be updated to the upstream [msu-evrl/hello-world](https://github.com/msu-evrl/hello-world) master. + +#### Program Filename +The name of the program file should be of the form: +> `hello_world_msuid.extension` + +For languages that do not allow filenames that include a underscores should retain the convention of the language. For example in Java, +> `HelloWorldMsuid.extension` diff --git a/hello-world-kydra1.py b/hello-world-kydra1.py new file mode 100644 index 0000000..8e23576 --- /dev/null +++ b/hello-world-kydra1.py @@ -0,0 +1 @@ +print("Hello World") \ No newline at end of file diff --git a/hello-world-rovir2.c b/hello-world-rovir2.c new file mode 100644 index 0000000..957b344 --- /dev/null +++ b/hello-world-rovir2.c @@ -0,0 +1,8 @@ +#include +int main() +{ + // printf() displays the string inside quotation + printf("Hello, World!"); + system("Pause"); + return 0; +} diff --git a/hello_world_adlacilla.c b/hello_world_adlacilla.c new file mode 100644 index 0000000..53b2f7a --- /dev/null +++ b/hello_world_adlacilla.c @@ -0,0 +1,8 @@ +#include + +int main() +{ +printf("Hello World"); + +return 0; +} diff --git a/hello_world_chnos1.py b/hello_world_chnos1.py new file mode 100644 index 0000000..3181ec8 --- /dev/null +++ b/hello_world_chnos1.py @@ -0,0 +1 @@ +print(''hello world") diff --git a/hello_world_dafun2.py b/hello_world_dafun2.py new file mode 100644 index 0000000..8e23576 --- /dev/null +++ b/hello_world_dafun2.py @@ -0,0 +1 @@ +print("Hello World") \ No newline at end of file diff --git a/hello-world-feoke1.py b/hello_world_feoke1.py similarity index 100% rename from hello-world-feoke1.py rename to hello_world_feoke1.py diff --git a/hello-world-kenwa1.py b/hello_world_kenwa1.py similarity index 100% rename from hello-world-kenwa1.py rename to hello_world_kenwa1.py diff --git a/hello_world_kenwa2.py b/hello_world_kenwa2.py new file mode 100644 index 0000000..8034d55 --- /dev/null +++ b/hello_world_kenwa2.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python + +def main(): + print("Hello World) + +if __name__ == '__main__': + main() \ No newline at end of file diff --git a/hello_world_kydra1.py b/hello_world_kydra1.py new file mode 100644 index 0000000..ad35e5a --- /dev/null +++ b/hello_world_kydra1.py @@ -0,0 +1 @@ +print("Hello World") diff --git a/hello-world-rawil28.cpp b/hello_world_rawil28.cpp similarity index 91% rename from hello-world-rawil28.cpp rename to hello_world_rawil28.cpp index 8948d55..195a3e5 100644 --- a/hello-world-rawil28.cpp +++ b/hello_world_rawil28.cpp @@ -6,4 +6,4 @@ int main() { cout << "Hello World" << endl; system("pause"); return(0); -}; \ No newline at end of file +}; diff --git a/hello_world_rovir2.c b/hello_world_rovir2.c new file mode 100644 index 0000000..957b344 --- /dev/null +++ b/hello_world_rovir2.c @@ -0,0 +1,8 @@ +#include +int main() +{ + // printf() displays the string inside quotation + printf("Hello, World!"); + system("Pause"); + return 0; +} diff --git a/testing b/testing deleted file mode 100644 index 332893b..0000000 --- a/testing +++ /dev/null @@ -1 +0,0 @@ -Nothing. Testing if i can accept pull request on behalf of EVRL diff --git a/testing-knwachuk b/testing-knwachuk deleted file mode 100644 index 1a8214d..0000000 --- a/testing-knwachuk +++ /dev/null @@ -1 +0,0 @@ -This is the proper test