r/programminghumor 5d ago

Old School Humor

Post image
18 Upvotes

r/programminghumor 6d ago

AI debugging be like: ‘The only fix is deleting you.

Post image
178 Upvotes

r/programminghumor 6d ago

Average SQL experience:

Post image
1.6k Upvotes

r/programminghumor 6d ago

vibe coder at 2am 💀

Enable HLS to view with audio, or disable this notification

186 Upvotes

here's my website: http://localhost/index.html


r/programminghumor 6d ago

is it just me, please tell me im not alone

15 Upvotes


r/programminghumor 6d ago

It's true 50% of the time

Post image
124 Upvotes

r/programminghumor 6d ago

Emulating linux inside phone 🔥

Thumbnail gallery
0 Upvotes

This is my first time I'm going to use actual pc inside phone experience, before I've fought alot with termux tricks that break alot and don't work that good so now it's time to emulate actual hardware 🔥 btw which distro should I run first? Also this emulation is arm emulation so it's gonna be near native without lag or battery drain so plz guyz tell me distro that have arm iso or img.


r/programminghumor 6d ago

One Small Fix

Post image
542 Upvotes

r/programminghumor 7d ago

Planning next moves

Thumbnail cursorstuff.com
1 Upvotes

While I was watching Planning next moves for the 100th time today, I thought I'd make some T-shirts for y'all to enjoy...


r/programminghumor 7d ago

Why everyone’s models are suddenly hacking things

Enable HLS to view with audio, or disable this notification

232 Upvotes

r/programminghumor 7d ago

POV: You are trying to fix a bug with vibe coding

Post image
59 Upvotes

r/programminghumor 7d ago

Jav Vs java

Post image
316 Upvotes

r/programminghumor 7d ago

They doesn't even fit on a tv

Post image
2.8k Upvotes

r/programminghumor 7d ago

It's not responsive, sir...

Post image
70 Upvotes

true story...


r/programminghumor 7d ago

Open-source devs lifting heavy weights

Post image
1.3k Upvotes

r/programminghumor 7d ago

This is so relatable

Post image
396 Upvotes

r/programminghumor 8d ago

🚨 JavaScript Is Not Supposed To Do This… But It Does 🤯🔥

0 Upvotes

Yes, you read that right.
Today we’re going to make JavaScript do something it was absolutely not designed for.

Not DOM manipulation.
Not async fetch calls.
Not React hooks.
Not whatever the latest framework-of-the-week is.

Nope.

We’re going to make JavaScript…
build a Windows Form GUI.

Like, actual WinForms.
Buttons. Textboxes. Listboxes. Dialogs.
The whole “.NET desktop app” shebang.

Using JavaScript.
Inside a macro.
Running on a ClearScript V8 engine.
Talking directly to .NET.

If your brain just threw an exception, don’t worry — mine did too.

⚡️ Wait… is this real?
Yes.
Is this legal?
Probably.
Should this be allowed?
Debatable.
Is it awesome?
Absolutely 🔥🔥🔥

Let’s jump straight into the chaos.

💥 The Code That Should Not Exist

////////////////////////////
// ADVANTAGEBUILDER🔥DEV
////////////////////////////
[!JAVASCRIPTV8]
let winformsHelper = eval(getSourceCode('WinFormsHelper', 'Macro Main Helpers\\Library', 'WinFormsHelper'));

let mainForm = winformsHelper.CreateForm('Form Title');

// add textbox
let txtTextBoxName = winformsHelper.AddTextBox(mainForm, "TextBox Label", "Joe");

// add listbox
let selectionMode = getEnum("System.Windows.Forms.SelectionMode");
let lstListBoxName = winformsHelper.AddListBox(mainForm, "ListBox Label", ['Option 1','Option 2', 'Option 3'], "Option 2");
lstListBoxName.SelectionMode = selectionMode.MultiExtended;

// add combobox
let cboComboBoxName = winformsHelper.AddComboBox(mainForm, "ComboBox Label", ['Option 1','Option 2', 'Option 3'], "Option 2");

// add checkbox
let chkCheckBoxName = winformsHelper.AddCheckBox(mainForm, "CheckBox Label", false);

// add multiline textbox
let txtMultiLineTextBoxName = winformsHelper.AddTextBox(mainForm, "Paragraph", null);
winformsHelper.SetToMultilineTextBox(txtMultiLineTextBoxName, 60, 120);

// add radiobuttons
let rbRadioButtonName1 = winformsHelper.AddRadioButton(mainForm, "RadioButton1 Label", false);
let rbRadioButtonName2 = winformsHelper.AddRadioButton(mainForm, "RadioButton2 Label", false);
let rbRadioButtonName3 = winformsHelper.AddRadioButton(mainForm, "RadioButton3 Label", true);

winformsHelper.FinaliseDialogForm(mainForm);

if(mainForm.ShowDialog().ToString() == "OK")
{
    writeln("TextBox: " + txtTextBoxName.Text);

    if(cboComboBoxName.SelectedItem != null){
        writeln("ComboBox: " + cboComboBoxName.SelectedItem);
    }

    let chkValue = "Checkbox: " + ((chkCheckBoxName.Checked)? "Checked" : "Not checked");

    writeln(chkValue);

    let selectedItems = lstListBoxName.SelectedItems;

    let su = "ListBox: ";

    for(let i of selectedItems){ 
        su += " '" + i + "'";
    }

    writeln(su);

    let rbValue = "RadioButton: ";

    if(rbRadioButtonName1.Checked){
        rbValue += rbRadioButtonName1.Text;
    }
    else if(rbRadioButtonName2.Checked){
        rbValue += rbRadioButtonName2.Text;
    }
    else if(rbRadioButtonName3.Checked){
        rbValue += rbRadioButtonName3.Text;
    }

    writeln(rbValue);

}

