Linux programming getting started

Linux programming — getting started, how?

I would like to turn to a new programming language — but still focused on desktop applications.

  • An editor — preferably with good intellisense
  • A programming languages and the resources to get started

If anyone can point me in the right direction, I’d be happy for a little push.

EDIT: Thanks for all the advice — I’ve come up with the following:

I’ll definetly try out Vala and Perl later and have MonoDevelop as backup editor — and if all else fails, I’ll turn to C++. I’ve upvoted all answers as they all helped me.

EDIT2: Okay — Vim was a bit too hardcore. Installed Cream on top.

that is correct. However other editors have similar features, but being emacs user I can only recommend emacs features

7 Answers 7

Unlike the Windows world, where everything is designed to be Windows-only, I think it is quite typical to find that the rest of the world designs software to specifications, not to implementations. If you are developing in Java, then it doesn’t matter what platform you intend to use, and Eclipse and NetBeans provide excellent tooling for Java on all platforms, Linux included. If you are developing in C++, then Boost and Qt provide excellent cross-platform support. If you need to go outside of Boost or Qt, then before delving into Linux-specific features, it is best to target the Single UNIX Specification also known as IEEE Std. 1003.1 POSIX, which will ensure that your application not only runs on Linux, but also on any UNIX-compliant operating system (including Mac OS X, FreeBSD, Solaris, and others).

Читайте также:  Mount qcow2 image linux

As for IDEs and other editors. I think most programmers on UNIX platforms build from the commandline (using CMake, Make, scons, or some other standard build tool); however, there are plenty of IDEs with support for those that can run such tools automatically. Anjuta C++ and KDevelop are probably the easiest IDEs to use on Linux. Emacs (emacs, emacs-gtk, xemacs) and Vim (vim, gvim) provide a great deal of power and flexibility, but take a little bit more time to get used to. You might also want to consider a basic text editor such as GEdit (Gnome) or Kate (KDE); GEdit, though billed as a simple text editor, supports some more advanced coding features via a number of plugins. I don’t recall whether it supports autocompletion, but it does support line numbers, automatic indenting, using spaces instead of tabs, commenting a block of code en-masse, and executing a Makefile with a shortcut.

Depends on how much you want to learn (from the easiest option to the hardest one):

  • Just use C# via Mono — that gives you access to most of the POSIX interfaces via Mono.UNIX, access to GTK# so you can do desktop apps, access to many linux libraries, so you can do more advanced stuff / integrate better. (you can program in Monodevelop — it’s a Sharpdevelop clone, kind of VS-ish)
  • Learn Vala — it’s a language compiled down to C, very similar to C# but closer to the bare minimum. It’s gathers anti-MS people who wanted a response to C# IMHO. (never really used it, but apparently there’s a Vala plugin for Monodevelop and the language itself is becoming more popular)
  • Learn Python — it’s a scripting language. It’s got bindings to most popular libraries (also GTK and QT) (IDE: anything that can edit text — you won’t get good intellisense from a dynamic language anyways)
  • Learn C++ and QT, or C and GTK — although those are very low level languages where you will spend a lot of time just getting used to the environment. (IDE: Anjuta, Kdevelop, Monodevelop with C++ plugin, Eclipse+CDT, emacs, vim, etc. — anything goes really)
Читайте также:  Linux npm permission denied

If you want «something new», but don’t want to spend loads of time learning a completely new environment, I’d recommend trying out Vala. If you’re more curious about different styles, go for Python, which I think has a very good tutorial for new people (but not new to programming): Tutorial or Beginner’s Guide. With Python you also have an advantage of having the whole environment available in packages in any distribution, no such luck with Vala (yet).

Источник

Linux. Системное программирование.

Данная книга рассказывает о системном программировании в Linux. Системное программирование — это практика написания системного ПО, низкоуровневый код которого взаимодействует непосредственно с ядром и основными системными библиотеками. Иными словами, речь далее пойдет в основном о системных вызовах Linux и низкоуровневых функциях, в частности тех, которые определены в библиотеке C. Есть немало пособий, посвященных системному программированию для UNIX-систем, но вы почти не найдете таких, которые рассматривают данную тему достаточно подробно и фокусируются именно на Linux. Еще меньше подобных книгучитывают новейшие релизы Linux и продвинутые интерфейсы, ориентированные исключительно на Linux. Эта книга не только лишена всех перечисленных недостатков, но и обладает важным достоинством: дело в том, что я написал массу кода для Linux, как для ядра, так и для системных программ, расположенных непосредственно «над ядром». На самом деле я реализовал на практике ряд системных вызовов и других функций, описанных далее. Соответственно книга содержит богатый материал, рассказывая не только о том, как должны работать системные интерфейсы, но и о том, как они действительно работают и как вы сможете использовать их с максимальной эффективностью. Таким образом, данная книга одновременно является и руководством по системному программированию для Linux, и справочным пособием, описывающим системные вызовы Linux, и подробным повествованием о том, как создавать более интеллектуальный и быстрый код. Текст написан простым, доступным языком. Независимо от того, является ли создание системного кода вашей основной работой, эта книга научит полезным приемам, которые помогут вам стать по-настоящему высокопрофессиональным программистом.

Читайте также:  Поиск руткитов в linux

Источник

Оцените статью
Adblock
detector