The problem is StackOverflow is filled with *upvoted* old and less-than-ideal answers (low performance, spaghetti code, not SOLID,...) You always have to try and see for yourself if it works. And that's how ChatGPT comes in handy. Quick answer