r/programminghorror • • Sep 07 '25

I built an auto docs tool after getting fed up of my internship

0 Upvotes

I spent my whole internship updating docs. It was so boring, and honestly, surprising just how out of date they were.

Also, we had the problem that there was either too much information about something or too little. Never the right amount.

So I built an auto docs maker for any codebase (TS, JS, and Python support for now)

I would really appreciate any feedback on it. I am also new to this so would love some GitHub stars.

Thanks.

https://github.com/TrySita/AutoDocs


r/programminghorror • • Sep 03 '25

Client Side Captcha

Post image
252 Upvotes

r/programminghorror • • Sep 05 '25

My laptop fan sounds like it’s about to take flight

0 Upvotes

All I had open was:

Jira

Slack

VS Code

Notion

Copilot

Blackbox AI

ChatGPT

Spotify

43 Chrome tabs Guess I accidentally built a jet engine.


r/programminghorror • • Sep 02 '25

Found this gem

Post image
244 Upvotes

r/programminghorror • • Sep 01 '25

Query.

Post image
2.8k Upvotes

C# forbids types and members from having the same names as their enclosing types, so they replaced some letters with Cyrillic counterparts...


r/programminghorror • • Sep 02 '25

I'm proud, that it works, but I don't think I should be proud

Post image
6 Upvotes

r/programminghorror • • Aug 31 '25

Totally unreadable font

Thumbnail
gallery
106 Upvotes

r/programminghorror • • Aug 30 '25

I suffered a `Guid` collision 20 minutes ago

Post image
1.7k Upvotes

After 20 minutes checking I'm not mad, and the code is ok, I can assure you I suffered a Guid collision.

Can this luck be transferred to win a lottery ticket?


r/programminghorror • • Aug 30 '25

Someone told me C is faster, did I do it right? (Im a python dev btw)

Post image
5.0k Upvotes

tf is a pointer..


r/programminghorror • • Aug 30 '25

c Someone told me C is faster, did I do it right? (Im a python dev btw)

Post image
963 Upvotes

r/programminghorror • • Aug 29 '25

c i just made my first C program :D

Post image
878 Upvotes

my eyes can never look at C code the same again


r/programminghorror • • Aug 30 '25

The weirdest hello world

Post image
20 Upvotes

I decided to create the weirdest hello world I can in python


r/programminghorror • • Aug 31 '25

can this run doom

Post image
0 Upvotes

i don't really have code but i'm wondering if this could run doom and if someone could code it


r/programminghorror • • Aug 31 '25

LivinGrimoire software design pattern

0 Upvotes

the livingrimoire is an AGI software design pattern, that allows absorbing skills using 1 line of code per skill.

another way to add skills to the AI, now is simply done by copy pasting skill files(.py) into the project's DLC directory.

https://i.ibb.co/Dgg1bkWD/new-file-structure.png

so any skill(image reco, speech reco, face reco, robotics, text to speech, rest API integration (deepseek/chatGPT/grok), local LLM, weather updates, yandere personality, burping) is reduced in complexity to

a copy paste of files.

the design knows to sort the skills and connect them to the right place and manage all the skills and queue their algorithms all in the background.

the project wikis show case other features:

https://github.com/yotamarker/LivinGrimoire/wiki

the project is ported for many programming languages, and can also be considered a coding toolkit.


r/programminghorror • • Aug 28 '25

Javascript we have uuid at home

Post image
1.7k Upvotes

r/programminghorror • • Aug 27 '25

Python My friend is starting uni next week and wanted to prepare. I am not sure he entirely understood what doing math in Python meant

Post image
247 Upvotes

r/programminghorror • • Aug 22 '25

Learn to code in... Python you say?

Post image
333 Upvotes

r/programminghorror • • Aug 22 '25

Today I learnt about BrainF*ck programming language

Post image
532 Upvotes

There are only 8 characters in this programming language and compiler size is less than 1kb.

Also, there is an interesting image of the creator in the official website.

Who were saying RegEx is difficult?


r/programminghorror • • Aug 24 '25

c++ Umm idk

0 Upvotes

Chat I downloaded powerpoint on my phone and then for some reason C++ just seems to have automatically download itself did I catch a virus or what?

Does it like just do that?


r/programminghorror • • Aug 22 '25

