diff --git a/sources/tech/20220104 5 tips for learning a new programming language in 2022.md b/sources/tech/20220104 5 tips for learning a new programming language in 2022.md deleted file mode 100644 index d954726779..0000000000 --- a/sources/tech/20220104 5 tips for learning a new programming language in 2022.md +++ /dev/null @@ -1,74 +0,0 @@ -[#]: subject: "5 tips for learning a new programming language in 2022" -[#]: via: "https://opensource.com/article/22/1/learn-programming" -[#]: author: "Jim Hall https://opensource.com/users/jim-hall" -[#]: collector: "lujun9972" -[#]: translator: "geekpi" -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " - -5 tips for learning a new programming language in 2022 -====== -With the power of open source, programming can be accessible to anyone. -Find a project you want to work on, and let that be your first entry to -programming. -![Woman sitting in front of her computer][1] - -Anyone can get started in programming. [We all started somewhere][2], and you don't need to have a computer science background to learn to code. That's the power of Linux and open source—anyone can learn a bit of coding. - -If you want to learn a new programming language, we have several great articles to get you started. Below are a few of our most popular articles to help you. - -### Comparing programming languages - -Most programming languages share certain similarities. Once you know how to do a thing in one programming language, learning the next programming language is mostly a matter of figuring out its syntax and structure. - -#### [How different programming languages do the same thing][3] - -A great way to learn a new programming language is to write a simple test program, such as a game, to explore how the programming language works. One sample program I often write is a simple "guess the number" game, where the computer picks a number between one and 100 and asks me to guess it. Earlier this year, we ran a series of articles exploring how to write the number-guessing game in several programming languages. Learn how these different programming languages implement the major steps in the "guess the number" game. - -#### [How different programming languages read and write data][4] - -[Alan's][5] article compares how different programming languages read and write data in the same spirit. Whether that data comes from a configuration file or a file a user creates, processing data on a storage device is common for coders. Alan's comparison article provides insight into different approaches taken by several popular programming languages such as C, Java, Groovy, and others. - -### Learning a new programming language - -Whether you want to pick up a new programming language or want to explore an existing one, check out the great articles below about learning programming. - -#### [How to write 'Hello World' in WebAssembly][6] - -WebAssembly is a bytecode format that virtually every browser can compile to its host system's machine code. Alongside JavaScript and WebGL, WebAssembly fulfills the demand for porting applications for platform-independent use in the web browser. [Stephan][7] explains how to create the classic Hello World program in WASM-text. - -#### [Cross-compiling made easy with Golang][8] - -[Gaurav][9] wrote about learning Go's cross-compilation support by converting a script into a Go program. You can write your program once and compile it for another environment with cross-compilation. - -#### [Why I use the D programming language for scripting][10] - -The D programming language is often thought of as a system programming language due to its static typing and metaprogramming capabilities. However, it's also a very productive scripting language. [Lawrence][11] wrote about how to leverage the D programming language for common scripting. - -With the power of open source, programming can be accessible to anyone. Find a project you want to work on, and let that be your first entry to programming. - --------------------------------------------------------------------------------- - -via: https://opensource.com/article/22/1/learn-programming - -作者:[Jim Hall][a] -选题:[lujun9972][b] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]: https://opensource.com/users/jim-hall -[b]: https://github.com/lujun9972 -[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/OSDC_women_computing_2.png?itok=JPlR5aCA (Woman sitting in front of her computer) -[2]: https://opensource.com/article/21/8/first-programming-language -[3]: https://opensource.com/article/21/4/compare-programming-languages -[4]: https://opensource.com/article/21/7/programming-read-write -[5]: https://opensource.com/users/alansmithee -[6]: https://opensource.com/article/21/3/hello-world-webassembly -[7]: https://opensource.com/users/hansic99 -[8]: https://opensource.com/article/21/1/go-cross-compiling -[9]: https://opensource.com/users/gkamathe -[10]: https://opensource.com/article/21/1/d-scripting -[11]: https://opensource.com/users/aberba diff --git a/translated/tech/20220104 5 tips for learning a new programming language in 2022.md b/translated/tech/20220104 5 tips for learning a new programming language in 2022.md new file mode 100644 index 0000000000..744636aaa5 --- /dev/null +++ b/translated/tech/20220104 5 tips for learning a new programming language in 2022.md @@ -0,0 +1,72 @@ +[#]: subject: "5 tips for learning a new programming language in 2022" +[#]: via: "https://opensource.com/article/22/1/learn-programming" +[#]: author: "Jim Hall https://opensource.com/users/jim-hall" +[#]: collector: "lujun9972" +[#]: translator: "geekpi" +[#]: reviewer: " " +[#]: publisher: " " +[#]: url: " " + +2022 年学习新编程语言的 5 个提示 +====== +借助开源的力量,任何人都可以编程。找到一个你想做的项目,并让它成为你进入编程的第一个项目。 +![Woman sitting in front of her computer][1] + +任何人都可以开始学习编程。[我们都是从某处开始的][2],而且你不需要有计算机科学背景就可以学习编码。这就是 Linux 和开源的力量:任何人都可以学习一点编码。 + +如果你想学习一种新的编程语言,我们有几篇很棒的文章可以让你开始学习。下面是我们最受欢迎的几篇文章,它们可以帮助到你。 + +### 比较编程语言 + +大多数编程语言都有某些相似之处。当你知道如何用一种编程语言做一件事,学习下一种编程语言主要是弄清其语法和结构。 + +#### [不同的编程语言如何做同样的事情][3] + +学习一种新的编程语言的一个好方法是写一个简单的测试程序,如一个游戏,以探索该编程语言的工作原理。我经常写的一个示例程序是一个简单的“猜数字”游戏,即计算机 在 1 到 100 之间挑选一个数字,让我猜出来。今年早些时候,我们发表了一系列文章,探讨如何用几种编程语言编写猜数字游戏。了解这些不同的编程语言如何实现“猜数字”游戏的主要步骤。 + +#### [不同的编程语言如何读写数据][4] + +[Alan 的][5]文章比较了不同的编程语言如何在相同的思想下读写数据。无论这些数据是来自于配置文件还是用户创建的文件,在存储设备上处理数据对于编码者来说是很常见的。Alan 的比较文章提供了对几种流行的编程语言,如 C、Java、Groovy 和其他语言所采取的不同方法的深入了解。 + +### 学习一种新的编程语言 + +无论你是想学习一种新的编程语言,还是想探索一种现有的编程语言,请看看下面这些关于学习编程的好文章。 + +#### [如何用 WebAssembly 编写 “Hello World”][6] + +WebAssembly 是一种字节码格式,几乎所有的浏览器都可以将其编译为主机系统的机器代码。与 JavaScript 和 WebGL 一起,WebAssembly 满足了将应用移植到网络浏览器中独立使用的需求。[Stephan][7] 解释了如何用 WASM-text 创建经典的 Hello World 程序。 + +#### [用 Golang 轻松实现交叉编译][8] + +[Gaurav][9] 写了关于通过将脚本转换为 Go 程序来学习 Go 的交叉编译支持。你可以一次写好你的程序,并通过交叉编译为另一个环境进行编译。 + +#### [为什么我使用 D 编程语言来编写脚本][10] + +D 编程语言由于其静态类型和元编程能力,常常被认为是一种系统编程语言。然而,它也是一种非常高效的脚本语言。[Lawrence][11] 写了关于如何利用 D 编程语言进行普通的脚本编写。 + +借助于开源的力量,编程可以被任何人所接受。找到一个你想做的项目,并让它成为你进入编程的第一个项目。 + +-------------------------------------------------------------------------------- + +via: https://opensource.com/article/22/1/learn-programming + +作者:[Jim Hall][a] +选题:[lujun9972][b] +译者:[geekpi](https://github.com/geekpi) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://opensource.com/users/jim-hall +[b]: https://github.com/lujun9972 +[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/OSDC_women_computing_2.png?itok=JPlR5aCA (Woman sitting in front of her computer) +[2]: https://opensource.com/article/21/8/first-programming-language +[3]: https://opensource.com/article/21/4/compare-programming-languages +[4]: https://opensource.com/article/21/7/programming-read-write +[5]: https://opensource.com/users/alansmithee +[6]: https://opensource.com/article/21/3/hello-world-webassembly +[7]: https://opensource.com/users/hansic99 +[8]: https://opensource.com/article/21/1/go-cross-compiling +[9]: https://opensource.com/users/gkamathe +[10]: https://opensource.com/article/21/1/d-scripting +[11]: https://opensource.com/users/aberba