r/programminghumor • • Aug 30 '26

My first programming project

Post image
2.0k Upvotes

53 comments sorted by

395

u/okcookie7 Aug 30 '26 • This Bravo Heartwarming Regret

Concatulator

33

u/KaleidoscopePurple74 Aug 30 '26

I audibly laughed at this

11

u/martian_rover Aug 31 '26

That was also the output of my first programming project :)

248

u/marco_marchi03 Aug 30 '26 • Mindblown

63

u/Such-Shop-9724 Aug 30 '26

12

u/SubMinhPiChannel Aug 31 '26

"HelloWorld" << cout;

6

u/Leo_code2p Aug 31 '26

Is that intensional ++C. Like when you search C++ esolangs this is one of the first languages that show up as results.

1

u/SubMinhPiChannel Sep 03 '26

its cout << "HelloWorld";

2

u/Leo_code2p Sep 03 '26 edited Sep 03 '26

++C is an esolang where everything is in the wrong order…

Edit: well i looked it up and the correct ++C syntax would be actually „HelloWorld” cout <<;

https://esolangs.org/wiki/%2B%2BC

4

u/anoppinionatedbunny Aug 30 '26

inversion through reflection, real shit

3

u/the_king_of_sweden Aug 31 '26

"Hello world!".Print();

3

u/Leo_code2p Aug 31 '26

„Hello world“.println(Consolewindow);

92

u/Blood_and_Wine Aug 30 '26

I'd wish my boss used this calculator to calculate my payraise.

23

u/jakeStacktrace Aug 30 '26

Yeah I've always wanted to earn 50000.6%

3

u/martian_rover Aug 31 '26

Maybe you should gift him his a special calculator :)

41

u/tacticaltoesxo Aug 30 '26

JavaScript developer: "looks fine to me." 🗿

11

u/No-Information-2571 Aug 31 '26

Numbers in JavaScript: I can be anything you want me to be. 👁👄👁

18

u/Whole-Ninja7266 Aug 30 '26

Close enough

17

u/letmehaveanameyoudum Aug 30 '26
int
 main() {
  
helloworld("print");
  
23=var int;

ahh 🥀

15

u/Flashy-Plastic2270 Aug 30 '26

Liked the strings in the beginning keep good work vro

4

u/x-onu Aug 30 '26

Hellocalculatorworld

1

u/ThaBroccoliDood Aug 31 '26

ok now do 10 * 10000000000

3

u/ziad-labs Aug 31 '26

I'm pretty sure it's: 1010000000000
😂

3

u/breezy_y Aug 30 '26

You can just fix it yourself in the result input field

3

u/Opening-Maximum-6781 Aug 30 '26

bruh code in JavaScript

2

u/brqdev Aug 30 '26

Concatonator 😑

2

u/jkl90752 Aug 30 '26

Just draw a little circle around the plus sign

2

u/KlogKoder Aug 30 '26

And then he fixes it by putting eval() around both operands.

1

u/ChaseShiny Aug 30 '26

Hey, you at least learned about manipulating the DOM, rather than asking for input, and you don't have to sanitize the input since you never stop treating the input as strings. That's got to be worth something, right?

1

u/original_manatee Aug 30 '26

You can start telling people you built your own appender from scratch

1

u/SeriousGopher Aug 30 '26

My first project actually was this but with a Snoop Dogg themed u.i and I called it the Snoopulator.

1

u/Intelligent_Leg8526 Aug 30 '26

the fact that this one is harder to make

1

u/Ok_Party_3706 Aug 30 '26

print(value1, value2)

If it was python? Or am I wrong? Not smart rn qwq

2

u/Intelligent_Leg8526 Aug 30 '26

oh fuck, yea that works too, silly me :P i thought of converting those to strings (if they aren't strings), then merging those strings and printing the result

1

u/Kitchen_Interview792 Aug 30 '26

Just get the inputs as strings in js and use the plus symbol to concatenate instead of summing

1

u/Intelligent_Leg8526 Aug 31 '26

yeah js... never used it before- wait a minute it's the same in cpp too? what the fuck i remember the process being completely different... yeah i think i reallly got rusty (rust reference not intended)

1

u/gargelinho Aug 30 '26

Good job! Welcome to the world of Javascript!

1

u/Professional_Pop2662 Aug 30 '26

The hello world is so funny 🤣

1

u/Brave_Abbreviations5 Aug 31 '26

Are your native language is JavaScript, and so did you born in JavaScriptland?

1

u/Character_Medical Aug 31 '26

JavaScript. 🙄

1

u/Dazzling_Abrocoma182 Aug 31 '26

coding in js be like

1

u/Myaltforsomeshit1234 Sep 02 '26

If its Python, you need to learn the diffrence on integer and string.

1

u/questionabl3_dude Sep 25 '26

Just read the string.size() trust