Any sufficiently complicated network RPC API contains an ad hoc informally-specified bug-ridden implementation of HTTP/REST semantics.
Hi!
You are viewing the archive of unrelenting.technology.
This website is no longer updated, my current one is val.packett.cool.
Check it out instead :)
Notes
Thatβs what the hipsters call βSmalltalk inspiredβ nowadaysβ¦
nil.empty? # NoMethodError: undefined method `empty?' for nil:NilClass
In Objective-C, any message to nil returns nil. In Ruby? Exception :-(
Webmention endpoint discovery in Haskell. Probably the best function ever written :-)
This is how I search for it in HTML.
listToMaybe $ unsafePerformIO $ runX $ htmlDoc //> hasAttrValue "rel" isWebmentionRel >>> getAttrValue "href"
Why unsafePerformIO
? Because thereβs no reason for HTML parsing to depend on IO, but theyβve implemented parsing strings as parsing files with the string
protocol.
So, notes on my website should be automatically posted on App.net and Twitter. Also, webmentions should be sent & webfinger works.
P.S. OAuth 1.0 is awful.