编程程序的名称要记住吗_学习编程时要记住的5件事

编程程序的名称要记住吗

by Kurt

由库尔特

学习编程时要记住的5件事 (5 Things to Remember When You’re Learning to Program)

Learning to program is challenging. Aside from choosing a language or setting up a development environment that you know nothing about, there are thousands of articles and tutorials out there that quite simply will make you feel dumb, demotivate you or make you think that everything you have learnt so far was a waste of time and that you’ve been doing everything wrong.

学习编程具有挑战性。 除了选择一种语言或建立一个您一无所知的开发环境外,还有成千上万的文章和教程,它们很容易使您感到愚蠢,沮丧,或者使您认为到目前为止所学的一切都是浪费时间,您做错了所有事情。

I’ve been there, so I thought I’d put together a short list of things you should keep in mind when learning to program to stop you from thinking that you are mentally challenged, or from making people feel mentally challenged when reading your tutorials.

我去过那里,所以我想我整理了一些简短的清单,在您学习编程时应该记住的事情,以防止您认为自己受到精神上的挑战,或者使人们在阅读教程时感到精神上的挑战。

1.请记住您正在上网。 (1. Remember you’re on the internet.)

You don’t believe all the news you read is legit or that the photos you see aren’t Photoshopped, so don’t take everything that you read literally. Just because it’s about programming does not mean it’s reliable or correct. It was written by a person, and people make mistakes and are biased.

您不相信所阅读的所有新闻都是合法的,或者您所看到的照片不是经过Photoshop处理的,因此不要将所阅读的一切都当作字面意思。 仅仅因为它是关于编程的,并不意味着它是可靠或正确的。 它是由一个人写的,人们会犯错误并且有偏见。

2.唯一真正糟糕的代码是无法正常工作或无法正常工作的代码。 (2. The only code that is truly bad is code that does not work or do what it should.)

You’ll come across a lot of articles that start something like if you… you’re doing it wrong. The vast majority of these are just opinions. Focus on your code returning the correct result first.

您会遇到很多文章,这些文章的开头就像是……如果 做错了 。 其中绝大多数只是意见 。 关注您的代码,首先返回正确的结果。

You can write a simple function that returns the same result in almost any language in a hundred different ways; if their way of doing it is so “right”, what makes the other ninety-nine wrong? And what’re they grading it by — readability? Execution time? It’s all relative to what you need when you code.

您可以编写一个简单的函数,以几乎任何一种语言以一百种不同的方式返回相同的结果。 如果他们的做法如此“正确”,是什么使其他九十九个错误呢? 他们对可读性的评分如何? 执行时间处理时间? 一切都与您编写代码时所需的内容有关。

Bad naming conventions, indentation and documentation are more likely to produce “bad” code than the method you choose for a loop.

与为循环选择的方法不同,不良的命名约定,缩进和文档更有可能产生“不良”代码。

3.程序员有使别人感到愚蠢的诀窍。 (3. Programmers have a knack for making other people feel dumb.)

Two common concepts in programming are obfuscation (obscuring of intended meaning in communication, making the message confusing, wilfully ambiguous, or harder to understand) and abstraction, and for some reason this seems to carry through to a lot of stuff that programmers write about.

编程中的两个常见概念是混淆(混淆通信中的预期含义,使消息混乱,故意模棱两可或难以理解)和抽象,并且由于某种原因,这似乎可以影响程序员编写的许多内容。

They tend to use very large words, or terms that only relate to the field of programming when they’re writing. If you have to google a word fifteen times while reading an article, keep in mind you’re not dumb. On the contrary, the writer most likely wanted to you to think he was really clever and impress you.

他们倾向于使用非常大的单词或仅在编写时与编程领域相关的术语。 如果您在阅读文章时必须用Google单词搜索15次,请记住您不要傻。 相反,作家很可能想让您认为他真的很聪明,给您留下了深刻的印象。

What he didn’t realize is that when reading an article with big words people in general tend to think the writer is normal and they are dumb.

他没有意识到的是,在阅读带有大词的文章时,人们通常会认为作者是正常的, 而且很愚蠢。

When you meet a fellow programmer, the first question they’re likely to ask you is,

当您遇到一名程序员程序员时,他们可能会问您的第一个问题是,

“What language do you code in?”
“您使用哪种语言编码?”

Your answer then generally forms their initial opinion of your expertise and skill level. I can’t express just how biased this is! There’s a good chance that they’ve never even touched the language they’re judging you on, or that they can’t properly justify their opinion. All languages have strengths and weaknesses.

然后,您的答案通常会形成他们对您的专业知识和技能水平的初步看法。 我不能表示这有多偏见! 他们很有可能甚至从未触及过要评判您的语言,或者他们无法适当地证明自己的观点。 所有语言都有优点和缺点。

Programming is a trade and a programming language is the same to a good programmer as a tool is to a mechanic. It is his choice to select the best tool from his box for the task at hand, and I’ve never heard anyone say, “Don’t ever use that spanner!”

编程是一种职业,对于熟练的程序员而言,编程语言与对机械师而言是相同的。 从他的盒子中选择最佳工具来完成手头的任务是他的选择,而且我从未听过有人说过“永远不要使用那把扳手!”

5.学习概念,数据结构,设计模式和理论比了解语法更重要。 (5. Learning concepts, data structures, design patterns and theory is more important than knowing syntax.)

Programming concepts are all relatively similar. If you know your stuff, you’ll be familiar with the term ‘Array’, you’ll know what it is, what built-in methods it’s likely to have, and can then look up the syntax for it in any language in a heartbeat.

编程概念都相对相似。 如果您了解自己的知识,就会熟悉术语“数组”,它将了解它的含义,可能具有的内置方法,然后可以使用任何语言在其中查找语法。心跳。

All popular languages are based on programming theory, concepts and principles, and usually they try to build on and add to them. Knowing and understanding this allows you to transcend the limitations of a single programming language, and instead use the best tool for the job… even if you need to Google a little to get there.

所有流行语言都基于编程理论,概念和原则,通常它们会尝试在其基础上加以补充。 了解和理解这一点可以使您超越单一编程语言的局限性,而可以使用最佳的工具来完成工作……即使您需要一点点Google才能到达那里。

I hope this helps you learn and stay motivated.

我希望这可以帮助您学习和保持动力。

Oh and FYI — remember EVERY programmer has spent a few hours pulling out his/her hair debugging a typo and they are lying if they deny it.

哦,仅供参考-请记住, 每个程序员都花了几个小时抽出他/她的头发调试错字,如果他们拒绝,他们就会撒谎。

If you enjoyed this post take a look at some other stuff I’ve written…

如果您喜欢这篇文章,请看一下我写的其他内容……

Preventative Programming — how fix to bugs before they happen…and why Sherlock Holmes would have been a brilliant programmermedium.comHow I Became a Programmer. And When I Started Calling Myself OneI’ve wanted to start blogging about programming for months now and like so many others before me I set off full of…medium.comHow to write a jQuery like library in 71 lines of code — Learn about the DOMJavaScript frameworks are all the rage. Chances are that any JavaScript related news feed you open will be littered…medium.comMaking it rain code — Matrix StyleAn introduction to HTML 5 canvas animationsmedium.comTurning code to cash — How to make money as a Web Developer and live to tell the tale.So you just learnt to code. You’re eager and anyone who can’t code thinks you’re a genius, word gets out and all of a…medium.com

预防性编程—如何在错误发生之前对其进行修复 ……以及为什么Sherlock Holmes会成为出色的程序员 media.com, 我如何成为一名程序员。 当我开始自称一个人时, 我已经想开始写博客有关编程的事情已经有几​​个月了,而在我之前,我和其他许多人一样,开始写满了... medium.com 如何用71行代码编写类似jQuery的库—了解有关DOM JavaScript框架风靡一时。 机会是任何JavaScript相关的新闻养活你打开将散落...... medium.com 让降雨码-矩阵式 的介绍HTML 5画布动画 medium.com 谈到代码以现金-如何赚钱作为Web开发人员和现场到讲故事。 因此,您刚刚学习编码。 您很热衷,任何无法编写代码的人都认为您是个天才,言出必行,所有...

翻译自: https://www.freecodecamp.org/news/5-things-you-should-keep-in-mind-when-learning-to-program-and-shouldn-t-repeat-when-teaching-it-1ed8e734b04f/

编程程序的名称要记住吗

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值