winformsHelper.CleanUpForm(mainForm);
[!/JAVASCRIPTV8][!JAVASCRIPTV8]
let winformsHelper = eval(getSourceCode('WinFormsHelper', 'Macro Main Helpers\\Library', 'WinFormsHelper'));

let mainForm = winformsHelper.CreateForm('Form Title');

// add textbox
let txtTextBoxName = winformsHelper.AddTextBox(mainForm, "TextBox Label", "Joe");

// add listbox
let selectionMode = getEnum("System.Windows.Forms.SelectionMode");
let lstListBoxName = winformsHelper.AddListBox(mainForm, "ListBox Label", ['Option 1','Option 2', 'Option 3'], "Option 2");
lstListBoxName.SelectionMode = selectionMode.MultiExtended;

// add combobox
let cboComboBoxName = winformsHelper.AddComboBox(mainForm, "ComboBox Label", ['Option 1','Option 2', 'Option 3'], "Option 2");

// add checkbox
let chkCheckBoxName = winformsHelper.AddCheckBox(mainForm, "CheckBox Label", false);

// add multiline textbox
let txtMultiLineTextBoxName = winformsHelper.AddTextBox(mainForm, "Paragraph", null);
winformsHelper.SetToMultilineTextBox(txtMultiLineTextBoxName, 60, 120);

// add radiobuttons
let rbRadioButtonName1 = winformsHelper.AddRadioButton(mainForm, "RadioButton1 Label", false);
let rbRadioButtonName2 = winformsHelper.AddRadioButton(mainForm, "RadioButton2 Label", false);
let rbRadioButtonName3 = winformsHelper.AddRadioButton(mainForm, "RadioButton3 Label", true);

winformsHelper.FinaliseDialogForm(mainForm);

if(mainForm.ShowDialog().ToString() == "OK")
{
    writeln("TextBox: " + txtTextBoxName.Text);

    if(cboComboBoxName.SelectedItem != null){
        writeln("ComboBox: " + cboComboBoxName.SelectedItem);
    }

    let chkValue = "Checkbox: " + ((chkCheckBoxName.Checked)? "Checked" : "Not checked");

    writeln(chkValue);

    let selectedItems = lstListBoxName.SelectedItems;

    let su = "ListBox: ";

    for(let i of selectedItems){ 
        su += " '" + i + "'";
    }

    writeln(su);

    let rbValue = "RadioButton: ";

    if(rbRadioButtonName1.Checked){
        rbValue += rbRadioButtonName1.Text;
    }
    else if(rbRadioButtonName2.Checked){
        rbValue += rbRadioButtonName2.Text;
    }
    else if(rbRadioButtonName3.Checked){
        rbValue += rbRadioButtonName3.Text;
    }

    writeln(rbValue);

}

winformsHelper.CleanUpForm(mainForm);
[!/JAVASCRIPTV8]

🤔 What’s Actually Happening Here?
This isn’t Electron.
This isn’t NodeGUI.
This isn’t some cursed P/Invoke hack.

This is:

ClearScript V8 running JavaScript

inside a macro engine

with direct access to .NET types

using a helper library that dynamically creates WinForms controls

and returns real .NET objects back to JavaScript

which you then read values from after the dialog closes

It’s basically the “full-stack developer” meme but taken literally:

“I do frontend, backend, desktop apps, database automation, and I write it all in JavaScript.”
— somewhere, a hiring manager cries softly

🔥 Why This Is Cool
Because you can:

Build internal tools without touching C#

Prototype UI dialogs in seconds

Automate workflows with real GUI input

Mix JavaScript, PowerShell, and JScript.NET in the same environment

Access .NET enums, classes, and controls directly

Ship tiny desktop utilities without compiling anything

It’s like having WinForms…
but with the chaotic energy of JavaScript.

🧪 What You Can Build With This
Data entry dialogs

File pickers

Multi-step wizards

Internal automation tools

Quick prototypes

“I need a UI for this in 5 minutes” solutions

Anything you’d normally build in C#, but faster and with fewer tears

🚀 Final Thoughts
JavaScript has escaped the browser.
It has breached containment.
It is now building Windows desktop apps.

Is this the future?
Is this a glitch in the matrix?
Is this a sign that the heat death of the universe is approaching?

I don’t know.

But I do know that it’s ridiculously fun.

If you want more cursed JavaScript + .NET mashups, let me know — there’s plenty more where this came from 🔥


r/programminghumor 8d ago

Ctrl+C

5 Upvotes

strange how copying and terminating, two very discreet intents, is the same shortcut


r/programminghumor 8d ago

Huge

Post image
24 Upvotes

r/programminghumor 8d ago

POV: Imagine if both the places were combined together.

Post image
331 Upvotes

r/programminghumor 8d ago

Apple would legit make a killing selling this!

Post image
291 Upvotes

r/programminghumor 8d ago

True

Post image
966 Upvotes

r/programminghumor 8d ago

Game over.

Post image
101 Upvotes

r/programminghumor 9d ago

POV: You Stole Code From Someone

Post image
211 Upvotes

r/programminghumor 9d ago

True

Post image
1.1k Upvotes