[翻译] 学习iOS开发的建议:如何从菜鸟到专家

  • 时间:
  • 浏览:0
  • 来源:uu快3大小_uu快3网站_开奖历史

One of the best strategies to improve your skills and to adopt best practices is to learn from other people’s code. This not only means browsingStack Overflow, but also, and more importantly, libraries or code snippets that are open sourced by fellow developers.

编写软件可没哪些最好的语言,每种语言都在其擅长的方面.好语言呢,只是我那种它们只能其他点不同,然而只是我这点点不同,让它学起来超级带感以及开阔视野.类事,Ruby,在编写DRY(别重复你此人 ),可读性和清新的代码方面令我大开眼界.

Even though it’s possible to learn the essentials of iOS Development in a weekend, it will take much longer to master the craft. The question then is how do you transition from a novice to an expert? In this quick tip, I will provide you with a breadcrumb trail that may help you on your way to becoming a great iOS developer.

It may be tempting from time to time to quickly use a code snippet that seemingly solves the problem that you are working on, but I strongly urge against this practice. Read the code, understand what you are adding into the code base, and, possibly, customize the solution to your needs.

一旦你深入到了有有三个 库,类事 AFNetworking 不可能 Magical Record,不须被哪些晦涩难懂的巨量的代码所吓尿了,你很多可能 懂得哪些库上方的每一行代码每一处私密的地方,后来呢,那都在学习的要点所在哦,真正需要学到的是,从有有三个 更高的高度来尽不可能 的学习它们,类事其他常用的使用法子,设计优秀的地方,设计模式等等诸没有类.

There are no shortcuts. This is something that I’d like to emphasize before continuing, because it is important to get rid of any illusions that might be stuck in your head. You don’t become a skilled developer if you only program on Sunday afternoons between 4PM and 5PM…if the sun isn’t shining and there’s nothing on television. Don’t get me wrong, it may be fun to do so, but it won’t bring you much closer to your goal of becoming an expert developer. Apart from a few exceptions, most people need practice -and lots of it. If you aren’t prepared to put in the hours, then it’s better to revisit your goals and ambitions. Become great at something you love and the time spent practicing will be its own reward.

Becoming a great developer isn’t only about understanding the language and the frameworks. It is just as much about working efficiently with the tools that you use day in and day out. For iOS development, this means Xcode and possibly other tools, such as PonyDebugger andCharles.

In addition to learning from other people’s code, it is a good learning experience to create your own libraries. Some time ago, I was developing an application that uses Core Data as the data layer. Instead of using Magical Record, I decided to create my own library by exploring Magical Record and recreating the pieces of functionality that I needed. Not only did this result in a lean, agile library, it also taught me a lot about the inner workings of Magical Record.

实在 ,在有有三个 惬意的周末学习IOS开发是可行的,后来呢,想全版熟练的掌握它可大约n长时间.现象是,你怎么才能 才能 才不能从有有三个 菜鸟变成老鸟?在以下简短的描述中,我会很多来点建议,帮助你尽快上路,成为IOS开发者的高手.

There are many excellent developers that regularly write about their craft, such as Matt Gemmell, Aaron Hillegass, and Mike Ash. You can find a more extensive list in a previous post I’ve written for Mobiletuts+.

Even if you can’t attend Apple’s yearly developer conference, WWDC, it is a good idea to browse the numerous session videos and watch the ones that spark your interest. The presentations are usually given by the engineers that work on the technologies covered in the session, which gives you detailed information and instructions about how to use them. It is also a great way to quickly get up to speed with those technologies.

I have noticed that my overall understanding of software development has improved significantly by learning new languages or working with new frameworks. The advantage of this approach is that you don’t limit your view of what is possible to the language that you are most familiar with.

This brings me to another key aspect of learning the right way: don’t mindlessly copy and paste code. We all use code snippets that we find on places like Stack Overflow or Apple’s Developer Forums, but it’s important to not mindlessly copy and paste the code that you find on the web. By copying code that you find, you don’t learn a thing. The greater danger is that you don’t know what you’ve just added to your code base. This might result in unexpected behavior and it will make it very difficult to debug your code later.

I recently dipped my toes in Ember.js and learned that the creators, Yehuda Katz and Tom Dale took inspiration from Cocoa. The implementation of the MVC (Model-View-Controller) pattern of Ember.js is a bit unconventional for a JavaScript framework, but it is not that surprising if you are familiar with Cocoa.

Whenever you dive into a library, such as AFNetworking or Magical Record, it is key to not be overwhelmed by the code you read. Chances are that you don’t understand every line of code in these libraries, but that’s not really the point. The point is to look at the source code from a higher level and learn as much as possible, such as naming conventions, best practices, design patterns, etc.

Bart Jacobs on Jul 29th 2013 with 5 comments

一次又一次的快速的无脑的使用了别人的代码片段且貌似外理了你当前的现象,这是没有的吸引人啊.但我强烈的反对你这俩 法子,研究哪些代码吧,大约你得知道把哪些东西加进了你的工程中,最好的只是我修改别人的代码以及定制出你此人 需要的外理法子.

Cocoa 和 Objective-C 在其他地方,与其他的编程语言有着很大的差异哦,这导致 分析,它们都在着它们此人 的一种 模式和一种 最适合此人 的编程法子我们歌词 我们歌词 相信,你不可能 对其他常用的设计模式如代理和通知模式有所了解.然而,还有着其他的其他(设计)模式不能帮助你开发,诸如单例.观察者.和指挥者模式.这本书 Cocoa Fundamentals Guide 能很多有有三个 较为全面的关于Cocoa中使用到的其他设计模式的指导.

There is no “best” language to write software in as they all have their pros and cons. The nice thing, however, is that they are all a little (or a lot) different and it’s those differences that makes learning new languages interesting and eye opening. Ruby, for example, was a real eye opener for me in terms of writing DRY (Don’t Repeat Yourself), readable, and clean code.

我的另外有有三个 好的学习经验是:不须脑残的克隆好友和粘贴别人的代码.或许亲戚朋友都在从 Stack Overflow 不可能 Apple's Developer Forums 中找到些代码片段来使用,但请不须随意的从网上下载代码后来无脑的进行克隆好友粘贴.你用了你的不经过前额思考过的代码,你啥只是我懂,后来,有有三个 很大的风险是,你根本就问你到底加了哪些鬼东西到你的工程中,你这俩 你说歌词 会突然老出各种奇葩的现象,后来,接下来,你得面对痛苦的debug过程,估计也搞不定的^_^.

If you don’t want to put in the hours to become a better programmer, then you may want to reconsider why you wanted to become a programmer in the first place. However, if you get excited about a new library or tool that can help you in your development, then you probably won’t have a problem improving your skills over time. You really have to love what you do to become good at it and I think this is especially true for programming. No matter what people tell you, you won’t become an expert developer overnight, but I promise you that your skills will improve if you keep learning and beating on your craft.

这可都在说叫你离开哪些正在更新和维护的(第一方提供的)库和框架.[的话翻译不了了,英语水平菜,理不清语法价值形式了-_-!!!]我们歌词 我们歌词 们我们歌词 们需要选着,你不可能 体验到不同点,平时为什么整的就为什么整吧.

我注意到了哦,我对于软件开发的综合能力,随着我去学习新的语言和使用新的框架而得到了显著的提升.也没想的没有容易,关键都在你只不能限制了此人 的视野,不须把此人 限定死在一种 你最熟悉的开发语言中.

It goes without saying that this doesn’t apply to libraries or frameworks that are actively maintained. If you had to go through Magical Record before you’d be able to use it in your project… I’m sure you understand the difference. Use your common sense.

翻译有误之处请勿见笑,此人 将在文章的每种地方加进注释,并根据需求增减文章内容,在此对原作者辛勤劳作表示感谢 

没有捷径啊少年!继续讲下去后来我得提前说一下,不可能 ,摒除任何不能速成的想法而去面对残酷的现实是相当重要的.不可能 你仅仅想在星期天下午的4点到5点之间来搞一下,你是很多可能 成为有有三个 高手的...仅仅是不可能 只能出去玩不可能 是看不了<生活大爆炸>了.别耍我了,你说歌词 你实在 你不可能 花了有有三个 小时的时间来做了,后来呢,那绝很多很多接近你想成为高手目标的一步.抛开其他例外,大每种人都需要练习.练习再练习,不可能 很多我花时间去做,那你就别想成为高手而继续当苦逼码农.花费时间以及精力去做你喜欢做得其他事情是成为高手的必经之路.

其他巨牛逼的开发者,时不后该写写关于朋友牛叉的工作的,如Matt Gemmel.Aaron Hillegass 和 Mike Ash,最近我不可能 把那份全版的变态人物列表分享在了Mobiletuts+网站上,来捧捧场吧.

除了去学习别人的代码之外,另一种 好的学习经验只是我创建你此人 的库.long long ago, 我在开发有有三个 应用tcp连接池池时,那个...用到了Core Data作为应用tcp连接池池的data层,而都在用Magical Record,我决定创建我此人 的库,从Magical Record中寻求灵感以及提取出我此人 很多的功能,最后呢,我不仅创建出了有有三个 瘦小的灵活的库,后来,我还学习到了Magical Record中只是的核心设计法子.

Cocoa and Objective-C are in many ways very different from other programming languages and environments. This means that they have their own patterns and best practices. I’m sure that you’re already familiar with a few common patterns, such as delegation and notifications. However, there are many more patterns that can help you during your development, such as the singleton, observer, and command patterns. The Cocoa Fundamentals Guide gives you a nice overview of the most common patterns in Cocoa.

不可能 很多我花费时间用在刀刃上一天到晚就知道dota.DNF.英雄联盟啊,你就得重新想想你能成为牛逼的开发者么?不可能 ,有有三个 新的库不可能 工具不能帮助你开发,你还乐于去使用它学习它,提升能力就指日可待.你真的需要喜欢上此人 要做的事情,只能从前你不能真正的提高此人 .不管别人为什么告诉你,你都在不可能 靠有有三个 晚上就变成老手,后来,我知道,假使 你不能坚持下去,你的能力一定不能得到提升!

很多我学其他额外的编程技巧吗?从前的话,你说歌词 ,很多对我后来写过的其他快速提示感点兴趣.

有有三个 提高你能力的最好的策略以及最有速率 做练习的法子只是我去学习别人的代码.这里不仅仅是说你去 Stack Overflow (栈溢出网站从前相当不错的网站哦)网站上去取经就够了,去学习少数大神的开源库以及它们的其他代码片段也是非常重要的.

If you’d like to learn a few extra tricks, you may be interested in a previous quick tip that I wrote about this topic.

你只能参加苹果56手机手机4 4 每年一度的开发者大会?别急,那就去看几瓶的会议视频吧,那也是不能拓宽你的视野的.你能得到只是的益处,哪些都在各种领域内牛逼的工程师所免费赠送的^_^,你能从上方得到只是的最新的信息,以及帮助你为什么去用朋友.这从前一种 很多赶上日新月异的科技的一种 技巧哦.

了解了语言价值形式以及各种框架就能成为高手吗?想得美呢.你还得每天琢磨着为什么超高效的运用各种工具.对于开发IOS来说,这导致 分析要用好Xcode,还有其他的其他工具,比如PonyDebugger和Charles.

[文章原地址]

最近我染指了Ember.js,他的创建者 Yehuda Katz 和 Tom Dale 从前从Cocoa开发中得到的灵感哟.你这俩 MVC设计的实现对于JaveScript 框架来说从前很奇葩的(非传统的),后来呢,不可能 你熟悉Cocoa,那也没啥了不起的.