Viewing profile — owensd
owensd
HN member- Joined
- Fri, Sep 26, 2014, 5:38 PM UTC
- HN karma
- 8
- Public activity
- 7 items
- HN profile
- View on Hacker News ↗
About owensd
Recent public activity
-
comment
Comment #12843592
Yeah, we do. However, since our primary audience of people we are talking to are on a Mac/iOS device, it doesn't really matter. And when we are on a non-Mac, we know what the squar…
-
comment
Comment #8977329
First off, a struct is not an object. Structs in Swift, like many languages, are value types. They have the same packing structure in Swift as in C, especially in the example that …
-
comment
Comment #8977035
Yes, the var should have been inout. It had an affect on the release build performance (twice as fast), but not the debug build. I've updated the blog post. The performance problem…
-
comment
Comment #8378879
> I can promise you my function doesn't write to disk, doesn't output to the screen, etc. You cannot promise the same with your function. WHAT?! Your type signatures have absolutel…
-
comment
Comment #8376198
> Please note I didn't throw out add(3,4)==7, but instead pointed out it's terribly inadequate as a test. Additional testing tools must be employed; unit testing alone of this kind…
-
comment
Comment #8374436
There are actually many poor claims you made in your posts about "good tests". > I'm aware that addition is a toy example, but suppose we want to test our implementation: > Except …
-
comment
Comment #8373978
I'm just going to reply to one part with an example of the problem. > I think this is somewhat incorrect. You should never just be type-casting your inputs. (In fact, I think it sh…