特殊:Badtitle/NS100:PowerUsersProgramming:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第6行: | 第6行: | ||
Scripting languages are usually easy to learn and use. They are called scripting languages because of they are interpreted instead of compiled to machine language like C/C++ for example. | Scripting languages are usually easy to learn and use. They are called scripting languages because of they are interpreted instead of compiled to machine language like C/C++ for example. | ||
==== Python ==== | ==== Python ==== | ||
Out of the box Ubuntu comes with Python and many extension modules. | Out of the box Ubuntu comes with Python and many extension modules. [[UbuntuHelp:Python]] is very powerful and easy to use. In fact it is the preferred language by most of the Ubuntu developers. You can easily play with python interactively. Start a terminal and type python[enter]. For a more elaborate tutorial and a billion of other useful information about Python, visit http://www.python.org | ||
==== Perl ==== | ==== Perl ==== | ||
Perl is very popular with web programmers and system administrators. One of Perl's main features is the way regular expression. Most languages now include regular expressions but Perl is particularly powerful when processing a lot of text. Perl is already installed on you system. For more information visit http://www.perl.org Perl has a large amount of extension written for it; Visit cpan.perl.org to find them. | |||
==== Ruby ==== | ==== Ruby ==== | ||
Ruby | Ruby is a "dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write." Check out http://www.ruby-lang.org for more. Ruby is also installed by default on your system. | ||
You might what to install the irb package to use the ruby interactive interpreter. | You might what to install the irb package to use the ruby interactive interpreter. | ||
=== Others === | === Others === | ||
This is a collection of other extremely useful languages. | This is a collection of other extremely useful languages. | ||
==== C and C++ ==== | ==== C and C++ ==== | ||
C is not usually a great language to begin programming with but it is the most | C is not usually a great language to begin programming with but it is the most powerful programming language in popular use. If you need speed and efficiency, C is the best choice. The Linux kernel, the heart of the Ubuntu operating system, is written in C. | ||
C++ is mostly an | C++ is mostly an extension of C. The main advantage of C++ is that it is an Object Oriented language. (With some talent C can also be used for OOP). | ||
To use C and C++ you will need to do to install the build-essential package | To use C and C++ you will need to do to install the build-essential package. | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install build-essential | sudo apt-get install build-essential | ||
第23行: | 第23行: | ||
You can now compile C and C++ programs with gcc and g++. Read there respective man pages for the most information. | You can now compile C and C++ programs with gcc and g++. Read there respective man pages for the most information. | ||
==== Visual Basic ==== | ==== Visual Basic ==== | ||
The [[UbuntuHelp: | The [[UbuntuHelp:vb2py]] project is developing a suite of conversion tools to aid in translating existing Visual Basic projects into Python. | ||
==== Gambas ==== | ==== Gambas ==== | ||
Gambas is very similar to Microsoft's Visual Basic system (but not compatible) and available in Ubuntu's repositories. If you are familiar with VB then you may want to try Gambas as a stepping stone to more powerful languages. | Gambas is very similar to Microsoft's Visual Basic system (but not compatible) and available in Ubuntu's repositories. If you are familiar with VB then you may want to try Gambas as a stepping stone to more powerful languages. | ||
==== Java ==== | ==== Java ==== | ||
Java was created by Sun Microsystems and is now used all over the place. The beauty of Java is it's power, combined with it's portability. Programs written in Java can usually be run across multiple operating systems on multiple machine architectures without a need to recompile like C/C++, as long as there is a Java Virtual Machine available on the desired OS and platform. Java is a popular language to learn due to it's object oriented nature, cross platform abilities and the fact that instructing a virtual machine can often be easier than instructing a real machine. One of the most comprehensive development environments for Java is Eclipse, which you can find in the Ubuntu repositories along with many plugins. | Java was created by Sun Microsystems and is now used all over the place. The beauty of Java is it's power, combined with it's portability. Programs written in Java can usually be run across multiple operating systems on multiple machine architectures without a need to recompile like C/C++, as long as there is a Java Virtual Machine available on the desired OS and platform. Java is a popular language to learn due to it's object oriented nature, cross platform abilities and the fact that instructing a virtual machine can often be easier than instructing a real machine. One of the most comprehensive development environments for Java is Eclipse, which you can find in the Ubuntu repositories along with many plugins. | ||
Java was created as a proprietary format, | Java was originally created as a proprietary format, this is no longer the case since Sun founded the OpenJDK project. | ||
==== Mono ==== | ==== Mono ==== | ||
Mono is a Free Software implementation of Microsoft's .NET system. If you are familiar with languages such as C# then you will like Mono. Mono Devel is in Ubuntu and can quickly create extremely powerful programs which, if coded accordingly, can even be run on Microsoft Windows. Mono is relatively new to the programming world, but it's power has attracted many popular projects like the Beagle "desktop search" tool, the Banshee media player and the [[UbuntuHelp:F-Spot|F-Spot]] picture/photo | Mono is a Free Software implementation of Microsoft's .NET system. If you are familiar with languages such as C# then you will like Mono. Mono Devel is in Ubuntu and can quickly create extremely powerful programs which, if coded accordingly, can even be run on Microsoft Windows. Mono is relatively new to the programming world, but it's power has attracted many popular projects like the Beagle "desktop search" tool, the Banshee media player and the [[UbuntuHelp:F-Spot|F-Spot]] picture/photo organizer. | ||
---- | ---- | ||
[[category:CategoryDocumentation]] | [[category:CategoryDocumentation]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年10月19日 (日) 16:56的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/PowerUsersProgramming }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/af | • {{#if: UbuntuHelp:PowerUsersProgramming|Afrikaans| [[::PowerUsersProgramming/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/ar | • {{#if: UbuntuHelp:PowerUsersProgramming|العربية| [[::PowerUsersProgramming/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/az | • {{#if: UbuntuHelp:PowerUsersProgramming|azərbaycanca| [[::PowerUsersProgramming/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/bcc | • {{#if: UbuntuHelp:PowerUsersProgramming|جهلسری بلوچی| [[::PowerUsersProgramming/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/bg | • {{#if: UbuntuHelp:PowerUsersProgramming|български| [[::PowerUsersProgramming/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/br | • {{#if: UbuntuHelp:PowerUsersProgramming|brezhoneg| [[::PowerUsersProgramming/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/ca | • {{#if: UbuntuHelp:PowerUsersProgramming|català| [[::PowerUsersProgramming/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/cs | • {{#if: UbuntuHelp:PowerUsersProgramming|čeština| [[::PowerUsersProgramming/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/de | • {{#if: UbuntuHelp:PowerUsersProgramming|Deutsch| [[::PowerUsersProgramming/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/el | • {{#if: UbuntuHelp:PowerUsersProgramming|Ελληνικά| [[::PowerUsersProgramming/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/es | • {{#if: UbuntuHelp:PowerUsersProgramming|español| [[::PowerUsersProgramming/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/fa | • {{#if: UbuntuHelp:PowerUsersProgramming|فارسی| [[::PowerUsersProgramming/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/fi | • {{#if: UbuntuHelp:PowerUsersProgramming|suomi| [[::PowerUsersProgramming/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/fr | • {{#if: UbuntuHelp:PowerUsersProgramming|français| [[::PowerUsersProgramming/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/gu | • {{#if: UbuntuHelp:PowerUsersProgramming|ગુજરાતી| [[::PowerUsersProgramming/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/he | • {{#if: UbuntuHelp:PowerUsersProgramming|עברית| [[::PowerUsersProgramming/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/hu | • {{#if: UbuntuHelp:PowerUsersProgramming|magyar| [[::PowerUsersProgramming/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/id | • {{#if: UbuntuHelp:PowerUsersProgramming|Bahasa Indonesia| [[::PowerUsersProgramming/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/it | • {{#if: UbuntuHelp:PowerUsersProgramming|italiano| [[::PowerUsersProgramming/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/ja | • {{#if: UbuntuHelp:PowerUsersProgramming|日本語| [[::PowerUsersProgramming/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/ko | • {{#if: UbuntuHelp:PowerUsersProgramming|한국어| [[::PowerUsersProgramming/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/ksh | • {{#if: UbuntuHelp:PowerUsersProgramming|Ripoarisch| [[::PowerUsersProgramming/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/mr | • {{#if: UbuntuHelp:PowerUsersProgramming|मराठी| [[::PowerUsersProgramming/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/ms | • {{#if: UbuntuHelp:PowerUsersProgramming|Bahasa Melayu| [[::PowerUsersProgramming/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/nl | • {{#if: UbuntuHelp:PowerUsersProgramming|Nederlands| [[::PowerUsersProgramming/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/no | • {{#if: UbuntuHelp:PowerUsersProgramming|norsk| [[::PowerUsersProgramming/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/oc | • {{#if: UbuntuHelp:PowerUsersProgramming|occitan| [[::PowerUsersProgramming/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/pl | • {{#if: UbuntuHelp:PowerUsersProgramming|polski| [[::PowerUsersProgramming/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/pt | • {{#if: UbuntuHelp:PowerUsersProgramming|português| [[::PowerUsersProgramming/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/ro | • {{#if: UbuntuHelp:PowerUsersProgramming|română| [[::PowerUsersProgramming/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/ru | • {{#if: UbuntuHelp:PowerUsersProgramming|русский| [[::PowerUsersProgramming/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/si | • {{#if: UbuntuHelp:PowerUsersProgramming|සිංහල| [[::PowerUsersProgramming/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/sq | • {{#if: UbuntuHelp:PowerUsersProgramming|shqip| [[::PowerUsersProgramming/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/sr | • {{#if: UbuntuHelp:PowerUsersProgramming|српски / srpski| [[::PowerUsersProgramming/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/sv | • {{#if: UbuntuHelp:PowerUsersProgramming|svenska| [[::PowerUsersProgramming/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/th | • {{#if: UbuntuHelp:PowerUsersProgramming|ไทย| [[::PowerUsersProgramming/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/tr | • {{#if: UbuntuHelp:PowerUsersProgramming|Türkçe| [[::PowerUsersProgramming/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/vi | • {{#if: UbuntuHelp:PowerUsersProgramming|Tiếng Việt| [[::PowerUsersProgramming/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/yue | • {{#if: UbuntuHelp:PowerUsersProgramming|粵語| [[::PowerUsersProgramming/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/zh | • {{#if: UbuntuHelp:PowerUsersProgramming|中文| [[::PowerUsersProgramming/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/zh-hans | • {{#if: UbuntuHelp:PowerUsersProgramming|中文(简体)| [[::PowerUsersProgramming/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersProgramming | UbuntuHelp:PowerUsersProgramming | {{#if: | :}}PowerUsersProgramming}}/zh-hant | • {{#if: UbuntuHelp:PowerUsersProgramming|中文(繁體)| [[::PowerUsersProgramming/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:PowerUsersProgramming|:PowerUsersProgramming|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :PowerUsersProgramming/zh | | {{#ifexist: PowerUsersProgramming/zh | | {{#ifeq: {{#titleparts:PowerUsersProgramming|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:PowerUsersProgramming|1|-1|}} | zh | | }}
Ubuntu and Programming
Ubuntu is a great development platform. You can easily program in C/C++, java, fortran, python, perl, ruby, tcl, lisp ... and many more.
Scripting Languages
Scripting languages are usually easy to learn and use. They are called scripting languages because of they are interpreted instead of compiled to machine language like C/C++ for example.
Python
Out of the box Ubuntu comes with Python and many extension modules. UbuntuHelp:Python is very powerful and easy to use. In fact it is the preferred language by most of the Ubuntu developers. You can easily play with python interactively. Start a terminal and type python[enter]. For a more elaborate tutorial and a billion of other useful information about Python, visit http://www.python.org
Perl
Perl is very popular with web programmers and system administrators. One of Perl's main features is the way regular expression. Most languages now include regular expressions but Perl is particularly powerful when processing a lot of text. Perl is already installed on you system. For more information visit http://www.perl.org Perl has a large amount of extension written for it; Visit cpan.perl.org to find them.
Ruby
Ruby is a "dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write." Check out http://www.ruby-lang.org for more. Ruby is also installed by default on your system. You might what to install the irb package to use the ruby interactive interpreter.
Others
This is a collection of other extremely useful languages.
C and C++
C is not usually a great language to begin programming with but it is the most powerful programming language in popular use. If you need speed and efficiency, C is the best choice. The Linux kernel, the heart of the Ubuntu operating system, is written in C. C++ is mostly an extension of C. The main advantage of C++ is that it is an Object Oriented language. (With some talent C can also be used for OOP). To use C and C++ you will need to do to install the build-essential package.
sudo apt-get install build-essential
You can now compile C and C++ programs with gcc and g++. Read there respective man pages for the most information.
Visual Basic
The UbuntuHelp:vb2py project is developing a suite of conversion tools to aid in translating existing Visual Basic projects into Python.
Gambas
Gambas is very similar to Microsoft's Visual Basic system (but not compatible) and available in Ubuntu's repositories. If you are familiar with VB then you may want to try Gambas as a stepping stone to more powerful languages.
Java
Java was created by Sun Microsystems and is now used all over the place. The beauty of Java is it's power, combined with it's portability. Programs written in Java can usually be run across multiple operating systems on multiple machine architectures without a need to recompile like C/C++, as long as there is a Java Virtual Machine available on the desired OS and platform. Java is a popular language to learn due to it's object oriented nature, cross platform abilities and the fact that instructing a virtual machine can often be easier than instructing a real machine. One of the most comprehensive development environments for Java is Eclipse, which you can find in the Ubuntu repositories along with many plugins. Java was originally created as a proprietary format, this is no longer the case since Sun founded the OpenJDK project.
Mono
Mono is a Free Software implementation of Microsoft's .NET system. If you are familiar with languages such as C# then you will like Mono. Mono Devel is in Ubuntu and can quickly create extremely powerful programs which, if coded accordingly, can even be run on Microsoft Windows. Mono is relatively new to the programming world, but it's power has attracted many popular projects like the Beagle "desktop search" tool, the Banshee media player and the F-Spot picture/photo organizer.