小孩学编程课程_我在17岁时学到的关于编程的7个重要课程

小孩学编程课程

by Alec Jones

通过亚历克琼斯

我在17岁时学到的关于编程的7个重要课程 (7 important lessons about programming that I’ve learned at 17)

Hey there, I’m Alec, I’m 17 years old, I’ve been learning web development since I was 12. I’m far from an excellent developer, but I’ve definitely learned some things about being an average one. ?

嘿,我是Alec,今年17岁,我从12岁起就开始学习Web开发。我距离优秀的开发人员还很远,但我肯定已经学到了成为一名普通人的一些知识。 ?

Here are some lessons I’ve learned that I think every developer, especially new developers, needs to know.

这是一些我已经了解到的教训,我认为每个开发人员,尤其是新开发人员都需要知道。

没有人知道一切 (No one knows everything)

No developer knows everything and you don’t need to know everything.

没有开发人员一无所知,您也不需要一无所知。

There is so much more to being a developer than knowing by heart, for example, the methods of manipulating arrays in PHP version 5.6. It doesn’t matter if you know the little things, they are a google search away if you forget them.

作为一名开发人员,除了心地了解之外,还有很多其他东西,例如,PHP 5.6版中处理数组的方法。 如果您知道这些小事,就没关系,如果您忘记了这些小事,就可以在Google搜索中找到。

There are far more important things you can do as a developer to improve yourself than learning these tiny insignificant details like,

作为开发人员,要提高自己,要做的事情比学习这些微小的细微细节要重要得多,例如,

  1. Improving your problem-solving skills

    提高解决问题的能力
  2. Improving your teamwork and communication skills

    改善团队合作和沟通技巧
  3. Increasing your knowledge of programming concepts and languages

    增加您对编程概念和语言的了解
  4. Creating awesome projects to showcase your work

    创建很棒的项目来展示您的作品
  5. Focusing on writing clean efficient code

    专注于编写干净高效的代码

The great thing about being a developer is that you don’t need to know everything. You only need to know how to solve problems.

成为开发人员的最大好处是您不需要了解所有内容。 您只需要知道如何解决问题。

拥有错误对于学习至关重要 (Having bugs is essential to learning)

If you’re programming something and you’re not coming across any bugs, it means you’re learning nothing.

如果您正在编写某些东西而没有遇到任何错误,则意味着您什么都没学。

Not running into bugs does not mean that you’re somehow a great developer because you’re too smart to make a mistake. It means that you’ve already developed something similar, so many times, that you already know how not to run into the bugs.

没有遇到错误并不意味着您在某种程度上是一名出色的开发人员,因为您太聪明了,不会犯错。 这意味着您已经开发了很多类似的东西,以至于您已经知道如何避免遇到错误。

When you’re solving bugs you are becoming a strong developer. There are endless bugs in development, so the faster you can learn to handle them, the better off you’ll be.

解决错误时,您将成为一名强大的开发人员。 开发中存在无穷无尽的错误,因此您学习速度越快,处理起来就越好。

不需要正规教育 (Formal education is not necessary)

At 17, I’m currently grappling with this topic. Should I attend university so I can acquire a computer science degree?

在17岁的时候,我正在努力解决这个话题。 我应该上大学才能获得计算机科学学位吗?

That’s a tough question for me to answer. But, most people reading this are probably not 17, in fact, most of you probably already have a job.

这是我很难回答的问题。 但是,大多数阅读此书的人可能都不是17岁,实际上,你们中的大多数人可能已经找到了工作。

If you have already attended college or university, you definitely do not need a computer science degree. You also don’t need to do all of these coding boot camps either.

如果您已经上过大学,则肯定不需要计算机科学学位。 您也不需要执行所有这些编码新手训练。

A GitHub profile with some interesting projects on it speaks volumes. If you can demonstrate that you can program, it doesn’t matter what background you have.

带有一些有趣项目的GitHub个人资料可以说是一本好书。 如果您可以证明自己可以编程,那么您所拥有的背景并不重要。

It’s simply a question of how do you learn best.

这只是您如何学习得最好的问题。

I didn’t have the choice, I had to learn to code on weekends because I couldn’t take 6 weeks off of high school for a boot camp. ?‍♂️

我别无选择,我不得不在周末学习编码,因为我不能从高中休假6周到新手训练营。 ♂️

If you want to go back to university to get a computer science degree or attend an 8-week boot camp, go for it. But it’s nowhere close to necessary.

如果您想回到大学获得计算机科学学位或参加8周的新手训练营,那就去吧。 但这远远没有必要。

谷歌搜索是一项合法技能 (Googling is a legitimate skill)

If you want to be a great developer, you will need to enhance your googling ability. It’s essential to be able to find solutions and code that you are looking for.

