LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-15-2005, 01:09 AM   #1
Bu3Nix
LQ Newbie
 
Registered: Sep 2005
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Newbie... confirmation


Hey,
I've read up on the idea/philosophy that Linux/BSD focuses on and strongly agree.
I finally got away from M$ when I got my Mac, but then realized that even with Mac having a strong base in Unix (OSX), I'm still not getting the OS I wanted. I've programmed before, but only in fluffed up editors/compilers. I'm not used to having the non colored editor that runs seperate from the compiler (if that makes any sense). If I understand this right I need to use VI or emacs to make the file and save it, then use gcc to compile it? It's not like a M$ compiler inwhich you click 'compile' in the menu inside of your editor. I've got no prob doing this, but I just don't see how this ends up becoming more efficient. Oh, and linux users are still hardcore command prompt users... is there a reason or is this just a revolt against gui's? Peace out, and oh yea, I just got slackware loaded if that's important.
 
Old 09-15-2005, 01:30 AM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
1. No, you don't have to use VI or Emacs to do your coding. All you need is a text editor. There are tons of them. There are even some IDEs which will look like the "fluffed" environments you refer to. Two popular ones are Anjuta and Kdevelop. There are more, as I'm sure others will mention.

2. No, you don't have to compile with gcc; there are other compilers out there. However, gcc is the de facto standard compiler in *nix environments. The IDE environments can be set up to use any compiler as long as you know the command line to invoke it, and will offer to recompile with the push of a button if that's what you like.

3. Some Linux users could be considered "hardcore command prompt" users, but not all. As you use the computer, you'll find that the command prompt offers far more flexibility than any GUI can provide. How long would it take to delete each cpp and hpp file in a given directory with a GUI? You have to open the file browser, navigate to the directory, visually inspect each filename, select it if it's cpp or hpp, and then drag to the trash (not counting miss-clicks where the wrong file is selected and needs to be unselected before continuing). On the command line:
Code:
rm /path/to/dir/*.{c,h}pp
In general, the command line can do more in less time than a GUI, but it requires some knowledge on the user's part. The GUI has its uses, but it is not a replacement for the command line.
 
Old 09-15-2005, 03:19 AM   #3
Lux Perpetua
LQ Newbie
 
Registered: Aug 2005
Location: Local Group
Distribution: Ubuntu Linux
Posts: 15

Rep: Reputation: 0
Small point - just so you know, if you're using the X-Windows Emacs to edit your code, you have immediate access to (1) syntax coloring/highlighting, (2) compiling your code from the editor (and seeing all the messages in a new buffer), if you have the C-mode installed. There is actually a compile button under "Tools." Emacs rocks. I'm still waiting for the "Emacs Desktop Environment" :-D

Regarding efficiency, I agree with Dark_Helmet. Actually, I think a more accurate way of saying it is that the keyboard is in general a lot more powerful than a mouse. It just takes more coordination and practice, which most people already have in spades if they've been using computers for a while for word processing.

The command prompt is popular in Linux, and I think if you use it for a while, you will see why. There are sooo many times when I'm using some fancy GUI application that I wish I could just switch into "command mode" and type commands instead of clicking all the time.
 
Old 09-15-2005, 04:28 AM   #4
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
most modern 'vi' editors have syntax highlighting.
You can get IDEs, there's loads that do what you want.

But...why do you think we generally use vi and make files?
It's because it's more powerful, not less.
We are lazy, do you think we like making work for ourselves

I can do anything in vi or command line ten times quicker than a GUI.
Have you ever tried to search and replace in multiple files in Windows?
or rename 100 files? I'd need to book a day off
 
Old 09-15-2005, 06:41 AM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Quote:
Emacs rocks. I'm still waiting for the "Emacs Desktop Environment" :-D
It already exists
It is called Emacspeak, and is targetted at blind people

Yves.
 
Old 09-15-2005, 08:00 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Re 'modern vi editors' see vim (vi improved). Usually comes as std on Linux installs. Has syntax highlighting, longer line limits, macros etc etc ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
shell script asking for confirmation? bikov_k Programming 6 11-04-2005 02:16 AM
Google asking for visual confirmation now? vharishankar General 8 08-17-2005 08:07 PM
Ctrl+C Confirmation pjpeter Linux - Newbie 2 09-25-2004 05:49 PM
what's with all the confirmation screens? andredude LQ Suggestions & Feedback 1 05-07-2004 03:56 PM
about to do some involved partition work: need confirmation andrew001 Linux - Software 2 07-01-2003 12:18 PM

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

All times are GMT -5. The time now is 09:34 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