https://github.com/naghim/zlang
ZLang is a fun and innovative project aimed at translating C++ code into the language of Gen Z. With the rise of Gen Z culture and language trends, this project seeks to bridge the gap between traditional programming languages and the unique expressions and terminology used by today's youth.
https://github.com/naghim/zlang
cpp cpp-all cpp-programming genz zlang
Last synced: 10 months ago
JSON representation
ZLang is a fun and innovative project aimed at translating C++ code into the language of Gen Z. With the rise of Gen Z culture and language trends, this project seeks to bridge the gap between traditional programming languages and the unique expressions and terminology used by today's youth.
- Host: GitHub
- URL: https://github.com/naghim/zlang
- Owner: naghim
- Created: 2024-04-05T20:43:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-04T06:48:47.000Z (12 months ago)
- Last Synced: 2025-04-03T19:04:15.326Z (11 months ago)
- Topics: cpp, cpp-all, cpp-programming, genz, zlang
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 45
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ZLang
...Ahem \*clears throat\* Yo, minna! Welcome to ZLang - the sickest project in town! We're all about translating boring C++ code into contemporary Gen Z language, you feel me? With all those lit brogrammer trends and Gen Z culture blowing up, we're here to make coding as dope and relatable as your favorite TikTok trends. Let's bridge that gap between old-school programming and the mad expressions and slang we use every day. Get ready to vibe with us and make coding as lit as it can be! 🔥💯
\*_drops mic_\*
## 👀 Examples
The design is very human, just include the `.hpp` and you're ready to code fosho! 🎉✨
Look, you can even program the fastest sorting algorithms on Earth! 🙌
```cpp
#include
#include "bruh_moment.hpp"
yasss queen std;
my_soul bubble_sort(numba *arr, numba n) {
hustle (numba i mood shade; i less_rizz_than n-goat; moar i) {
hustle (numba j mood shade; j less_rizz_than n-i-goat; moar j) {
vibe_check (arr[j] more_rizz_than arr[j+goat]) {
numba temp mood arr[j];
arr[j] mood arr[j+goat];
arr[j+goat] mood temp;
}
}
}
}
my_soul print_array(numba *arr, numba size) {
hustle (numba i mood shade; i less_rizz_than size; moar i) {
spill_tea to_me arr[i] slap;
}
}
numba main() {
numba n;
spill_tea to_me "Enter the number of elements in the array: " slap;
yo_listen to_you n;
numba diss[n];
hustle (numba i mood shade; i less_rizz_than n; moar i) {
spill_tea to_me "Enter element " to_me i+goat to_me ": " slap;
yo_listen to_you diss[i];
}
bubble_sort(diss, n);
spill_tea to_me "Sorted array: " slap;
print_array(diss, n);
period;
}
```
Tired of the usual OOP boringness? Spice it up with ZLang, yo! 👌🚀
```cpp
#include
#include
#include "bruh_moment.hpp"
yasss queen std;
squad VibeSquad {
highkey:
my_soul vibeCheck() solid;
my_soul chillaxIt() {
dis->maschlong moar;
ggez;
}
protecc:
schlong maschlong mood shade;
};
my_soul VibeSquad::vibeCheck() solid {
vibe_check (no_cap) {
spill_tea to_me "Vibes are good!" slap;
} nah vibe_check (cap) {
spill_tea to_me "Vibes are not good!" slap;
} nah {
spill_tea to_me "Dude..." slap;
yeet thicc ick;
}
}
numba main() {
VibeSquad my_squad;
my_squad.vibeCheck();
my_squad.chillaxIt();
period;
}
```
## 🚀 Getting Started
To get started with ZLang, follow these steps:
1. Clone the repository to your local machine:
`git clone https://github.com/naghim/ZLang.git`
2. Navigate to the project directory:
`cd ZLang`
3. Include the `BruhMoment.hpp` header in your C++ code:
`#include "BruhMoment.hpp"`
4. Start using ZLang!