Twitter | Search | |
Rob Napier
Swift and Go. Love 'em both. They make me mad in completely different ways. Infosec as required.
12,107
Tweets
311
Following
5,542
Followers
Tweets
Rob Napier Feb 19
Replying to @avaidyam @davedelong
We'll know that Swift is truly "protocol-oriented" when stdlib methods primarily accept and return protocols (like Go). At that point, API writers should begin to consider them seriously. When [T] means `Collection where Element==T` rather than Array<T>, that'd be a big sign.
Reply Retweet Like
Rob Napier Feb 19
Replying to @avaidyam @davedelong
Agreed. People jump to protocols far too quickly in Swift. In today's Swift, protocols should be considered an intermediate feature, and PATs should be considered an advanced feature. They shouldn't be used proactively, certainly never before there are multiple implementations.
Reply Retweet Like
Rob Napier Feb 17
Replying to @saraheolson
There is no shame in cupcakes.
Reply Retweet Like
Rob Napier Feb 17
Replying to @ErasylJasuzakov
Yeah this definitely sounds like abusing the type system. If you have [Any] for more than a moment, you’ve probably done something wrong. The tool you probably meant to use is an enum rather than Any.
Reply Retweet Like
Rob Napier Feb 17
Replying to @ErasylJasuzakov
I can’t picture the problem you’re trying to solve. This kind of thing is usually due to fighting the type system. Why do you have Any in the first place? What’s the bigger picture?
Reply Retweet Like
Rob Napier Feb 17
Replying to @ErasylJasuzakov
If you don’t need the value, you can just use “case is String” as well.
Reply Retweet Like
Rob Napier Feb 17
Replying to @ErasylJasuzakov
You just mean “String” here, not “String?”
Reply Retweet Like
Rob Napier Feb 17
Interesting; I knew most folks had been smearing them for years (and so much better than repeated midnight), but the idea of a "standard smear" is interesting.
Reply Retweet Like
Rob Napier Feb 17
Replying to @gregtitus @davedelong
I believe this is how all Martian missions have worked. Given people have used this system for years when “teleworking” to Mars, I expect it’s what they’d use when living there. The good news is it fits naturally into Calendar :)
Reply Retweet Like
Rob Napier Feb 17
Replying to @arithma @invalidname
Oh sorry. I was looking at your CPU sugar, not load average. That does seem high. How many cores are available?
Reply Retweet Like
Rob Napier Feb 17
Replying to @arithma @invalidname
Agreed. Those don’t look like unreasonable numbers. https is more expensive than http, especially for short sessions. Negotiating the connection is the most expensive part (which is why browsers reuse connections when they can).
Reply Retweet Like
Rob Napier Feb 17
Replying to @invalidname
SSL is one of the great horrors of administration. Putting the “evil” in “necessary evil.”
Reply Retweet Like
Rob Napier Feb 17
Replying to @invalidname
Yes, unless you use wildcard certs like *.example.com. and are different names and can be different IP addresses. Wildcards were created to simplify your case.
Reply Retweet Like
Rob Napier retweeted
Doug Gregor Feb 14
Swift part 2 for tonight, in which I attempt to eliminate NSObjectProtocol from Swift. Thoughts?
Reply Retweet Like
Rob Napier retweeted
A Rampaging War Rhino Feb 13
Regularly scheduled reminder that you can prevent 95% of embarrassing email mistakes by NOT filling in the "TO:" line until you are done writing and proofreading your email.
Reply Retweet Like
Rob Napier Feb 14
Replying to @htormey @invalidname
I got very good quality using the GIPS voice engine. Google bought that, and it's become WebRTC. If you need video, too, I had good luck with V8 (now V9). Apple's frameworks are difficult for this kind of work because they often don't give you direct access to encoders.
Reply Retweet Like
Rob Napier Feb 14
Replying to @tTikitu
Wow…I am like a baby. There is quite a world ahead of me :D
Reply Retweet Like
Rob Napier Feb 14
Replying to @tTikitu
Oh yes! I’ve got a “string instruments to learn” list, but I don’t know enough yet to put specific models on yet. Banjo is the top. My wife has forbidden me learning mandolin until she does (I tried to sneak off with her mandolin and she put a stop to that :)
Reply Retweet Like
Rob Napier retweeted
O(charles) Feb 13
Literally every other language: FFS I WISH I COULD ABSTRACT THIS Haskell: FFS WHY HAS SOMEONE ABSTRACTED THIS Ya just can't win these days.
Reply Retweet Like
Rob Napier Feb 13
Replying to @argumatronic
I tried to capture some of these ideas when Swift first came out, but it's nice to hear from someone with much deeper FP background than I have.
Reply Retweet Like