Happy Birthday KDE: Difference between revisions

From WIKI FOSSCELL NITC
(Fixes in Shell and Lua)
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= KDE 28th Birthday Celebration: Happy Birthday KDE Sprint =
== KDE 28th Birthday Celebration: Happy Birthday KDE Sprint ==


To celebrate the [https://community.kde.org/28th_birthday#Kozhikode 28th birthday] of KDE, we're hosting a fun coding sprint where students can explore different programming languages.
To celebrate the [https://community.kde.org/28th_birthday#Kozhikode 28th birthday] of KDE, we're hosting a fun coding sprint where students can explore different programming languages.
 
[[File:Happy Birthday KDE .jpg|thumb|304x304px|Participants of Happy Birthday KDE event]]
At the **Happy Birthday KDE Sprint**, the goal is simple: write code that prints "Happy Birthday KDE" in as many languages as possible. It’s a great chance to try out new languages and share what you learn by documenting the setup process in the community wiki.
At the **Happy Birthday KDE Sprint**, the goal is simple: write code that prints "Happy Birthday KDE" in as many languages as possible. It’s a great chance to try out new languages and share what you learn by documenting the setup process in the community wiki.


Line 23: Line 23:
You can login to your wiki account and then use  
You can login to your wiki account and then use  


2 hiphens annd 4 tildas to add your name to any of the language you are interested in. refer to the source below for reference.
2 hiphens and 4 tildas to add your name to any of the language you are interested in. refer to the source below for reference.




Line 31: Line 31:


=== C ===
=== C ===
-- [[User:Saliaku|saliaku]] ([[User talk:Saliaku|talk]]) 20:13, 17 October 2024 (IST)
<u>GNU Linux</u>
# Choose a text editor of your choice
# Type codes snippet mentioned here and save it as HBD-KDE.c
# gcc and other required packages can be easily installed by running ``sudo apt install build-essentials``
# open terminal
# Use cd command to navigate to the folder where the HBD-KDE.c file is saved
# Run gcc HBD-KDE.c to compile the program
# You would get a file named a.out , which is the binary output file
# You can run this file by running ``./a.out``


=== C++ ===
=== C++ ===
-- [[User:Saliaku|saliaku]] ([[User talk:Saliaku|talk]])
# Choose a text editor of your choice
# Type codes snippet mentioned here and save it as HBD-KDE.cpp
# g++ and other required packages can be easily installed by running ``sudo apt install build-essentials``
# open terminal
# Use cd command to navigate to the folder where the HBD-KDE.cpp file is saved
# Run g++ HBD-KDE.cpp to compile the program (alternatively you can make use of the make command )
# You would get a file named a.out , which is the binary output file
# You can run this file by running ``./a.out``


=== Python ===
=== Python ===
--[[User:Bheem|Bheem]] ([[User talk:Bheem|talk]]) 19:23, 17 October 2024 (IST)
<u>GNU LINUX</u>
# Choose a text editor of your choice
# Type codes snippet mentioned here and save it as HBD-KDE.py
# python3 comes preinstalled by default on almost all GNU-Linux distributions
# open terminal
# Use cd command to navigate to the folder where the python file is saved
# Run python3 HBD-KDE.py to run the python program


=== Java ===
=== Java ===


=== JavaScript ===
=== JavaScript ===
-- [[User:Saliaku|saliaku]] ([[User talk:Saliaku|talk]])
# Go to the [https://nodejs.org/en nodejs.org] website and install the latest version of node
# Create a file named HBD-KDE.js and write the code .
# run "node HBD-KDE.js" to get the output in the terminal


=== TypeScript ===
=== TypeScript ===
-- [[User:Saliaku|saliaku]] ([[User talk:Saliaku|talk]])
# Install deno-2 from this [https://docs.deno.com/runtime/ link] (Deno supports typescript natively , saving you the extra step of compiling it to javascript)
# Create a file named HBD-KDE.ts and write the code.
# run deno HBD-KDE.ts to get the output in the terminal


=== Ruby ===
=== Ruby ===
Line 47: Line 89:


=== Go ===
=== Go ===
-- [[User:Saliaku|saliaku]] ([[User talk:Saliaku|talk]])
# Download and install the GO compiler
# Write the happy birthday message in a file with extension .go
# save and run the code by typing go run HBD-KDE.go
# You will get the output in the terminal


=== Rust ===
=== Rust ===
--[[User:Bheem|Bheem]] ([[User talk:Bheem|talk]]) 02:33, 21 October 2024 (IST)
<u>GNU LINUX</u>
  1 Download and install the rust compiler
  2 Write the happy birthday code in a file with extension .rs
  3 save and run the code by typing ./HBD-KDE in the terminal
  4 You will get the output in the terminal


=== Swift ===
=== Swift ===
Line 55: Line 110:


=== Dart ===
=== Dart ===
-- [[User:Saliaku|saliaku]] ([[User talk:Saliaku|talk]])
<u>GNU Linux</u>
# Download and install the dart-SDK from the official dart website
# Create a file and write the code to print the message and save it with a .dart extenstion
# run the code by typing dart run HBD-KDE.dart
# You will get the output in the terminal !!


=== R ===
=== R ===
Line 61: Line 124:


=== Shell ===
=== Shell ===
-- [[User:HarshvardhanJ|HarshvardhanJ]]
<u>GNU Linux</u>
# Clone the shell file or copy its content into a shell file
# use<code>sudo chmod +x hbd-kde.sh</code>, to make it executable
# run <code>./hbd-kde.sh</code> to print out the text in the terminal


=== Scala ===
=== Scala ===
Line 67: Line 137:


=== Lua ===
=== Lua ===
-- [[User:HarshvardhanJ|HarshvardhanJ]]
# Download and install Lua compiler
# Clone the hbd-kde.lua file or copy its content into a lua file
# Use <code>lua hbd-kde.lua</code> to print out the text


=== Julia ===
=== Julia ===

Latest revision as of 21:50, 21 October 2024

KDE 28th Birthday Celebration: Happy Birthday KDE Sprint

To celebrate the 28th birthday of KDE, we're hosting a fun coding sprint where students can explore different programming languages.

Participants of Happy Birthday KDE event

At the **Happy Birthday KDE Sprint**, the goal is simple: write code that prints "Happy Birthday KDE" in as many languages as possible. It’s a great chance to try out new languages and share what you learn by documenting the setup process in the community wiki.

Event Details

What We'll Be Doing

  • Play around with different programming languages.
  • Write a quick "Happy Birthday KDE" in each one.
  • Share how to set up each language’s development environment in the wiki.

How to Join

  • Bring your laptop with any tools you like to code with.
  • Try new languages, work together, and have some fun.
  • Submit your code and setup instructions to be added to the wiki.

This is a laid-back event where you can explore new languages, meet other coders, and join in the KDE birthday fun!

You can login to your wiki account and then use

2 hiphens and 4 tildas to add your name to any of the language you are interested in. refer to the source below for reference.


Git Repo : HBD-KDE

-- Vysakh Premkumar (talk) 23:01, 16 October 2024 (IST)

C

-- saliaku (talk) 20:13, 17 October 2024 (IST)

GNU Linux

  1. Choose a text editor of your choice
  2. Type codes snippet mentioned here and save it as HBD-KDE.c
  3. gcc and other required packages can be easily installed by running ``sudo apt install build-essentials``
  4. open terminal
  5. Use cd command to navigate to the folder where the HBD-KDE.c file is saved
  6. Run gcc HBD-KDE.c to compile the program
  7. You would get a file named a.out , which is the binary output file
  8. You can run this file by running ``./a.out``

C++

-- saliaku (talk)

  1. Choose a text editor of your choice
  2. Type codes snippet mentioned here and save it as HBD-KDE.cpp
  3. g++ and other required packages can be easily installed by running ``sudo apt install build-essentials``
  4. open terminal
  5. Use cd command to navigate to the folder where the HBD-KDE.cpp file is saved
  6. Run g++ HBD-KDE.cpp to compile the program (alternatively you can make use of the make command )
  7. You would get a file named a.out , which is the binary output file
  8. You can run this file by running ``./a.out``

Python

--Bheem (talk) 19:23, 17 October 2024 (IST)

GNU LINUX

  1. Choose a text editor of your choice
  2. Type codes snippet mentioned here and save it as HBD-KDE.py
  3. python3 comes preinstalled by default on almost all GNU-Linux distributions
  4. open terminal
  5. Use cd command to navigate to the folder where the python file is saved
  6. Run python3 HBD-KDE.py to run the python program

Java

JavaScript

-- saliaku (talk)

  1. Go to the nodejs.org website and install the latest version of node
  2. Create a file named HBD-KDE.js and write the code .
  3. run "node HBD-KDE.js" to get the output in the terminal

TypeScript

-- saliaku (talk)

  1. Install deno-2 from this link (Deno supports typescript natively , saving you the extra step of compiling it to javascript)
  2. Create a file named HBD-KDE.ts and write the code.
  3. run deno HBD-KDE.ts to get the output in the terminal

Ruby

PHP

Go

-- saliaku (talk)

  1. Download and install the GO compiler
  2. Write the happy birthday message in a file with extension .go
  3. save and run the code by typing go run HBD-KDE.go
  4. You will get the output in the terminal

Rust

--Bheem (talk) 02:33, 21 October 2024 (IST)

GNU LINUX

  1 Download and install the rust compiler
  2 Write the happy birthday code in a file with extension .rs
  3 save and run the code by typing ./HBD-KDE in the terminal 
  4 You will get the output in the terminal

Swift

Kotlin

Dart

-- saliaku (talk)

GNU Linux

  1. Download and install the dart-SDK from the official dart website
  2. Create a file and write the code to print the message and save it with a .dart extenstion
  3. run the code by typing dart run HBD-KDE.dart
  4. You will get the output in the terminal !!

R

Perl

Shell

-- Harshvardhan Jaishekhar

GNU Linux

  1. Clone the shell file or copy its content into a shell file
  2. usesudo chmod +x hbd-kde.sh, to make it executable
  3. run ./hbd-kde.sh to print out the text in the terminal

Scala

Haskell

Lua

-- Harshvardhan Jaishekhar

  1. Download and install Lua compiler
  2. Clone the hbd-kde.lua file or copy its content into a lua file
  3. Use lua hbd-kde.lua to print out the text

Julia

Objective-C

Elixir

F#

Assembly

Groovy

D

V

Nim