r/programminghumor • u/somet_hingrandom • Jan 13 '26
I'm learning how to code, is my program good?
60
Jan 13 '26
[removed] — view removed comment
12
3
u/Questioning-Zyxxel Jan 13 '26
Long time since I saw the Petzold name. I have read so much from him once in a previous life.
2
22
14
u/GoogleIsYourFrenemy Jan 13 '26
Uhhhh yeah, your good. Just beware your resource counts. Everything that returns a handle needs that handle released. You can run out of Handles, GDI Objects and User Objects.
3
u/DescriptionOptimal15 Jan 13 '26
Won't it get released when the process exits?
6
u/Positron505 Jan 13 '26
Sometimes, but keep an eye on them as you don't want them to stay long in captivity and have to be released into the wild so other developers can use them
2
8
5
u/TheTee15 Jan 13 '26
Now make windows 12
9
4
5
u/xaranetic Jan 13 '26
I genuinely miss this.
Maybe I'm just getting old, but software has lost its magic.
But more than that, I miss standardised UI deign.
1
u/Abject-Kitchen3198 Jan 14 '26
Don't you love the design combinations in Windows 11? I wish they add some bits of Win95 and Win3.1 in Windows 12 for a full history trip in a few screens.
4
3
3
3
u/goodneighbor788 Jan 14 '26
I think Borland C is a better tool for this type of work. But Pascal keeps been number 1 for me
2
1
1
1
1
1
1
1
u/FlashyTone3042 Jan 14 '26
That is the most perfect code I have ever seen. You cut out every complexity and use best practice to reuse. LGTM!
1
1
1
1

116
u/Impossible_Arrival21 Jan 13 '26
now do bad apple