TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Open Sourced My iOS Reddit Client

1 点作者 ssutch超过 13 年前

1 comment

bri3d超过 13 年前
I understand that you're probably trying to get Reddit upvotes as well, but I think a link to the repo itself [0] would be better.<p>And a little critique about your code: you shouldn't set the ivar backing synthesized properties in your implementation (instance) methods. For example, in RDBrowserController.m doing<p><pre><code> self.webView = wv </code></pre> (invoking the setter) rather than<p><pre><code> if (webView) [webView release]; webView = wv; </code></pre> is both shorter and universally safer, and prevents issues if you end up using Key-Value Observing down the road.<p>It's also safer to retain the new value before releasing the current value in setters you write yourself - this prevents setting to the same value repeatedly from releasing the object prior to retaining it.<p>0: <a href="https://github.com/samuraisam/readdit" rel="nofollow">https://github.com/samuraisam/readdit</a>
评论 #3610643 未加载