mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-13 22:30:37 +08:00
Translated by qhwdw
This commit is contained in:
parent
53cc053974
commit
4aac2f191e
@ -1,65 +0,0 @@
|
|||||||
[#]: collector: (lujun9972)
|
|
||||||
[#]: translator: (qhwdw)
|
|
||||||
[#]: reviewer: ( )
|
|
||||||
[#]: publisher: ( )
|
|
||||||
[#]: url: ( )
|
|
||||||
[#]: subject: (3 popular programming languages you can learn with Raspberry Pi)
|
|
||||||
[#]: via: (https://opensource.com/article/19/3/programming-languages-raspberry-pi)
|
|
||||||
[#]: author: (Anderson Silva https://opensource.com/users/ansilva)
|
|
||||||
|
|
||||||
3 popular programming languages you can learn with Raspberry Pi
|
|
||||||
======
|
|
||||||
Become more valuable on the job market by learning to program with the Raspberry Pi.
|
|
||||||
![](https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/programming_language_c.png?itok=mPwqDAD9)
|
|
||||||
|
|
||||||
In the last article in this series, I shared some ways to [teach kids to program with Raspberry Pi][1]. In theory, there is absolutely nothing stopping an adult from using resources designed for kids, but you might be better served by learning the programming languages that are in demand in the job market.
|
|
||||||
|
|
||||||
Here are three programming languages you can learn with the Raspberry Pi.
|
|
||||||
|
|
||||||
### Python
|
|
||||||
|
|
||||||
[Python][2] has become one of the [most popular programming languages][3] in the open source world. Its interpreter has been packaged and made available in every popular Linux distribution. If you install Raspbian on your Raspberry Pi, you will see an app called [Thonny][4], which is a Python integrated development environment (IDE) for beginners. In a nutshell, an IDE is an application that provides all you need to get your code executed, often including things like debuggers, documentation, auto-completion, and emulators. Here is a [great little tutorial][5] to get you started using Thonny and Python on the Raspberry Pi.
|
|
||||||
|
|
||||||
![](https://opensource.com/sites/default/files/uploads/thonny.png)
|
|
||||||
|
|
||||||
### Java
|
|
||||||
|
|
||||||
Although arguably not as attractive as it once was, [Java][6] remains heavily used in universities around the world and deeply embedded in the enterprise. So, even though some will disagree that I'm recommending it as a beginner's language, I am compelled to do so; for one thing, it still very popular, and for another, there are a lot of books, classes, and other information available for you to learn Java. Get started on the Raspberry Pi by using the [BlueJ][7] Java IDE.
|
|
||||||
|
|
||||||
![](https://opensource.com/sites/default/files/uploads/bluejayide.png)
|
|
||||||
|
|
||||||
### JavaScript
|
|
||||||
|
|
||||||
"Back in my day…" [JavaScript][8] was a client-side language that basically allowed people to streamline and automate user events in a browser and modify HTML elements. Today, JavaScript has escaped the browser and is available for other types of clients like mobile apps and even server-side programming. [Node.js][9] is a popular runtime environment that allows developers to code beyond the client-browser paradigm. To learn more about running Node.js on the Raspberry Pi, check out [W3Schools tutorial][10].
|
|
||||||
|
|
||||||
### Other languages
|
|
||||||
|
|
||||||
If there's another language you want to learn, don't despair. There's a high likelihood that you can use your Raspberry Pi to compile or interpret any language of choice, including C, C++, PHP, and Ruby.
|
|
||||||
|
|
||||||
Microsoft's [Visual Studio Code][11] also [runs on the Raspberry Pi][12]. It's an open source code editor from Microsoft that supports several markup and programming languages.
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
via: https://opensource.com/article/19/3/programming-languages-raspberry-pi
|
|
||||||
|
|
||||||
作者:[Anderson Silva][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/ansilva
|
|
||||||
[b]: https://github.com/lujun9972
|
|
||||||
[1]: https://opensource.com/article/19/2/teach-kids-program-raspberry-pi
|
|
||||||
[2]: https://opensource.com/resources/python
|
|
||||||
[3]: https://www.economist.com/graphic-detail/2018/07/26/python-is-becoming-the-worlds-most-popular-coding-language
|
|
||||||
[4]: https://thonny.org/
|
|
||||||
[5]: https://raspberrypihq.com/getting-started-with-python-programming-and-the-raspberry-pi/
|
|
||||||
[6]: https://opensource.com/resources/java
|
|
||||||
[7]: https://www.bluej.org/raspberrypi/
|
|
||||||
[8]: https://developer.mozilla.org/en-US/docs/Web/JavaScript
|
|
||||||
[9]: https://nodejs.org/en/
|
|
||||||
[10]: https://www.w3schools.com/nodejs/nodejs_raspberrypi.asp
|
|
||||||
[11]: https://code.visualstudio.com/
|
|
||||||
[12]: https://pimylifeup.com/raspberry-pi-visual-studio-code/
|
|
@ -0,0 +1,65 @@
|
|||||||
|
[#]: collector: "lujun9972"
|
||||||
|
[#]: translator: "qhwdw"
|
||||||
|
[#]: reviewer: " "
|
||||||
|
[#]: publisher: " "
|
||||||
|
[#]: url: " "
|
||||||
|
[#]: subject: "3 popular programming languages you can learn with Raspberry Pi"
|
||||||
|
[#]: via: "https://opensource.com/article/19/3/programming-languages-raspberry-pi"
|
||||||
|
[#]: author: "Anderson Silva https://opensource.com/users/ansilva"
|
||||||
|
|
||||||
|
可以使用树莓派学习的 3 种流行编程语言
|
||||||
|
======
|
||||||
|
通过树莓派学习编程,让你在就业市场上更值钱。
|
||||||
|
![](https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/programming_language_c.png?itok=mPwqDAD9)
|
||||||
|
|
||||||
|
在本系列的上一篇文章中,我分享了 [教孩子们使用树莓派编程][1] 的一些方式。理论上,这些资源并不局限于只适用于孩子们,成人也是可以使用的。但是学习就业市场上急需的编程语言,可以让你得到更好的机会。
|
||||||
|
|
||||||
|
这里是你可以使用树莓派学习的三种编程语言。
|
||||||
|
|
||||||
|
### Python
|
||||||
|
|
||||||
|
[Python][2] 已经成为开源世界里 [最流行的编程语言][3]。它的解释器已经打包进每个流行的 Linux 发行版中。如果你在树莓派中安装的是 Raspbian,你就会看到一个名为 [Thonny][4] 的应用,它是为新手准备的 Python 集成开发环境。简单来说,一个集成开发环境就是能够提供让你的代码运行起来所需要的任何东西的一个应用程序,一般来说,包括调试器、文档、自动编译,和仿真程序。[这是一个在树莓派上使用 Thonny 和 Python 入门的非常好的小教程][5]。
|
||||||
|
|
||||||
|
![](https://opensource.com/sites/default/files/uploads/thonny.png)
|
||||||
|
|
||||||
|
### Java
|
||||||
|
|
||||||
|
虽然 [Java][6] 已经不像以前那样引人注目了,但它仍然在世界各地的大学和企业中占据着重要的地位。因此,即便是一些人对我建议新手学习 Java 持反对意见,但我仍然强烈推荐大家去学习 Java;之所以这么做,原因之一是,它仍然很流行,原因之二是,它有大量的便于你学习的图书、课程、和其它的可用信息。在树莓派上学习它,你可以从使用 Java 集成开发环境 [BlueJ][7] 开始。
|
||||||
|
|
||||||
|
![](https://opensource.com/sites/default/files/uploads/bluejayide.png)
|
||||||
|
|
||||||
|
### JavaScript
|
||||||
|
|
||||||
|
“我的黄金时代…" [JavaScript][8] 的本质是一个允许用户去组织和自动化浏览器中的用户事件以及修改 HTML 元素的客户端语言。目前,JavaScript 已经不仅限于浏览器中,它在其它类型的客户端(移动应用)中也是可以使用的,甚至也用在服务器端编程。[Node.js][9] 是一个流行的运行时环境,它允许开发者在客户端-浏览器范式之外写程序。想学习在树莓派上运行 Node.js 的更多知识,请查看 [W3Schools 教程][10]。
|
||||||
|
|
||||||
|
### 其它编程语言
|
||||||
|
|
||||||
|
如果这里没有列出你想学习的编程语言,别失望。你可以使用你的树莓派去编译或解释任何你选择的语言,包括 C、C++、PHP、和 Ruby,这种可能性还是很大的。
|
||||||
|
|
||||||
|
微软的 [Visual Studio Code][11] 也可以运行在 [树莓派][12] 上。它是来自微软的开源代码编辑器,它支持多种标记和编程语言。
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
via: https://opensource.com/article/19/3/programming-languages-raspberry-pi
|
||||||
|
|
||||||
|
作者:[Anderson Silva][a]
|
||||||
|
选题:[lujun9972][b]
|
||||||
|
译者:[qhwdw](https://github.com/qhwdw)
|
||||||
|
校对:[校对者ID](https://github.com/校对者ID)
|
||||||
|
|
||||||
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||||
|
|
||||||
|
[a]: https://opensource.com/users/ansilva
|
||||||
|
[b]: https://github.com/lujun9972
|
||||||
|
[1]: https://opensource.com/article/19/2/teach-kids-program-raspberry-pi
|
||||||
|
[2]: https://opensource.com/resources/python
|
||||||
|
[3]: https://www.economist.com/graphic-detail/2018/07/26/python-is-becoming-the-worlds-most-popular-coding-language
|
||||||
|
[4]: https://thonny.org/
|
||||||
|
[5]: https://raspberrypihq.com/getting-started-with-python-programming-and-the-raspberry-pi/
|
||||||
|
[6]: https://opensource.com/resources/java
|
||||||
|
[7]: https://www.bluej.org/raspberrypi/
|
||||||
|
[8]: https://developer.mozilla.org/en-US/docs/Web/JavaScript
|
||||||
|
[9]: https://nodejs.org/en/
|
||||||
|
[10]: https://www.w3schools.com/nodejs/nodejs_raspberrypi.asp
|
||||||
|
[11]: https://code.visualstudio.com/
|
||||||
|
[12]: https://pimylifeup.com/raspberry-pi-visual-studio-code/
|
Loading…
Reference in New Issue
Block a user