编程程序的名称要记住吗_学习编程时要记住的5件事
編程程序的名稱(chēng)要記住嗎
by Kurt
由庫(kù)爾特
學(xué)習(xí)編程時(shí)要記住的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.
學(xué)習(xí)編程具有挑戰(zhàn)性。 除了選擇一種語(yǔ)言或建立一個(gè)您一無(wú)所知的開(kāi)發(fā)環(huán)境外,還有成千上萬(wàn)的文章和教程,它們很容易使您感到愚蠢,沮喪,或者使您認(rèn)為到目前為止所學(xué)的一切都是浪費(fèi)時(shí)間,您做錯(cuò)了所有事情。
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.
我去過(guò)那里,所以我想我整理了一些簡(jiǎn)短的清單,在您學(xué)習(xí)編程時(shí)應(yīng)該記住的事情,以防止您認(rèn)為自己受到精神上的挑戰(zhàn),或者使人們?cè)陂喿x教程時(shí)感到精神上的挑戰(zhàn)。
1.請(qǐng)記住您正在上網(wǎng)。 (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.
您不相信所閱讀的所有新聞都是合法的,或者您所看到的照片不是經(jīng)過(guò)Photoshop處理的,因此不要將所閱讀的一切都當(dāng)作字面意思。 僅僅因?yàn)樗顷P(guān)于編程的,并不意味著它是可靠或正確的。 它是由一個(gè)人寫(xiě)的,人們會(huì)犯錯(cuò)誤并且有偏見(jiàn)。
2.唯一真正糟糕的代碼是無(wú)法正常工作或無(wú)法正常工作的代碼。 (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.
您會(huì)遇到很多文章,這些文章的開(kāi)頭就像是……如果您 做錯(cuò)了 。 其中絕大多數(shù)只是意見(jiàn) 。 關(guān)注您的代碼,首先返回正確的結(jié)果。
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.
您可以編寫(xiě)一個(gè)簡(jiǎn)單的函數(shù),以幾乎任何一種語(yǔ)言以一百種不同的方式返回相同的結(jié)果。 如果他們的做法如此“正確”,是什么使其他九十九個(gè)錯(cuò)誤呢? 他們對(duì)可讀性的評(píng)分如何? 執(zhí)行時(shí)間處理時(shí)間? 一切都與您編寫(xiě)代碼時(shí)所需的內(nèi)容有關(guān)。
Bad naming conventions, indentation and documentation are more likely to produce “bad” code than the method you choose for a loop.
與為循環(huán)選擇的方法不同,不良的命名約定,縮進(jìn)和文檔更有可能產(chǎn)生“不良”代碼。
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.
編程中的兩個(gè)常見(jiàn)概念是混淆(混淆通信中的預(yù)期含義,使消息混亂,故意模棱兩可或難以理解)和抽象,并且由于某種原因,這似乎可以影響程序員編寫(xiě)的許多內(nèi)容。
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.
他們傾向于使用非常大的單詞或僅在編寫(xiě)時(shí)與編程領(lǐng)域相關(guān)的術(shù)語(yǔ)。 如果您在閱讀文章時(shí)必須用Google單詞搜索15次,請(qǐng)記住您不要傻。 相反,作家很可能想讓您認(rèn)為他真的很聰明,給您留下了深刻的印象。
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.
他沒(méi)有意識(shí)到的是,在閱讀帶有大詞的文章時(shí),人們通常會(huì)認(rèn)為作者是正常的, 而且很愚蠢。
4.沒(méi)有“不良”的流行編程語(yǔ)言。 (4. There are no “bad” popular programming languages.)
When you meet a fellow programmer, the first question they’re likely to ask you is,
當(dāng)您遇到一名程序員程序員時(shí),他們可能會(huì)問(wèn)您的第一個(gè)問(wèn)題是,
“What language do you code in?”“您使用哪種語(yǔ)言編碼?”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.
然后,您的答案通常會(huì)形成他們對(duì)您的專(zhuān)業(yè)知識(shí)和技能水平的初步看法。 我不能表示這有多偏見(jiàn)! 他們很有可能甚至從未觸及過(guò)要評(píng)判您的語(yǔ)言,或者他們無(wú)法適當(dāng)?shù)刈C明自己的觀點(diǎn)。 所有語(yǔ)言都有優(yōu)點(diǎn)和缺點(diǎn)。
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!”
編程是一種職業(yè),對(duì)于熟練的程序員而言,編程語(yǔ)言與對(duì)機(jī)械師而言是相同的。 從他的盒子中選擇最佳工具來(lái)完成手頭的任務(wù)是他的選擇,而且我從未聽(tīng)過(guò)有人說(shuō)過(guò)“永遠(yuǎn)不要使用那把扳手!”
5.學(xué)習(xí)概念,數(shù)據(jù)結(jié)構(gòu),設(shè)計(jì)模式和理論比了解語(yǔ)法更重要。 (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.
編程概念都相對(duì)相似。 如果您了解自己的知識(shí),就會(huì)熟悉術(shù)語(yǔ)“數(shù)組”,它將了解它的含義,可能具有的內(nèi)置方法,然后可以使用任何語(yǔ)言在其中查找語(yǔ)法。心跳。
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.
所有流行語(yǔ)言都基于編程理論,概念和原則,通常它們會(huì)嘗試在其基礎(chǔ)上加以補(bǔ)充。 了解和理解這一點(diǎn)可以使您超越單一編程語(yǔ)言的局限性,而可以使用最佳的工具來(lái)完成工作……即使您需要一點(diǎn)點(diǎn)Google才能到達(dá)那里。
I hope this helps you learn and stay motivated.
我希望這可以幫助您學(xué)習(xí)和保持動(dòng)力。
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.
哦,僅供參考-請(qǐng)記住, 每個(gè)程序員都花了幾個(gè)小時(shí)抽出他/她的頭發(fā)調(diào)試錯(cuò)字,如果他們拒絕,他們就會(huì)撒謊。
If you enjoyed this post take a look at some other stuff I’ve written…
如果您喜歡這篇文章,請(qǐng)看一下我寫(xiě)的其他內(nèi)容……
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
預(yù)防性編程—如何在錯(cuò)誤發(fā)生之前對(duì)其進(jìn)行修復(fù) ……以及為什么Sherlock Holmes會(huì)成為出色的程序員 media.com, 我如何成為一名程序員。 當(dāng)我開(kāi)始自稱(chēng)一個(gè)人時(shí), 我已經(jīng)想開(kāi)始寫(xiě)博客有關(guān)編程的事情已經(jīng)有幾??個(gè)月了,而在我之前,我和其他許多人一樣,開(kāi)始寫(xiě)滿(mǎn)了... medium.com 如何用71行代碼編寫(xiě)類(lèi)似jQuery的庫(kù)—了解有關(guān)DOM JavaScript框架風(fēng)靡一時(shí)。 機(jī)會(huì)是任何JavaScript相關(guān)的新聞養(yǎng)活你打開(kāi)將散落...... medium.com 讓降雨碼-矩陣式 的介紹HTML 5畫(huà)布動(dòng)畫(huà) medium.com 談到代碼以現(xiàn)金-如何賺錢(qián)作為Web開(kāi)發(fā)人員和現(xiàn)場(chǎng)到講故事。 因此,您剛剛學(xué)習(xí)編碼。 您很熱衷,任何無(wú)法編寫(xiě)代碼的人都認(rèn)為您是個(gè)天才,言出必行,所有...
翻譯自: https://www.freecodecamp.org/news/5-things-you-should-keep-in-mind-when-learning-to-program-and-shouldn-t-repeat-when-teaching-it-1ed8e734b04f/
編程程序的名稱(chēng)要記住嗎
總結(jié)
以上是生活随笔為你收集整理的编程程序的名称要记住吗_学习编程时要记住的5件事的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Stack Overflow 2016年
- 下一篇: utf-8转换gbk代码_将代码转换为现