Terrifying Line of Code
...p/RuntimeBinder/ComInterop/ComRuntimeHelpers.cs shown)) // Re-invoke with no result argument t hresult = _IDispatchInvokeNoResult( dispatchPointer, memberDispId, ComTypes.INVOKEKIND.INVOKE_FUNC, ref dispParams, out result, out excepInfo, out argErr); var pfnIDispatchInvoke = (delegate* st (**(void***)dispatchPointer + 6 /) This might be one of the most terrifying lines of code I've ever seen.
A screenshot of frightening-looking C# interop code from RuntimeBinder, with complex pointers, delegates, and COM invocation syntax. The poster jokes that the low-level code is terrifying because it looks extremely unsafe and difficult to understand, making it a reaction to intimidating or cursed programming. EN: A screenshot of frightening-looking C# interop code from RuntimeBinder, with complex pointers, delegates, and COM invocation syntax. The poster jokes that the low-level code is terrifying because it looks extremely unsafe and difficult to understand, making it a reaction to intimidating or cursed programming.
computer code / программный кодcode editor / редактор кодаbrowser window / окно браузераGitHub page / страница GitHubpink code block / розовый блок кодаgreen code block / зелёный блок кодаmonospace text / моноширинный текстreaction buttons / кнопки реакцийgrimacing face emoji / смайлик с гримасойeyes emoji / смайлик с глазами
- @profunctor_io / 5027 2020-07-26
- Type
- image
- Size
- 485×800 · 60.2 KiB
- Mood
- sarcastic, horrified
- Language
- en
- Added