this post was submitted on 28 Feb 2025
509 points (97.9% liked)

Programmer Humor

33681 readers
712 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] TimeSquirrel@kbin.melroy.org 17 points 17 hours ago (1 children)

Cobol: you are old, and a nerd, and probably making some sweet cheddar right now propping up a mid to late 20th century beast somewhere.

Assembly: you are a cyborg.

[–] anomnom@sh.itjust.works 4 points 15 hours ago (1 children)

Assembly: you are a cyborg.

Or programming a tiny microcontroller to blink a led as efficient as possible.

[–] TimeSquirrel@kbin.melroy.org 4 points 15 hours ago (1 children)

Something wrong with:

#include <Arduino.h>


void loop()  {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}

? 😂🤮

[–] Scrath@lemmy.dbzer0.com 5 points 8 hours ago

Obviously the only correct way to blink an LED is to use a hardware timer to trigger a DMA transfer which stores a bit in the pin toggle register at a set interval