Skip to content

Conversation

@Mdanial01
Copy link

Description

This pull request adds a new usage example demonstrating the base64_encode function from SplashKit’s Utilities module.
It shows how to convert a plain string (e.g., "Hello SplashKit") into Base64. This is useful for data serialization, secure text transmission, and storage workflows.

All five language examples are included, along with a text description.

Type of change

New feature (non-breaking change which adds functionality)

Bug fix (non-breaking change which fixes an issue)

Breaking change (fix or feature that would cause existing functionality to not work as expected)

Documentation (update or new)

How Has This Been Tested?

Each example file has been manually run in its respective environment to verify that the input string "Hello SplashKit" produces the correct Base64 output ("SGVsbG8gU3BsYXNoS2l0").

Verified that all five example files are included and follow SplashKit naming conventions.

No additional dependencies are required beyond SplashKit.

Testing Checklist

Tested in latest C++ environment

Tested in latest Python environment

Tested in latest C# environment

npm run build

npm run preview

Checklist
If involving code

My code follows the style guidelines of this project

I have performed a self-review of my own code

I have commented my code in hard-to-understand areas (where needed)

I have made corresponding changes to the documentation

My changes generate no new warnings

If modified config files

I have checked the following files for changes:

package.json

astro.config.mjs

netlify.toml

docker-compose.yml

custom.css

Folders and Files Added/Modified

Added:

public/usage-examples/utilities/base64_encode-1-example.cpp

public/usage-examples/utilities/base64_encode-1-example.py

public/usage-examples/utilities/base64_encode-1-example-oop.cs

public/usage-examples/utilities/base64_encode-1-example-top-level.cs

public/usage-examples/utilities/base64_encode-1-example.txt

Modified:

None

Additional Notes

This example is designed to be simple and concise to demonstrate Base64 encoding clearly across multiple languages.

Metadata for the usage example has been included following SplashKit style.

Ready for peer review according to SplashKit usage example guidelines.

base_encode_ss

@netlify
Copy link

netlify bot commented Oct 12, 2025

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit 3fc43db
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/68eb997275b08b00084a7981
😎 Deploy Preview https://deploy-preview-668--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Mdanial01 Mdanial01 changed the base branch from main to usage-examples October 12, 2025 12:05
Copy link

@stantheman96 stantheman96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General Information

Type of Change: Documentation update / usage examples

Review Summary

The Base64 encode usage examples for C++, C#, and Python have been reviewed. The examples are clear, consistent, and successfully demonstrate the intended utility function.

Code Quality

All languages contain concise and readable code

Structure and logic are consistent across examples

Comments clearly explain each step of the process

Maintainability

Examples are modular and can be easily reused or extended in the future

Naming conventions and file structure align with existing usage-example standards

Functionality

The examples correctly demonstrate the expected behaviour of the Base64 encoding function

Output is clear and unambiguous

No differences in behaviour are observed across languages

Testing

Unit tests: N/A (usage examples)

No potential runtime issues identified during code review

Checklist

Acceptance criteria met

Multi-language examples provided

Consistent structure and formatting

No unrelated or extraneous changes

Verdict

✅ Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants