这些演示者的代码模板工作流程是怎样的?

发布于 2024-10-10 07:15:00 字数 949 浏览 4 评论 0原文

简短介绍

在开发我的第一个商业 iOS 应用程序时,XCode 3.2 已被证明比我预期的环境更具挑战性。我在其他环境(例如 Eclipse for Java 或 FDT for ActionScript)中逐渐喜欢的功能在 XCode 中即使不是不可能,也很难获得。 XCode 4 似乎解决了我的很多痛处,所以我没有抱怨,但出于测试原因,我必须坚持使用 3.2,至少对于当前应用程序的开发而言。

开发者视频 - 模板

首先,我放弃了寻找舒适的代码模板,转而使用难以正确使用的 TextMacros:输入简短的代码片段,点击 escape 来下拉完成建议并选择一个。然后我开始观看开发视频 http://developer.apple.com/videos/wwdc /2010/。令我惊讶的是,有许多演示者似乎“神奇地”插入了代码片段,而无需键入任何内容或用鼠标单击任何内容。

示例

示例 1:在第 104 节“使用滚动视图设计应用程序”中,Eliza Block(从 9 分钟开始)不断向她的演示添加现成的代码片段,有效地解决了实时编码的危险。

示例 2:在第 123 节“构建动画驱动的界面”中,Tyler Hawkings(从 25 分钟开始)使用某种模板将动画代码添加到他的演示文稿中。

他们没有……

  • 输入任何 TextMacro,这是肯定的。
  • ...使用离屏复制和粘贴板,因为 XCode 不会瞬间失去焦点。
  • ...在离屏应用程序中单击,因为鼠标不会离开屏幕。

问题

我有两个问题要问您:

  1. 这些演示者在演示中使用什么来实现这一壮举。
  2. 这是否可以在日常编码中使用,而不仅仅是呈现?

干杯, 埃里克-保罗.

Short introduction

Working on my first commercial iOS app, XCode 3.2 has proven to be far more challenging of an environment than I anticipated. Features I've grown fond of in other environments (For example Eclipse for Java, or FDT for ActionScript) are hard to come by, if not impossible in XCode. XCode 4 seems to address a lot of my sores, so I'm not complaining, but I have to stick to 3.2 for beta-reasons, at least for the development of this current app.

Developer Videos - templates

For one, I gave up the search for comfortable code templates and went with the hard-to-get-right TextMacros: typing in short pieces of code, hit escape for the pulldown of completion suggestions and pick one. Then I started watching the development video's at http://developer.apple.com/videos/wwdc/2010/. To my surprise, there were a number of presenters that seem to 'magically' insert pieces of code without typing anything, or clicking anything with the mouse.

Examples

Example 1: In session 104 "Designing Apps with Scroll Views", Eliza Block (starts at 9 minutes) keeps adding readymade pieces of code to her demo, effectively working around the hazards of live-coding.

Example 2: In session 123 "Building Animation Driven Interfaces", Tyler Hawkings (starts at 25 minutes) uses some kind of template to add animation code to his presentation.

They're not...

  • ...typing in any TextMacro's, that's for sure.
  • ...using an off-screen copy&pasteboard because XCode does not lose focus for an instant.
  • ...clicking in an off-screen application, because the mouse does not leave the screen.

Questions

I have two questions for you:

  1. What are these presenters using to perform this feat in their presentations.
  2. Is this usable in the context of day-to-day coding, instead of just presenting?

Cheers,
Eric-Paul.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

美人骨 2024-10-17 07:15:00

Apple 开发人员兼 WWDC 上 Eliza Block 的联合主持人 Josh Shaffer 通过 Twitter 很好地回答了我的问题。他写道:“这是一个小应用程序,插入预定义的文本片段列表。只有在您已经编写了应用程序的情况下才有助于编码”

编辑:感谢上帝的 Twitter。 Josh Shaffer 确认他们使用的工具是 DemoMonkey。

Josh Shaffer, developer at Apple and co-presenter of Eliza Block at the WWDC, was kind enough to answer my question via Twitter. He wrote the following: "it's a small app that inserts a pre-defined list of pieces of text. Only helps with coding if you already wrote your app"

EDIT: Thank god for Twitter. Josh Shaffer confirmed that the tool they were using is the DemoMonkey.

甜扑 2024-10-17 07:15:00

我认为他们使用像 CopyPastePro 这样的工具预定义的文本块。对于在日常编码中使用代码片段来说,它非常有用,因为您可以将代码片段分配给预定义的键,但我也喜欢 http ://www.snippetsapp.com/ 您可以在其中管理所有片段。

干杯,
迈因哈德

I think they use predefined text blocks with a tool like CopyPastePro. For using code snippets in day-to-day coding it is quite useful because you can assign snippets to predefined keys but I also like http://www.snippetsapp.com/ where you can manage all your snippets.

Cheers,
Meinhard

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文