🌟Hacktoberfest 2025 & Hacksquad 2025 πŸŽ‰

Welcome to Code-Contribution!
This repo is your entry point to Hacktoberfest & Hacksquad β€” a month-long celebration of open-source and community collaboration πŸ’»πŸŒ.

Whether you’re a beginner writing your first Hello World 🐣 or an experienced developer adding new features, you belong here.
Contribute, learn, and earn cool swag like T-shirts & stickers πŸ‘•πŸŽ.

πŸ‘‰ Don’t forget to ⭐ star this repository to show support!


πŸš€ What is Hacktoberfest?

Hacktoberfest is an annual event that encourages contributions to open-source projects on GitHub.
Throughout October, developers across the globe collaborate, contribute, and celebrate open source.

Rewards: Contribute 4+ valid pull requests and earn limited edition swag 🎁.


🀝 What is Hacksquad?

HackSquad lets you team up with friends or other devs to contribute together.
Instead of competing alone, you collaborate as a squad and climb the leaderboard πŸ†.

A fun way to learn, grow, and win together ✨.


🎯 Why Participate?

βœ… Learn new programming languages
βœ… Improve your Git & GitHub skills
βœ… Contribute to real-world projects
βœ… Network with a global dev community 🌍
βœ… Earn swag, stickers, T-shirts & recognition


πŸ› οΈ How to Participate

1️⃣ Register

2️⃣ Fork This Repository

Click the Fork button to create your copy of this repository.

3️⃣ Add Your β€œHello World”

4️⃣ Commit & Push

git add .
git commit -m "✨ Added Hello World in Python"
git push origin my-branch

5️⃣ Open a Pull Request


πŸ”§ Steps to Contribute Using Git

Cloning the Repository

  1. Open a terminal window.
  2. Use the git clone command with the URL of your forked repository:

    git clone https://github.com/your-username/Code-Contribution.git
    cd Code-Contribution
    

Creating a New Branch

  1. Change into the repository directory:

    cd Code-Contribution
    
  2. Create a new branch:

    git branch new-branch
    
  3. Switch to the new branch:

    git checkout new-branch
    

Making Changes

  1. Add your changes to the staging area:

    git add -A
    
  2. Commit your changes with a descriptive message:

    git commit -m "Add Hello World in [Language]"
    
  3. Push your branch to your forked repository:

    git push origin new-branch
    

Syncing Your Fork

  1. Add the upstream repository:

    git remote add upstream https://github.com/x0lg0n/Code-Contribution.git
    
  2. Fetch the latest changes:

    git fetch upstream
    
  3. Merge the changes into your local master branch:

    git checkout master
    git merge upstream/master
    

Creating a Pull Request

  1. Navigate to your forked repository on GitHub.
  2. Click the β€œNew pull request” button.
  3. Provide a descriptive title and summary of your changes.
  4. Submit the pull request.

πŸ“š Code Documentation Standards

Why Documentation Matters

Good documentation is essential for:

Documentation Requirements

All code contributions must include:

  1. File-level documentation - Brief description of the file’s purpose
  2. Function/method documentation - Parameters, return values, and examples
  3. Inline comments - Explanation of complex logic (the β€œwhy”, not the β€œwhat”)
  4. Usage examples - At least one working example demonstrating the code
  5. README updates - Add your contribution to the relevant directory README

Language-Specific Standards

We follow industry-standard documentation practices:

Language Standard Example
Python PEP 257 Docstrings """Brief description.\n\nArgs:\n param: Description\n"""
Java JavaDoc /** @param name Description */
JavaScript JSDoc /** @param {string} name - Description */
C/C++ Doxygen /** @brief Description\n@param name Description */
C# XML Documentation /// <summary>Description</summary>

Quick Examples

Python Documentation

def calculate_average(numbers: list) -> float:
    """
    Calculate the arithmetic mean of a list of numbers.
    
    Args:
        numbers (list): List of numeric values
    
    Returns:
        float: The average value
    
    Example:
        >>> calculate_average([1, 2, 3, 4, 5])
        3.0
    """
    return sum(numbers) / len(numbers)

Java Documentation

/**
 * Sorts an array using the bubble sort algorithm.
 * 
 * @param arr Array to be sorted (modified in-place)
 * @throws NullPointerException if array is null
 * 
 * @example
 * <pre>{@code
 * int[] nums = {5, 2, 8, 1};
 * bubbleSort(nums);
 * // nums is now {1, 2, 5, 8}
 * }</pre>
 */
public static void bubbleSort(int[] arr) {
    // implementation
}

JavaScript Documentation

/**
 * Debounces a function call.
 * 
 * @param {Function} func - Function to debounce
 * @param {number} delay - Delay in milliseconds
 * @returns {Function} Debounced function
 * 
 * @example
 * const debouncedSearch = debounce(search, 300);
 * debouncedSearch('query');
 */