如果您想成为一名出色的开发人员,则需要增强自己的Google搜寻能力。 能够找到所需的解决方案和代码至关重要。

There is frequent googling, especially when you’re learning a brand new technology.

经常使用谷歌搜索功能,尤其是在学习全新技术时。

There are many different ways to improve your search results through little “hacks” and tips Google has set up.

Google设置了许多 “小技巧” 来改善搜索结果 ,但有很多不同的方法

Coding projects can take down weird rabbit holes of things you need to add to your code. Sometimes, you need to find a solution to a problem you don’t even understand. But thankfully, Google has the answer somewhere.

编码项目可以消除需要添加到代码中的怪异事物。 有时,您需要找到甚至不了解的问题的解决方案。 但值得庆幸的是,Google在某个地方有答案。

尝试思考而不是编码 (Try thinking rather than coding)

When you’re coding, do you ask yourself, “what’s the best way to write this code?”

在编码时,您是否会问自己:“编写此代码的最佳方法是什么?”

I know I usually don’t until after I’ve written a subpar solution. Far too often, I find myself writing the solution that first popped into my head. Most of the time, the first solution to the problem isn’t the best.

我知道我通常要等到写出低于标准的解决方案之后再进行。 很多时候,我发现自己写的解决方案最先引起我的注意。 大多数时候,第一个解决问题的方法并不是最好的。

The act of typing out the code is short. Anyone can write code quickly that will be sloppy. You need to take the time to come up with a good stable solution.

输入代码的动作很短。 任何人都可以快速编写草率的代码。 您需要花一些时间来提出一个好的稳定解决方案。

Though it can be tedious, test driven development promotes this greatly as you have to think about what functionality you expect and how it’ll work. You can’t freehand the code when you have to plan it ahead of time.

尽管可能很乏味,但是测试驱动的开发极大地促进了这一点,因为您必须考虑所期望的功能以及它将如何工作。 如果必须提前计划代码,则无法随意编写代码。

Of course, there are exceptions to every rule. I’m not saying you should sit quietly and think about every line of code.

当然,每个规则都有例外。 我并不是说您应该安静地思考每行代码。

But, with anything, save yourself the time of refactoring and bug fixing by thinking about your code.

但是,通过考虑代码,您可以节省任何时间进行重构和错误修复。

小心教程 (Be careful with tutorials)

Following along with a coding tutorial is great for starting out, but I think these tutorials are not the only resource you should use for learning.

遵循编码教程非常适合入门,但是我认为这些教程并不是您应该用于学习的唯一资源。

You’re not actually learning when you follow a coding tutorial. You may learn a little, but you’re not truly learning what you’re doing and why you’re doing it.

遵循编码教程时,您实际上并没有在学习。 您可能会学到一些东西,但是您并不是真正地了解自己在做什么以及为什么这么做。

Additionally, these tutorials can also quickly skip over important parts of the code, as illustrated in Quincy’s tweet. It’s so easy to just copy and paste and not ask questions from the tutorial.

此外,这些教程还可以快速跳过代码的重要部分,如Quincy的推文中所示。 只需复制和粘贴就可以了,不问教程中的问题很容易。

A far better way to learn to code is to set out on a project you’d like to build. Then, just get started. Find little pieces of code, write your own code, solve the bugs, read explanations and posts.

学习编码的一种更好的方法是开始您要构建的项目。 然后,开始。 查找少量代码,编写自己的代码,解决错误,阅读说明和文章。

The most effective way to learn is to piece the puzzle together until you have a program that works.

学习的最有效方法是将难题拼凑在一起,直到您有一个可行的程序。

制表符胜于空格 (Tabs are better than spaces)

I know. While you reading this article, you were thinking, “he’s got to be a spaces guy, it’s obvious.” I’m afraid not, everyone should be using tabs when they code.

我知道。 在阅读本文时,您在想:“很明显,他必须是个太空人。” 恐怕不是,每个人在编码时都应该使用制表符。

I get it. Tabs can look different from other people’s computers. But, it’s so nice to just hit the tab, rather than smacking that space bar again and again. Treat yourself to tabs people!

我知道了。 选项卡的外观可能与其他人的计算机不同。 但是,只需单击选项卡,而不是一次又一次敲击空格键,真是太好了。 对待自己与标签人!

Thanks for reading these short, but important, lessons that I’ve learned. If you disagree with any points I make, I’d love to hear why!

感谢您阅读这些简短但重要的课程。 如果您不同意我的观点,我很想听听为什么!

翻译自: https://www.freecodecamp.org/news/7-important-lessons-about-programming-that-ive-learned-at-17-516ae619686/

小孩学编程课程

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值