编程程序的名称要记住吗_学习编程时要记住的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/

编程程序的名称要记住吗

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/396508.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

mysql 数据分析的步骤_数据分析8个主要步骤

# 在对数据进行分析时,主要细分为明确目标、应用思维和如下8个具体步骤:1、读取数据2、清洗数据3、操作数据4、转换数据5、整理数据6、分析数据7、展现数据8、总结报告接下来将介绍使用python来具体处理数据,包括上面几个步骤的实现&#xff…

python学习的一个定位_python学习之——selenium元素定位

web自动化测试按步骤拆分,可以分为四步操作:定位元素,操作元素,获取返回结果,断言(返回结果与期望结果是否一致),最后自动出测试报告。其中定位元素尤为关键,此篇是使用webdriver通过页面各个元…

Invoker

Invoker 是实体,dubbo外其他对象的转化。转载于:https://www.cnblogs.com/gtaxmjld/p/9786894.html

如何在开源社区贡献代码_如何在15分钟内从浏览器获得您的第一个开源贡献

如何在开源社区贡献代码Matt Mullenweg, founder of Automattic, recently offered this advice to aspiring developers: “Contribute to open source.”Automattic的创始人Matt Mullenweg最近向有抱负的开发人员提供了以下建议 :“ 致力于开源。 ” Mullenweg —…

小心情。

从一开始学习html到现在的nodejs,也有段时间了,那个时候什么都不知道,记得一两年之前还沉迷在一些网络技术的圈子里面,每天看着那些大牛,感觉都很是厉害,每一项技术总是那样的让我着迷,从易语言…

一、win7下安装yii2

作者:PHP学习网 出处:http://www.viphper.com/?p1159 本文版权归作者,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 之前在liunx上安装过yii…

js获取浏览器滚动条距离顶端的距离

js获取浏览器滚动条距离顶端的距离 一、jQuery获取的相关方法 jquery 获取滚动条高度获取浏览器显示区域的高度 :$(window).height(); 获取浏览器显示区域的宽度 :$(window).width(); 获取页面的文档高度 :$(document).height(); 获取页面的文…

vs dll必须和exe在同一个目录_Win10系统丢失 .dll 文件的三种解决方案教程

有时候开机或打开一个软件时,系统会提示无法启动程序,这是怎么回事呢?这是因为计算机丢失某个或某些dll文件,由于系统本身不存在这些运行库文件,需要进行添加才能使用该软件。方法一:下载丢失的.dll文件&am…

datagrid页面获取表单一条数据的例子

【问题背景】 最近在做ITOO考评的时候想从页面获取表单选中的数据: 【代码】 在数据网格(datagrid)组件包含两种方法来检索选中行数据: getSelected:取得第一个选中行数据,如果没有选中行,则返回…

utf-8转换gbk代码_将代码转换为现金-如何以Web开发人员的身份赚钱并讲述故事。...

utf-8转换gbk代码by Kurt由库尔特 将代码转换为现金-如何以Web开发人员的身份赚钱并讲述故事。 (Turning 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 …

Spring+SpringMVC+MyBatis+easyUI整合基础篇(十)SVN搭建

前言 前面一篇文章讲了一下版本控制,但其实这一篇并没有打算讲细节的,感觉应该自己去动手弄一下,后来考虑了一下,版本控制真的挺重要的,如果自己实在搭建不好反而不去使用的话,真的有点可惜,当然…

AHK-UMSS框架 (AHK通用修饰键解决方案,任何键都是修饰键)

AHK-UMSS框架 (AHK通用修饰键解决方案,任何键都是修饰键) 1 #Warn2 #NoEnv ; # 禁用环境变量检查:不检查空变量是否为"环境变量",可以极大地提高效率3 #Hotstring EndChars ◎ ; # 热字串终止符号设置:只把空格作为终止符,(文档上所说是不能单独用空格的…

flask-sqlalchemy mysql_Flask SQLAlchemy连接到MySQL数据库

设置代码:我正在构建一个带有AngularJS前端的基本Flask应用程序,目前我需要连接到我用Godaddy phpmyadmin托管的MySQL数据库。这是我的一部分__init__.pyfrom flask import Flaskfrom flask.ext.sqlalchemy import SQLAlchemy# Create instnace called a…

有没有编码的知识图谱_没有人告诉您关于学习编码的知识-以及为什么如此困难...

有没有编码的知识图谱by Joyce Akiko通过乔伊斯明子 没有人告诉您关于学习编码的知识-以及为什么如此困难 (What Nobody Tells You About Learning To Code — And Why That Makes It So Hard) Are you familiar with the article Why Learning to Code is So Damn Hard?您是…

Node.js之HTPP URL

几乎每门编程语言都会包括网络这块,Node.js也不例外。今天主要是熟悉下Node.js中HTTP服务。其实HTTP模块是相当低层次的,它不提供路由、cookie、缓存等,像Web开发中不会直接使用,但还是要熟悉下,这样也方便以后的学习。 一、统一资源标识符URL 这个是非常…

串口数据波形显示_【专题教程第6期】SEGGER的J-Scope波形上位机软件,RTT模式波形上传可飙到500KB/S...

【专题教程第6期】SEGGER的J-Scope波形上位机软件,RTT模式波形上传速度可狂飙到500KB/S左右说明:1、在实际项目中,很多时候,我们需要将传感器或者ADC的数值以波形的形式显示。通常的解决办法是用串口上位机,USB接口上位…

JavaScript-基础入门.0014.JavaScript内置对象

2019独角兽企业重金招聘Python工程师标准>>> 简单介绍: 说明: 内置对象就是不依赖宿主环境在程序执行之前已经存在的对象,不必显式的实例化内置对象,前面已经介绍了大部分内置对象,而Global和Math两个单体内置对象比较特殊,所以单独讲. Global对象: 说明: Js中不属于…

Java中字符串连接符(+)和append的区别

参考链接:https://www.jianshu.com/p/849f1d443b3a 文章结构: 第一部分:对的原理进行分析 第二部分: 和 append 循环对比(贴出代码,以及分别循环后的反编译字节码,来对两者进行对比)…

百度seo排名点击器_SEO整站优化思路 - 百度seo排名点击

原出处:超级排名系统原文链接:SEO整站优化思路 - 超级排名系统整站优化的大体思路包括哪些?下面超级排名系统小编详细给大家讲解下:一、建站优化我们在建立网站之前与建立网站的时候需要做的优化,包括标题优化、描述关…

unity 天空盒_Unity自定义可编程渲染管线(SRP)(二)——编写第一个自定义SRP

一句话描述,我们可以把SRP分解成两个部分,分别是SRP Asset,SRP Instance。SRP AssetSRP Asset是一个Unity Asset文件,用来存储渲染管线的特定配置信息,包含的信息有:游戏物体是否应该投射阴影;使…