function debounce(func, delay) {
    // implementation
}

Resources

Tools & Best Practices

Using GitHub Copilot

GitHub Copilot can help improve your documentation:

Learn more: Configuring GitHub Copilot for code review

Enhancing Your GitHub Profile

Your contributions here can boost your professional profile:

Read more: Using your GitHub profile to enhance your resume


πŸ—‚οΈ Repository Structure

Code-Contribution/
β”œβ”€β”€ .github/              # GitHub templates and workflows
β”œβ”€β”€ _includes/            # Jekyll includes
β”œβ”€β”€ _layouts/             # Jekyll layouts
β”œβ”€β”€ Bash/                 # Bash scripts with examples
β”œβ”€β”€ C/                    # C programs with Doxygen docs
β”œβ”€β”€ C#/                   # C# programs with XML docs
β”œβ”€β”€ C++/                  # C++ programs with Doxygen docs
β”œβ”€β”€ Dart/                 # Dart programs
β”œβ”€β”€ Fortran/              # Fortran programs
β”œβ”€β”€ Java/                 # Java programs with JavaDoc
β”œβ”€β”€ Javascript/           # JavaScript with JSDoc
β”œβ”€β”€ Kotlin/               # Kotlin programs
β”œβ”€β”€ Perl/                 # Perl scripts
β”œβ”€β”€ PHP/                  # PHP scripts
β”œβ”€β”€ Python/               # Python with docstrings
β”œβ”€β”€ R/                    # R scripts
β”œβ”€β”€ Ruby/                 # Ruby programs
β”œβ”€β”€ Rust/                 # Rust programs
β”œβ”€β”€ Scala/                # Scala programs
β”œβ”€β”€ Swift/                # Swift programs
β”œβ”€β”€ CONTRIBUTING.md       # Detailed contribution guidelines
β”œβ”€β”€ LICENSE               # Project license
└── README.md             # This file

Each language directory contains:


Purpose of the Repository

This repository serves as a beginner-friendly gateway to open-source. By contributing here, you can:

  1. Practice Git & GitHub workflows
  2. Explore different programming languages
  3. Make your first open-source PR
  4. Join the Hacktoberfest & Hacksquad celebration πŸŽ‰

Example Contributions

Here are some examples of β€˜Hello World’ programs in different programming languages:

Python

print("Hello, World!")

JavaScript

console.log("Hello, World!");

C++

#include <iostream>
int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}

Feel free to explore the repository and see more examples in various languages. Happy contributing!


🎨 Make It Fun β€” Add Creativity!

You can also:

πŸ§‘β€πŸ’» Jekyll Theme

This repository uses the Jekyll theme minima. To run locally:

  1. Install Jekyll: Make sure you have Ruby and Bundler installed. Then install Jekyll with the following command:

    gem install jekyll bundler
    
  2. Clone the repository: If you haven’t already, clone the repository to your local machine:

    git clone https://github.com/your-username/Code-Contribution.git
    
  3. Navigate to the repository directory:

    cd Code-Contribution
    
  4. Install dependencies: Install the required dependencies using Bundler:

    bundle install
    
  5. Run the Jekyll site: Use the following command to build and serve the site locally:

    bundle exec jekyll serve
    
  6. Open your browser: Open your web browser and go to http://localhost:4000 to see the site.

More information on Jekyll, visit the Jekyll documentation.


❀️ Thank You

Hacktoberfest is about community, learning, and fun. Let’s make 2025 the biggest and most engaging yet πŸ₯³.

Hurray!! You just got closer to complete your hacktoberfest challenge.

Purpose of the Repository

The purpose of this repository is to provide a platform for developers to contribute to open-source projects during Hacktoberfest and Hacksquad 2024. By adding a β€˜Hello World’ program in any programming language, contributors can participate in these events, learn about different programming languages, and collaborate with the community.

How to Contribute

  1. Fork the repository to your own GitHub account.
  2. Clone your forked repository to your local machine:

    git clone https://github.com/your-username/Code-Contribution.git
    
  3. Create a new branch for your contribution:

    git checkout -b feature/your-feature-name
    
  4. Add your β€˜Hello World’ program in the appropriate language directory. If the directory does not exist, create one.

  5. Commit your changes with a descriptive commit message:

    git commit -m "Add Hello World in [Language]"
    
  6. Push your branch to your forked repository:

    git push origin feature/your-feature-name
    
  7. Open a Pull Request to the main branch of this repository with a descriptive title and summary of your changes.

  8. Wait for review and approval. Once your pull request is approved, it will be merged into the main branch.

Example Contributions

Here are some examples of β€˜Hello World’ programs in different programming languages:

Python

print("Hello, World!")

JavaScript

console.log("Hello, World!");

C++

#include <iostream>
int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}

Feel free to explore the repository and see more examples in various languages. Happy contributing! Happy Contributing πŸš€