The worst part may be in the sixth line of script.js

Thumbnail
gallery
28 Upvotes

Hello!

I'm the OP behind a post you may have seen recently. To make it easier for me to expand the code in the future, I have cleaned up the code so I don't need to send long <script> elements to the vulnerable website's servers every time. Please be aware that I will not be able to give you the fully-unredacted version, even after everything is fixed, due to the rules the site owners have put in place. This is also why I've redacted 32 characters in index.html; you can never guess the URL.


r/programminghorror • • Aug 22 '25

c++ MSVC std::lerp implementation is ...

0 Upvotes

It's unbelievable how complicated trivial stuff can be...

I could understand if they had "mathematically precise and correct" version that long instead of well-known approximation lerp(a, b, t) = a + (b - a) * t, but its really just default lerp.

Here is the github link if you want to check the full version out yourself (brave warrior).

Here is the meat of the implementation:

    template <class _Ty>
    _NODISCARD constexpr _Ty _Common_lerp(const _Ty _ArgA, const _Ty _ArgB, const _Ty _ArgT) noexcept {
        // on a line intersecting {(0.0, _ArgA), (1.0, _ArgB)}, return the Y value for X == _ArgT
    
        const bool _T_is_finite = _Is_finite(_ArgT);
        if (_T_is_finite && _Is_finite(_ArgA) && _Is_finite(_ArgB)) {
            // 99% case, put it first; this block comes from P0811R3
            if ((_ArgA <= 0 && _ArgB >= 0) || (_ArgA >= 0 && _ArgB <= 0)) {
                // exact, monotonic, bounded, determinate, and (for _ArgA == _ArgB == 0) consistent:
                return _ArgT * _ArgB + (1 - _ArgT) * _ArgA;
            }
    
            if (_ArgT == 1) {
                // exact
                return _ArgB;
            }
    
            // exact at _ArgT == 0, monotonic except near _ArgT == 1, bounded, determinate, and consistent:
            const auto _Candidate = _Linear_for_lerp(_ArgA, _ArgB, _ArgT);
            // monotonic near _ArgT == 1:
            if ((_ArgT > 1) == (_ArgB > _ArgA)) {
                if (_ArgB > _Candidate) {
                    return _ArgB;
                }
            } else {
                if (_Candidate > _ArgB) {
                    return _ArgB;
                }
            }
    
            return _Candidate;
        }
    
        if (_STD is_constant_evaluated()) {
            if (_Is_nan(_ArgA)) {
                return _ArgA;
            }
    
            if (_Is_nan(_ArgB)) {
                return _ArgB;
            }
    
            if (_Is_nan(_ArgT)) {
                return _ArgT;
            }
        } else {
            // raise FE_INVALID if at least one of _ArgA, _ArgB, and _ArgT is signaling NaN
            if (_Is_nan(_ArgA) || _Is_nan(_ArgB)) {
                return (_ArgA + _ArgB) + _ArgT;
            }
    
            if (_Is_nan(_ArgT)) {
                return _ArgT + _ArgT;
            }
        }
    
        if (_T_is_finite) {
            // _ArgT is finite, _ArgA and/or _ArgB is infinity
            if (_ArgT < 0) {
                // if _ArgT < 0:     return infinity in the "direction" of _ArgA if that exists, NaN otherwise
                return _ArgA - _ArgB;
            } else if (_ArgT <= 1) {
                // if _ArgT == 0:    return _ArgA (infinity) if _ArgB is finite, NaN otherwise
                // if 0 < _ArgT < 1: return infinity "between" _ArgA and _ArgB if that exists, NaN otherwise
                // if _ArgT == 1:    return _ArgB (infinity) if _ArgA is finite, NaN otherwise
                return _ArgT * _ArgB + (1 - _ArgT) * _ArgA;
            } else {
                // if _ArgT > 1:     return infinity in the "direction" of _ArgB if that exists, NaN otherwise
                return _ArgB - _ArgA;
            }
        } else {
            // _ArgT is an infinity; return infinity in the "direction" of _ArgA and _ArgB if that exists, NaN otherwise
            return _ArgT * (_ArgB - _ArgA);
        }
    }

r/programminghorror • • Aug 20 '25

Python Peak Efficiency Fizzbuzz

Post image
371 Upvotes