4 ms·
As I have seen too many times to be surprised now, the source code and setup in assembly is much easier in asm than in higher level languages. Look for ”COM pro
by jacobush 9y ago
As I have seen too many times to be surprised now, the source code and setup in assembly is much easier in asm than in higher level languages. Look for ”COM programming with assembler” if you are curious. No casting, no bullshit. Just numbers pushed around :)
- yoz-y 9y agoI dunno. The massive amount of comments necessary to make this code remotely understandable is pretty telling.
- _sdegutis 9y agoAnd in one file there was a magic number #1536 or something, never got explained.
- tomsmeding 9y agoOof, that would have been hard. ;) More seriously, the "rule against magic constants" makes sense in many circumstances, but there are limits.
- exikyut 9y agoExplanation in the form of breadcrumbs: 1. https://github.com/kliment/Printrun/issues/619#issuecomment-102119718 https://github.com/kliment/Printrun/issues/619#issuecomment-... then 2. https://github.com/gnustep/libs-corebase/blob/master/Headers/CoreFoundation/CFString.h#L78 https://github.com/gnustep/libs-corebase/blob/master/Headers...
- bluedino 9y agoIt's more explaining how the whole OS X application model works than the code itself.
- exikyut 9y agoOkay, I got curious, but unfortunately that exact book title doesn't seem to exist.