This repository is designed for testing and learning various programming languages, VS Code integration, and Git workflows. It contains Hello World examples in multiple languages and resources for testing GitHub Copilot and other development tools.
- What's Included
- Prerequisites
- Getting Started
- How to Clone in VS Code
- Making Changes
- Commit and Sync
- Running the Examples
- Using for Testing
- GitHub Copilot Instructions
- Contributing
This repository contains:
- PHP (
php/hello.php) - Basic PHP syntax and features - HTML (
html/hello.html) - Interactive HTML5 page with CSS and JavaScript - C# (
csharp/Hello.cs) - C# with classes, LINQ, and collections - C++ (
cpp/hello.cpp) - Modern C++ with STL and classes - Python (
python/hello.py) - Python 3 with type hints and classes - JavaScript (
javascript/hello.js) - Node.js with async/await and ES6+ features
- GitHub Copilot Instructions (
.github/copilot-instructions.md) - Template for customizing Copilot behavior - Test Data (
.github/test-data.json) - Sample JSON data for testing - Sample Configuration (
.github/sample-config.yml) - YAML configuration example
To run the examples in this repository, you'll need:
- Git - Download Git
- VS Code - Download VS Code
- Language Runtimes (install as needed):
- PHP: PHP Downloads
- .NET SDK: Download .NET
- C++ Compiler: GCC or Clang or MSVC
- Python 3: Python Downloads
- Node.js: Node.js Downloads
- Clone this repository (see detailed instructions below)
- Open the folder in VS Code
- Navigate to any language folder
- Run the example using the appropriate command
- Open VS Code
- Open Command Palette:
- Windows/Linux:
Ctrl+Shift+P - macOS:
Cmd+Shift+P
- Windows/Linux:
- Type
Git: Cloneand press Enter - Paste the repository URL:
https://github.com/iaretechnician/testing.git - Choose a location on your computer to save the repository
- Open the cloned repository when prompted
- Open VS Code
- Click the Source Control icon in the sidebar (or press
Ctrl+Shift+G) - Click "Clone Repository"
- Paste the repository URL:
https://github.com/iaretechnician/testing.git - Choose a location and open the folder
- Open Terminal in VS Code (
Ctrl+``or View > Terminal) - Navigate to your desired directory:
cd /path/to/your/projects - Clone the repository:
git clone https://github.com/iaretechnician/testing.git
- Open the folder:
cd testing code .
It's good practice to create a new branch for your changes:
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Type
Git: Create Branchand press Enter - Enter a branch name (e.g.,
feature/my-testortest/new-feature)
Or use the terminal:
git checkout -b feature/my-test- Open any file in VS Code
- Edit the content
- VS Code will automatically detect changes (yellow dot on the file tab)
- Modified files will appear in the Source Control panel
- Open Source Control panel: Click the Source Control icon or press
Ctrl+Shift+G - Review changes: Click on any file to see a diff view showing what changed
- Discard changes: Right-click a file and select "Discard Changes" to undo
- Open Source Control panel (
Ctrl+Shift+G) - Review your changes - modified files appear under "Changes"
- Stage changes:
- Click the
+icon next to individual files to stage them - Or click the
+icon next to "Changes" to stage all files
- Click the
- Write a commit message in the text box at the top
- Commit:
- Click the checkmark β button above the message box
- Or press
Ctrl+Enter(Windows/Linux) /Cmd+Enter(macOS)
# View status
git status
# Stage all changes
git add .
# Or stage specific files
git add path/to/file.txt
# Commit with a message
git commit -m "Your descriptive commit message"- After committing, click the Sync Changes button in the Source Control panel
- Or click the sync icon in the bottom status bar (circular arrows)
- Authenticate if prompted (first time only)
- Your changes are now pushed to GitHub!
# Push to remote repository
git push origin branch-name
# Or if you're on the main branch
git push origin mainTo get the latest changes from GitHub:
- Open Command Palette (
Ctrl+Shift+P) - Type
Git: Pulland press Enter
Or use terminal:
git pull origin maincd php
php hello.phpcd html
# Open hello.html in a web browser
# Or use VS Code Live Server extensioncd csharp
# Using .NET SDK
dotnet run
# Or compile and run manually
csc Hello.cs && ./Hello.exe # Windows
mcs Hello.cs && mono Hello.exe # Linux/macOS with Monocd cpp
# Using GCC
g++ -std=c++11 hello.cpp -o hello && ./hello
# Using Clang
clang++ -std=c++11 hello.cpp -o hello && ./hellocd python
python hello.py
# or
python3 hello.pycd javascript
node hello.jsThis repository is perfect for:
-
Testing Git Workflows
- Practice branching, merging, and pull requests
- Experiment with commit strategies
- Learn conflict resolution
-
Testing VS Code Extensions
- GitHub Copilot integration
- Language-specific extensions
- Debugger configurations
- Linters and formatters
-
Testing CI/CD Pipelines
- Add GitHub Actions workflows
- Test build processes
- Practice deployment scenarios
-
Learning Multiple Languages
- Compare syntax across languages
- Understand different paradigms
- Practice porting code between languages
-
Testing Development Tools
- IDE features
- Code completion
- Refactoring tools
- Version control integration
- Modify the Hello World examples to add new features
- Create your own language examples
- Set up automated testing
- Add GitHub Actions workflows
- Practice code reviews with pull requests
- Test merge conflict resolution
- Experiment with .gitignore patterns
This repository includes a GitHub Copilot Instructions template at .github/copilot-instructions.md.
GitHub Copilot reads this file to understand your project's conventions and preferences, providing more contextually relevant suggestions.
- Open
.github/copilot-instructions.md - Read the template to understand the sections
- Customize each section for your project:
- Update project information
- Define your coding standards
- Specify frameworks and libraries
- Set naming conventions
- Add testing guidelines
- Commit the changes so Copilot uses your instructions
- More accurate code suggestions
- Consistent with your coding style
- Saves time on repetitive patterns
- Helps team members maintain standards
This is a testing repository, so feel free to:
- Add more language examples
- Improve existing examples
- Add documentation
- Share testing scenarios
- Report issues
- Suggest improvements
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This is a testing repository for educational purposes. Feel free to use, modify, and distribute as needed.
- Commit Often: Make small, frequent commits with clear messages
- Use Branches: Keep your main branch clean by working in feature branches
- Pull Before Push: Always pull the latest changes before pushing
- Review Changes: Always review your changes before committing
- Write Good Commit Messages: Be descriptive about what changed and why
Problem: Can't push changes
- Solution: Make sure you have write access to the repository
- Solution: Check if you need to pull changes first (
git pull)
Problem: Merge conflicts
- Solution: Use VS Code's built-in merge conflict resolver
- Solution: Manually edit files to resolve conflicts
Problem: Lost changes
- Solution: Check
git reflogto find lost commits - Solution: Use VS Code's local history extension
Problem: Can't run examples
- Solution: Make sure you have the required runtime installed
- Solution: Check file permissions (chmod +x for scripts)
If you have questions or need help:
- Check the documentation in this README
- Review the example files for comments
- Open an issue in the repository
- Consult the additional resources listed above
Happy Testing! π