Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Fun activity Say hello... in a coding language!

Hello Coders!

Let's do something fun! This is supposed to be a fun way for us as a community to engage and learn from each other.

Okay, here's how it goes. You can decide what language you want to use, and all you have to say is "Hello, (person above)!" in the language that you picked ([UWSL][UWSL][UWSL]Using the BBCode function)[/UWSL][/UWSL][/UWSL].
So here's an example
C++:
std::cout << "Hello, Master Yoda";
std::cout << "Hello, Master Yoda";
 

“Hello, World!” page in Ruby on Rails:​


1. Create a new Rails application​


Code:
rails new hello_world_app
cd hello_world_app

2. Generate a controller​

Code:
rails generate controller Home index<br>

3. Set up the route​

Open the config/routes.rb file and set the root route to the index action of the Home controller:

Code:
rails generate controller Home index<br>


4. Edit the controller​

Open the app/controllers/home_controller.rb file and ensure the index action looks like this:

Ruby:
class HomeController < ApplicationController
  def index
    render plain: 'Hello, aditya63941 (The guy above me)!'
  end
end


5. Start the Rails server​

Code:
rails server<br>

6. View your “Hello, World!” page​

Open your web browser and go to http://localhost:3000. You should see “Hello, aditya63941” displayed on the page.
 
Last edited:
``
Python:
char_array = ['H', 'e', 'l', 'l', 'o']
result_string = ""
for char in char_array:
    result_string += char
result_string += '!'
print(result_string)
 
PHP:
<?php

declare(strict_types=1);

readonly class Hello
{
    public function __construct(private string $name) {}

    public function greet(): string
    {
        return "Hello, {$this->name}!";
    }
}

echo (new Hello('William'))->greet();
 
Hello Coders!

Let's do something fun! This is supposed to be a fun way for us as a community to engage and learn from each other.

Okay, here's how it goes. You can decide what language you want to use, and all you have to say is "Hello, (person above)!" in the language that you picked ([UWSL][UWSL][UWSL]Using the BBCode function)[/UWSL][/UWSL][/UWSL].
So here's an example
C++:
std::cout << "Hello, Master Yoda";
Python:
def introduce():
    print("Hi there 👋")
    print("\nmy name is Ralf\n")
    print("🔭 I’m currently working on: Hopalong Attractor")
    print("🌱 I’m currently learning: Python, Rust and Julia")

# Call the function to display the introduction
introduce()
 
Code:
public class HelloAmith {
    public static void main(String[] args) {
        System.out.println("Hello Amith Krishna");
    }
}
 
Last edited by a moderator:
Python:
from flask import Flask
app = Flask(__name__)

@app.route("/")
def home():
  return "Hello, I am NateDhaliwal, a Python full-stack developer, and a Discourse fan!"

if __name__ == "__main__":
  app.run(host="0.0.0.0", port=8080)
 
### from an old phone sorry for this###

ASSEMBLY X86

.data
message:.ascii("hello world\n")

.global main
.text
main:
lea message (%rip),(%rdi)
xor (%rax),(%rax)
call printf
mov $60, (%rax)
xor (%rdi), (%rdi)
syscall
 
I've just gotten into coding in Supercollider so here's a hello from the console 🙂

Code:
"Hello, Malcolm! Hello, dfgr$! And hello, everyone!".postIn;
 
Hello Coders!

Let's do something fun! This is supposed to be a fun way for us as a community to engage and learn from each other.

Okay, here's how it goes. You can decide what language you want to use, and all you have to say is "Hello, (person above)!" in the language that you picked ([UWSL][UWSL][UWSL]Using the BBCode function)[/UWSL][/UWSL][/UWSL].
So here's an example
C++:
std::cout << "Hello, Master Yoda";
Python:
print("Hello, slavaker!")
 
Python:
print("Hello, slavaker!")

In Liquid Template
Code:
<div class="hello-dilly-wrapper">
  <h1>Hello, DillyDabDharma</h1>
</div>

<style>
.hello-dilly-wrapper {
  text-align: center;
  padding: 60px 20px;
  background-color: #f2f2f2;
  font-family: 'Arial', sans-serif;
}
.hello-dilly-wrapper h1 {
  font-size: 2.5rem;
  color: #333;
}
</style>
{% schema %}
  {
    "name": "Codeforum Hello",
    "settings": []
{% endschema %}
  }
 
Hi Everyone, Eferata newbie here.
Saying Hello to you guys : '48 65 6C 6C 6F', '4C 69 71 75 69 64 63 6F 64 65 72'
I am a logic programmer, above is Hexa format for 'Hello, Liquid coder'.
Now trying to learn statement list especially C#.
Nice day to you all.
 
Last edited:

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom