10 ways to improve your programming skills

原文:http://rudyn.is-programmer.com/

1. Learn a new programming language 学习一门新的编程语言

Learning new programming languages will expose you to new ways of thinking; especially if the new language uses a paradigm which you aren’t yet familiar with. Many of the ways of thinking that you will learn can be applied to languages that you already know, and you might even want to start using the new language for serious projects as well.
学习新的编程语言将使你接触到新的思维方式;特别是如果新语言使用了一种你还不熟悉的范例。你将学到的许多思考方法都可以应用到你已经知道的语言中,你甚至可能想要开始使用新的语言来开发项目。
Good languages providing a great educational experience (but not necessarily limited to that) include any Lisp (Scheme is good), Forth, PostScript or Factor (stack-oriented programming languages), J (wonderful array programming language), Haskell (strongly typed purely functional programming language), Prolog (logic programming) and Erlang (concurrent programminggoodness).
良好的语言提供了良好的教育体验(但不一定仅限于此)包括任何Lisp(Scheme是想到那个出色)、Forth、PostScript或Factor (基于堆栈的编程语言)、J(出色的数组编程语言)、Haskell(强类型的函数式编程语言)、Prolog (逻辑编程)和Erlang (并行编程)。

2. Read a good, challenging programming book阅读一本优秀的、具有挑战性的编程书籍

A lot can be learnt from books. While practice is important, reading one of the really good andchallenging programming books can be a great way to challenge your thinking and even move it up by a level. Such challenging books would include The Art of Computer Programming (if you want areal challenge), Structure and Interpretation of Computer Programs (SICP), A Discipline of Programming or the famous dragon book.
从书中可以学到很多东西。练习是很重要的,阅读一本真正好的、有挑战性的编程书籍是一个挑战你思维的好方法,甚至可以把它提升到一个水平。这些具有挑战性的书将包括《计算机程序设计艺术》(如果你想要挑战的话),《计算机程序的结构和解释》(SICP),《编程的修炼》或者其他著名的书。
You can go with less challenging books as well, but avoid books that are “for Dummies” and will teach you something “in 24 hours” or “in 21 days”; you will get very little out of such books in terms of improving programming skills.
你也可以选择不那么有挑战性的书,但要避免那些“傻瓜”的书,并且会在“24小时”或“21天”里教你一些东西;在提高编程技能方面,你将会从这些书中获得很少的经验。

3. Join an open source project加入一个开源项目

What are the advantages of joining an open source project? You will work with others (good thing in case you have only worked on personal projects before), and you will have to dig into, and learn to understand, an unfamiliar code base (which can be challenging).
加入一个开放源码项目的好处是什么?你会和其他人一起工作(如果你以前只在个人项目上工作过的话),你将不得不深入挖掘,并学会理解,一个不熟悉的代码库(这可能是一个挑战)。
You can find different projects on sites such as GitHub, Sourceforge, gitorious, BitBucket orOhloh.
你可以在网站上找到不同的项目,比如GitHub, Sourceforge, gitorious, BitBucket orOhloh。

4. Solve programming puzzles解决编程难题

You can always solve programming puzzles, and many such exist. Math oriented problems can be found at Project Euler, which is, probably, the most popular site for coding puzzles.
你总是可以解决编程难题,有很多这样的问题。在Project Euler中可以找到数学问题,它可能是最流行的编码谜题。
You should also try out code golf; a programming puzzle where programmers attempt to solve a given programming problem with the least amount of keystrokes. It can teach you many of the more esoteric and special features of the language, and you will have to think creatively about coding (and it is fun!).
你也应该试试去code golf;程序员试图用最少的步骤来解决一个给定的编程问题的编程难题。它可以教会你许多更深奥和特别的语言特性,你将不得不创造性地思考编码(这是很有趣的!)
Programming puzzles, mainly code golf, is found at codegolf.stackexchange.com.
代码编程难题,主要是code golf,在codegolf.stackexchange.com上找到。

5. Program编程

Start writing a program, from scratch. Design all of the architecture and implement it. Repeat.
开始编写一个程序,从头开始。设计所有的体系结构并实现它。重复
Coding is best learned by coding. You will learn from your own mistakes, and finishing a project is motivating and much more fun than reading a book is.
编码是最好的学习方法。你会从自己的错误中学习,完成一个项目比读一本书更有趣。

6. Read and study code阅读并学习代码

Study famous software programs, such as the Linux kernel (be warned, it is huge). A good operating system for educational purposes is MINIX3. You can learn many new language idioms, and a thing or two about software architecture. Reading unfamiliar source code is daunting at first, but rewarding.
研究一些著名的软件程序,比如Linux内核(请注意,它是巨大的)。一个良好的教育目的的操作系统是MINIX3。您可以学习许多新的语言习惯,以及关于软件架构的一些方面。一开始阅读不熟悉的源代码令人生畏的,但值得一读。
You can also increase your understanding of some API you use, or a programming language, by reading its implementation.
你还可以通过阅读它的实现来增加你对某些API的理解,或者编程语言。

7. Hang out at programming sites and read blogs在编程网站上闲逛,阅读博客

Hanging out at different programming sites (such as forums and StackOverflow) will expose you to other programmers and at the same time, their knowledge.
在不同的编程网站(如论坛和StackOverflow)上闲逛会让你接触到其他程序员,同时,同时也会让你了解他们的知识。
Also, read blogs, maybe this (if you want) and preferably more. Good blogs are Joel on Software(although he doesn’t blog any more, jewels exist in the archives), <a name="OLE_LINK2"></a> <a name="OLE_LINK1">Coding Horror</a> and Lambda the Ultimate.
另外,阅读博客(如果你想的话)或者是其他更多的东西。好的博客是在Joel
软件(尽管现在不写博客,在历史记录中是能发现好的博文),Coding Horror和Lambda。
You should also follow news.ycombinator.com.
你也应该遵循news.ycombinator.com。

8. Write about coding写代码

Start writing about coding on a blog, even if it is just for yourself. You can also write answers on different Q&A sites, forums or you can write tutorials at some sites (e.g. DreamInCode). When you write about coding, you want to make sure that use the correct terminology and know the why in order to explain problems and techniques. It also lets you reflect on your own programming knowledge and improve your English language skills, which is important in programming.
开始在博客上写代码,即使只是为了你自己。你也可以在不同的问答网站、论坛或者你可以在一些网站上写教程(例如:DreamInCode)。当您编写代码时,您需要确保使用正确的术语,并了解原因,以便解释问题和技术。它还能让你反思自己的编程知识,提高你的英语语言技能,这在编程中很重要。

9. Learn low-level programming学习基础的编程语言

Learning low-level programming and such languages is also useful for achieving a better understanding of the underlying machine. Check out C, and maybe even learn some processor’sAssembly language.
学习底层的编程语言,这对于更好地理解底层机器也是很有帮助的。看看C,甚至可以学习一些处理器的汇编语言。
Learn how a computer executes a program and how an operating system works (at a high-level, at least). If you really want to go serious about low-level programming, you can read books on computer organization, operating systems, embedded systems, operating system driver development and so on (I’m reading such books at the moment).
学习计算机如何执行程序以及操作系统是如何工作的(至少在高层次上是这样的)。如果你真的想要严肃地对待底层编程,您可以阅读有关计算机组织、操作系统、嵌入式系统、操作系统驱动程序开发等方面的书籍(目前我正在阅读这些书籍)。

10. Don’t rush to StackOverflow. Think!不要急于去StackOverflow。要思考!

So you have a problem with your code and you have been trying to solve it for half a minute. What do you (hopefully not) do? Run over to StackOveflow. Don’t. Spend a good deal of time trying to solve the problem on your own, instead. Take a paper and a pencil, start sketching a solution. If that doesn’t work, take a short break to keep your mind fresh and then try again.
当你的代码有问题,你试着解决它半分钟了。你希望做什么(不希望做什么)?不要去StackOveflow。试着花时间自己解决这个问题。拿一张纸和一支铅笔,开始画一个解。如果这不起作用,休息一下,保持头脑清醒,然后再试一次
If after spending an hour (or some other considerable amount of time, depending on the size of the problem) of trying to solve the problem, then you might go over to StackOverflow, but think on your own first.
如果花了一个小时(或者其他相当长的时间,取决于问题的大小)试图解决这个问题,那么您可能会转到StackOverflow,但是请先考虑自己的第一个问题。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 212,454评论 6 493
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,553评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,921评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,648评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,770评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,950评论 1 291
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,090评论 3 410
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,817评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,275评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,592评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,724评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,409评论 4 333
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,052评论 3 316
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,815评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,043评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,503评论 2 361
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,627评论 2 350

推荐阅读更多精彩内容