How My Brain Works
Tuesday, 19 December, 2017
How My Brain Works
Or
Why I Never Seem to Get Anything Done
- My brother sends me a link to some interesting information about Apple’s GameplayKit
- I think, “Swift Playgrounds are a great way to just try out some code! I’ll just type this code into a playground.”
- I open a new playground and start typing
NSViewController
class is undefined… Duh! These code examples are already out of date! NSViewController
has probably been replaced by some new UIViewHarnessor
or something.
- (google, google, google…) maybe NSViewController is correct… I’ll just type some more and maybe the compiler will catch up (Xcode sux0rz!)
Game()
is also undefined… what the???
- Oh, it’s a whole project thing to download
- I revise my folder hierarchy to fit my new worldview and prepare a place for downloaded code samples
- Oh look!
README.md
- I like Markdown!
- Oh, I don’t have my markdown display add-on for Firefox on this machine
- I download the add-on and open
README.md
- What the…? garbled characters?
- I open
README.md
in Emacs
- Oh, it’s a beautiful “right single quote” for the apostrophe.
- Wait… Firefox should handle that…
- (google, google, google) Oh, hamburger-menu > more > text encoding
- Ah, yeah, switch from “Western” to “Unicode” that should…
- What the…? This Markdown extension must be crap. Where’s the good one?
- (google, google, google) I install the different markdown add-on - it doesn’t even do what I expected
- (google, google, google)
file -i
in Linux, file -I
in macOS
charset=utf-8
What the…?!
- (google, google, google) Markdown Viewer Webtext… Unicode… Byte Order Mark “‘Byte Order Mark?’ Oh, hell!”
- (google, google, google)
set-buffer-file-coding-system
= C-x RET f
(google, google, google) utf-8-with-signature
- Ahhhhh…
- Now what was I working on?