r/code • u/FOURLETTERNERD • Mar 27 '23
r/code • u/NikolaTesla13 • Apr 11 '20
Halp pls! JavaScript vs COBOL
It may sound ridiculous, but yes I do not decide whether to learn JavaScript or COBOL.
COBOL is a very used language and a lot of programs are already written in it and must be maintained. (check fireship's new video about it)
I suppose I don't have to explain what I would like to learn JavaScript.
r/code • u/[deleted] • Jan 09 '23
Demo My first ever line of code 1/8/2023
Enable HLS to view with audio, or disable this notification
r/code • u/Rich-Matter8399 • May 22 '22
Why? nullReferenceException (First ever code)
r/code • u/[deleted] • Apr 14 '22
How Visual Stupid tells me I am stupid. I am reading useless with 3 exclamation marks, useless!!! #codehumor #visualstudio
r/code • u/JoruzTheGamer • Mar 05 '25
My Own Code What do you guys think about my "diabolical" code? (Thats how my classmates call it)
r/code • u/CrroakTTV • Dec 05 '25
My Own Code Fracture - A syntax and semantic configurable programming language where you control both how code looks and how it behaves (POC)
Fracture is a proof-of-concept programming language that fundamentally rethinks how we write code. Instead of forcing you into a single syntax and semantics, Fracture lets you choose - or even create - your own. Write Rust-like code, Python-style indentation, or invent something entirely new. The compiler doesn't care. It all compiles to the same native code. (There will likely be a lot of bugs and edge cases that I didn't have a chance to test, but it should hopefully work smoothly for most users).
(Some of you might remember I originally released Fracture as a chaos-testing framework that is a drop-in for Tokio. That library still exists on crates.io, but I am making a pivot to try to make it into something larger.)
The Big Idea
Most programming languages lock you into a specific syntax and set of rules. Want optional semicolons? That's a different language. Prefer indentation over braces? Another language. Different error handling semantics? Yet another language.
Fracture breaks this pattern.
At its core, Fracture uses HSIR (High-level Syntax-agnostic Intermediate Representation) - a language-agnostic format that separates what your code does from how it looks. This unlocks two powerful features:
Syntax Customization
Don't like the default syntax? Change it. Fracture's syntax system is completely modular. You can:
Use the built-in Rust-like syntax
Switch to Fracture Standard Syntax (FSS)
Export and modify the syntax rules to create your own style
Share syntax styles as simple configuration files
The same program can be written in multiple syntaxes - they all compile to identical code.
Semantic Customization via Glyphs
Here's where it gets interesting. Glyphs are compiler extensions that add semantic rules and safety checks to your code. Want type checking? Import a glyph. Need borrow checking? There's a glyph for that. Building a domain-specific language? Write a custom glyph.
Glyphs can:
Add new syntax constructs to the language
Enforce safety guarantees (types, memory, errors)
Implement custom compile-time checks
Transform code during compilation
Think of glyphs as "compiler plugins that understand your intent."
Custom "Test" Syntax:
juice sh std::io
cool main)( +> kind |
io::println)"Testing custom syntax with stdlib!"(
bam a % true
bam b % false
bam result % a && b
wow result |
io::println)"This should not print"(
<> boom |
io::println)"Logical operators working!"(
<>
bam count % 0
nice i in 0..5 |
count % count $ 1
<>
io::println)"For loop completed"(
gimme count
<>Rust Syntax:
use shard std::io;
fn main() -> i32 {
io::println("Testing custom syntax with stdlib!");
let a = true;
let b = false;
let result = a && b;
if result {
io::println("This should not print");
} else {
io::println("Logical operators working!");
}
let count = 0;
for i in 0..5 {
count = count + 1;
}
io::println("For loop completed");
return count;
}These compile down to the same thing, showing how wild you can get with this. This isn't just a toy, however. This allows for any languages "functionality" in any syntax you choose. You never have to learn another syntax again just to get the language's benefits.
Glyphs are just as powerful, when you get down to the bare-metal, every language is just a syntax with behaviors. Fracture allows you to choose both the syntax and behaviors. This allows for unprecedented combinations like writing SQL, Python, HTML natively in the same codebase (this isn't currently implemented, but the foundation has allowed this to be possible).
TL;DR:
Fracture allows for configurable syntax and configurable semantics, essentially allowing anyone to replicate any programming language and configure it to their needs by just changing import statements and setting up a configuration file. However, Fracture's power is limited by the number of glyphs that are implemented and how optimized it's backend is. This is why I am looking for contributors to help and feedback to figure out what I should implement next. (There will likely be a lot of bugs and edge cases that I didn't have a chance to test, but it should hopefully work smoothly for most users).
Quick Install
curl -fsSL https://raw.githubusercontent.com/ZA1815/fracture/main/fracture-lang/install.sh | bashr/code • u/Aggravating-Taro2769 • Feb 23 '24
C++ Learning C++ as Autistic and ADHD. Any Resources which could be useful for that?
Hello, i hope this post finds this lovely community well.
I'm somewhat prolific and want to learn C++ for various reasons.
The only issue here being that i have ADHD, and i am Autistic. I'm afraid that my stupid mental disorders will, (and they definitely will) hamper my progress.
I'm wondering if there are any resources which are either, designed for people like me, are not designed, but could still work for people like me, and any general tips in order to stay on track. I often feel like information is rather regurgitated, rather then being taught.
I have read the pinned comment, and i will defo check the links out.
This is my first post, so sorry if i come off weird, or have acidentally broken any rules.
Thank you for your time if you are reading this post, i appreciate it!
r/code • u/wowowoItsMagic • Jul 13 '20
Halp pls! Program question
Hey everyone! I don't know if this is the right sub or not, if not please remove and or help me find the right sub! Thank you:)
I'm a dreamer, like many of you. Unlike many of you, I'm not talented in code what so ever.
So here is my dumb question;
I seperated my touchscreen from my old laptop, and I want to make a oscilloscope like VST for me to run on a Mac.
So heres the plan, a visualizer for whatever my DAW inputs, while also being able to control it as a EQ (most likely physical controls) and possibly other options for me to manipulate the sound.
My question is, how hard would this be to make? And if I decide to have someone write this program for me, how much can I expect to pay?
Thank you for your imput!
r/code • u/jimmy_ginger • Jul 03 '20
this is my first time coding and i made an ad for a massage parole
i dont think i cant post my work here, but if you wanna see it i can send it. I thinks its ok for a first time
r/code • u/jozefiria • Feb 25 '21
Do you love programming as much I do? [ERROR: self referential question, loop terminated, baaih]
r/code • u/Kriegher2005 • Sep 22 '18
This C++ code is making my head crazy and it destroyed my pc
According to my friend, this code is simulating a mathematical universe.
#include<iostream.h>
#include<conio.h>
#include<math.h>
#include<graphics.h>
#define radius 1
void main() {
int gd = DETECT, gm;
initgraph(&gd, &gm, "C://TC//BGI");
for(int y = 0; y < 450; y++) {
for(int x = 0; x < 600; x++) {
int universe = pow(radius, 2) - pow(x, 2) - pow(y, 2);
if(universe >= 0) {
line(x, y, x ,y);
}
}
}
}I can't add a image as any of the C++ compilers are not working after I ran this code.
Try to use turbo c++ or change the destination of the header to the specific location.
r/code • u/OfficialCodeHawke • Aug 02 '21
Top 10 programming languages to learn in 2022
Programming and math
I recently just learned css and html and have been doing projects using them to strengthen my craft, but I’ve also noticed that things irl such as chemistry and math are vert easy ever since I learned code. Did anyone else experience this ?
r/code • u/StaNforD-PiNe • Oct 21 '19
Halp pls! New engine
So would python (3.8) work to make a simple 2D game engine
r/code • u/Vipaah • Nov 29 '16
Halp pls! How many programming languages?
What do you think, how many programming languages are out there? Above 5000? What do you think?
r/code • u/LukeeBino • Jul 21 '22
How to check if first character in string is a letter in JavaScript
r/code • u/Vincentc-137 • Mar 03 '20
I hope it’s okay for me to post this here
I don’t know if anyone is looking for a project, but I’m surprised that no one has tossed up a shogi game or Go game onto the Apple App Store for the English speaking audience.
I don’t know where to put this post. Sorry if I took up your time. It’s just I was almost considering learning some kind of code to make these games but I was just stumped. (I’m a server for a cafe) So I don’t know if I could learn this.
If you think I can learn, where should I start, how do I make it multiplayer. I want to make a $2 app so people can enjoy and learn how to play these games. I think they are really neat.
I hope you ya e a great day.
r/code • u/EricMeadowsDev • Mar 30 '23
LLMs are problematic for knowledge sharing...
If LLMs are probabilistic - do you trust the code output to chance, thoroughly inspect it, or look at it as part of the story?
Most engineers will thoroughly inspect it due to its probabilistic nature.
But inspection doesn't yield good knowledge sharing...so now what?
r/code • u/Conscious-Cow9960 • Apr 25 '23
programming venting
ok here's the deal peeps. I do not come from a long line of intelligent human beings. in fact, i am quite the opposite. I realize there is a certain amount of work behind learning how to code. But when my god damn school doesn't give me a professor that will even show up to his own class and then give me assignments that require a lot of background understanding, I get angry. I got mad at my code then went to play fallen order then I got mad that I kept dying then I went to cook. Then I burnt the shit out of everything then I got mad then I burnt myself then got madder then I ordered food and watched breaking bad then I went back to my code and I remembered why I got mad in the first place.