LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-17-2006, 11:30 AM   #1
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
Totally New To Linux Programming!!


hi guys,

i am a total newbie to Linux Programming, cause i have just switched Over from Windows to Linux(Ubuntu)...!
I want to learn the basic things that a Linux Programmer shud know!!

Please Help!!
 
Old 06-17-2006, 11:38 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Java ^^. Seriously though, what do you want to do? Linux programmers/advanced users usually want to learn at least C and some sort of scripting language as perl or python. If you don't have an objective (ex: developing an application or script), then you don't need to learn programming. You don't need that in order to use Linux. Well, short answer: C and Perl ^-^
 
Old 06-17-2006, 04:40 PM   #3
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Rep: Reputation: 15
he might try to hack the kernel!
 
Old 06-18-2006, 04:05 AM   #4
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
*Cough* You mean C and Python.
 
Old 06-18-2006, 04:37 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Bash is the native linux shell. You will want to learn how to use it and common tools such as grep, sed, awk and others. In linux, it is common to write short scripts which pipe the output of one command to the input of another until you get what you want.

The kernel, and most of the commands in linux are written in C. If you plan to use a GUI framework, then you want to learn C++.

Some distro's use bash for most of their scripts. Others use Perl.

If you want to learn C programming in Linux, I would highly recommend reading "Linux Programming By Example: The Fundamentals" by Arnold Robbins.

One of the neat things about linux, is that you can dip your toe into different languages without without shelling out a couple hundred dollars for a compiler.

Good Luck!
 
Old 06-18-2006, 10:20 AM   #6
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
i have done some c++ programming in Turbo C++ & Bloodshed's DEV-C++ on Windows.
SO, are there any changes while programming in C++ on Linux, like the header files.. etc.
 
Old 06-18-2006, 10:37 AM   #7
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
OK... First things First..
I am totally new to Linux, just know how to Install it & Partition the Drive...& other such usual stuff.

But i have done only a small amount of Shell Scripting using VIM, that too 1 & 1/2 yrs back.

So, i need to start from Scratch...!!
How shud i go about it...??
 
Old 06-18-2006, 01:47 PM   #8
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Quote:
Originally Posted by introuble
*Cough* You mean C and Python.
You know, I really want to say python (since I can't perl very well) and I'm not sure why I suggested it. Oh well ^_^
 
Old 06-18-2006, 01:58 PM   #9
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
Sart by calming down!!!

Learn shell scripting. Then learn Python. Then learn C. Come back in 20 years and I'll tell you what to do next.
 
Old 06-19-2006, 05:39 PM   #10
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
Learn shell scripting. Then learn Python. Then learn C. Come back in 20 years and I'll tell you what to do next.
That'll be ten years. I started writing .BAT files and HTML at (to the best of my memory) age 13, followed that up by javascript. At age 15, I started learning C. At around age 20, I learned python. At age 22, I learned C++, java, SML and bash scripting (along with XML, XPATH, XSLT, XHTML and LaTeX, but they're not programming languages). I'll soon turn 23, so over the cause of ten years, I've learned the three languages you've suggested, plus a bit more.

I might be a great hacker (http://www.paulgraham.com/gh.html), but I don't know. I'm as close to a straight-A student (comp.sci. major, math minor) as you'll ever get in real life (note: some difference between the danish and american grading system is lost in translation), but the interpretation of that I'll leave up to you.

Anyways, I didn't come here just to talk about myself (and certainly not to brag). I have a little trouble pinpointing your exact skill level, but I would say that if you already have done a bit of programming, it wouldn't be too hard to pick up on bash, python and C simultaneously. The fundamentals are the same anyways (variables, iteration, branching, recursion, printf-like string formatting), only the syntax differs. By learning them simultaneously, I conjecture you'll also discover quite clearly the ways in which the languages differ. I might be pulling that out of my ass, though.

You may want to consider reading "The C programming language, 2nd edition" (the K&R book), "How to think like a computer scientist: learning with python" (on ibiblio, IIRC) and "Advanced Bash Scripting guide" (GIYF).
 
Old 06-20-2006, 10:35 AM   #11
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
hey dude,

i already know how to program in c++,VB,ASP,JavaScript,VBScript,
Core Java.

All i need is a way so that i can use my knowledge in Linux instead of windows
 
Old 06-20-2006, 07:10 PM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Just try to write something in Linux that you've already done in MSWin ie port a program. Note that VB, ASP & VBScript are MSWin only (unless you go for WINE or VMware).
Knowing bash is pretty much a pre-requisite for Linux, especially if you are using the CLI (cmd line interface).
 
Old 06-28-2006, 10:22 AM   #13
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
Originally Posted by chrism01
Knowing bash is pretty much a pre-requisite for Linux, especially if you are using the CLI (cmd line interface).
I disagree: knowing bash in the sense that's being discussed here (i.e. for scripting) is not a prerequisite for using GNU/Linux, just like being able to write .BAT files isn't a prerequisite for using DOS (let alone windows).

That being said, knowing your way around bash (that is, knowing what cd, mv, ls, cp, ed, ps, bg, m4, at, as, ln, ld, cc, ar, ... does) probably is something you'll have to learn in order to use GNU/Linux (okay, maybe I'm stretching it a bit, but cd, mv, ls, cp, ps, and ln are probably reasonable to expect)--because it's not (yet?) everything that can be done with a GUI.
 
Old 06-29-2006, 02:35 AM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Knowing the cmds avail from the CLI was what I meant, as in the most common environment (ie shell) on Linux is bash ....
Given his stated known langs, the 2 that directly work on Linux ie Java & C++ are usually programmed from the CLI by most people I know. More accurately, even if they try to use an IDE, they usually have 1 or 2 xterms open as well....
 
Old 06-29-2006, 09:49 AM   #15
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Just gonna throw in my two cents worth, crash_override_me (Hackers ref., no?), if you want to keep up your VB practice on Linux, look into Gambas. It's not a VB clone, but more like a VB "clean up" for Linux. Gambas BASIC is almost identical to Visual BASIC, with a couple slight changes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Totally new to linux parttimenerd Linux - Newbie 8 06-20-2006 02:57 AM
Need Help. Totally new to Linux sticky359 Linux - Newbie 11 07-04-2005 11:58 PM
Not totally programming related, but... mailing lists? lowpro2k3 Programming 1 05-22-2005 10:33 PM
Hi...Totally new to Linux. dragonV8 LinuxQuestions.org Member Intro 2 02-08-2005 12:43 PM
Totally new to Linux aspstg LinuxQuestions.org Member Success Stories 0 07-23-2003 12:45 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration