LinuxQuestions.org
Visit Jeremy's Blog.
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 09-26-2012, 04:34 AM   #1
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Rep: Reputation: 25
How to coding under Linux?


Although I start use linux about two years, I almost has not written a useable program under linux. I have to code using Visual Studio under windows if needed, that's not what i want. I want to be a pure linuxer.
Im not sure if I need a IDE for linux? I only want to write code as fast as possiable, and extensiable. Words auto-completing is not important, but I want a convenient reference search, like functions definition, etc.
I know basic edit vi and emacs, but how to make it as a coding tool?
Im puzzled.
 
Old 09-26-2012, 04:41 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,905

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
you need to have practice. 20 years ago vi was capable to do what you need (and emacs too). And it is now improved a lot.
 
Old 09-26-2012, 04:51 AM   #3
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Try using a graphical IDE first like Code::Blocks.
Qt Creator might be a good one too.
There's Eclipse and Netbeans too but I'm not sure if it's ok for you to install multiple modules and dependencies.
 
1 members found this post helpful.
Old 09-26-2012, 07:40 PM   #4
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by konsolebox View Post
Try using a graphical IDE first like Code::Blocks.
Qt Creator might be a good one too.
There's Eclipse and Netbeans too but I'm not sure if it's ok for you to install multiple modules and dependencies.
Code:Blocks? Yes, I know it, and its perfect, and it use wxWidgets. I also like wxWidgets.
However, I want to make coding as simple, like writing a makefile to build projects.
I think I should not depend on any special IDE, like Visual Studio now, i want to leave the circle it draw for me.
 
Old 09-26-2012, 07:43 PM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

what about emacs with etags?

Evo2.
 
Old 09-26-2012, 07:43 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
If you want to leave the IDE bubble, then I would start with emacs. It will give you auto-indent, syntax completion, and syntax highlighting. For function definitions you can use the internet. After a few different google searches you should be able to find a site that gives you the kind of information you're looking for quickly and easily, then just bookmark it.
 
Old 09-26-2012, 08:11 PM   #7
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
If it was Win*, you could have had Notepad++, but if you like you could have wine to run it like I do. (No editor has beaten Notepad++ yet for being the best free general editor around - at least since 2004.)

Last edited by konsolebox; 09-26-2012 at 08:13 PM.
 
Old 09-26-2012, 08:16 PM   #8
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by pan64 View Post
you need to have practice. 20 years ago vi was capable to do what you need (and emacs too). And it is now improved a lot.
Maybe I should start to learn coding with VI or EMACS?
 
Old 09-26-2012, 08:34 PM   #9
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
@kcynice: I hope you don't mind but knowing VI is essential to every Linux user, but sooner or later you'll find that you have to go faster and cleaner (less risk with un-uniform code style and extra trailing spaces / tabs being replaced with spaces, etc.) with doing your stuff - especially when it comes to handling multiple files at once. *And I mean multiple, that our memory (human) can't handle it and it's already annoying to switch from window to window many times to reach the window we wanted - using a keyboard.

Anyway if you're still not familiar with VI learning it now won't be a bad idea. It's not a waste of investment.

Last edited by konsolebox; 09-26-2012 at 08:42 PM.
 
Old 09-27-2012, 12:51 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,905

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
Quote:
Originally Posted by kcynice View Post
Maybe I should start to learn coding with VI or EMACS?
From my point of view: vi exists on every linux/unix system - also on windows available - therefore knowing vi is enough. Vi was almost the first IDE-like enviroment, together with ctags and other tools - and it was really powerful. It was planned to work without mouse. Of course Eclipse or Netbeans offer much more, but also requires much more (X, java ...). Emacs is more or less similar to vi, but works differently. So yes, I would recommend you vi, if you do not like it you can also try emacs.

to konsolebox: scite exists on linux too (that is the engine behind notepad++).
 
Old 09-27-2012, 12:57 AM   #11
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by pan64 View Post
to konsolebox: scite exists on linux too (that is the engine behind notepad++).
Notepad++ is based from Scintilla not Scite. And Scite is far compared to Notepad++.
 
Old 10-01-2012, 02:58 AM   #12
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
Quote:
Originally Posted by kcynice View Post
Although I start use linux about two years, I almost has not written a useable program under linux. I have to code using Visual Studio under windows if needed, that's not what i want. I want to be a pure linuxer.
Im not sure if I need a IDE for linux? I only want to write code as fast as possiable, and extensiable. Words auto-completing is not important, but I want a convenient reference search, like functions definition, etc.
I know basic edit vi and emacs, but how to make it as a coding tool?
Im puzzled.
EMACS / VI FLAMEWAR BEGINS!!!

Just kidding... However, personally I have found that Emacs works great as an IDE. Emacs has a "mode" for most languages, where if you open a source code file in that language it will control display, indentation, and so forth in ways that make programming more convenient. Each mode typically comes with several very useful related commands... for example, shortcuts to compile everything, or load the file into the interpreter. Make sure, though, that you are using XEmacs instead of just the console version, because it is more convenient to use in several respects, and allows code display improvements in some modes.

Haskell mode in Emacs is awesome. Here is a screen shot of some of my Haskell coding, after I picked a color theme I like:

https://frigidcode.com/ftprepo/edge/...l-in-emacs.png

Another great thing is that Emacs itself can be programmed with Emacs lisp, so down the line if there is some new IDE functionality you want, you can write your own macro or function to do it.
 
Old 10-01-2012, 09:50 AM   #13
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,784

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
Quote:
Originally Posted by hydraMax View Post
Make sure, though, that you are using XEmacs instead of just the console version, because it is more convenient to use in several respects, and allows code display improvements in some modes.
XEmacs is a fork of GNU Emacs, both versions can run in console or graphical modes (simultaneously). I was going to tell you not to recommend XEmacs because it hasn't seen any releases for years, but I just checked the website and it looks like there there has been at least some activity recently.
 
Old 10-01-2012, 03:52 PM   #14
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
Quote:
Originally Posted by ntubski View Post
XEmacs is a fork of GNU Emacs, both versions can run in console or graphical modes (simultaneously). I was going to tell you not to recommend XEmacs because it hasn't seen any releases for years, but I just checked the website and it looks like there there has been at least some activity recently.
Sorry for the confusion. What I actually meant was regular Emacs with X11 support compiled in. I'm running GNU Emacs 24.1.1 from gnu.org.
 
Old 10-01-2012, 11:31 PM   #15
User\ Name=`echo $USER`
LQ Newbie
 
Registered: Oct 2012
Location: Oklahoma
Distribution: Red Hat, Ubuntu, Mac OS X
Posts: 25

Rep: Reputation: 4
Vim and it's graphical version (gvim) have always worked for me. Yes, it can be very strenuous to learn at first, but if you learn how to do one or two new things a day, you will catch on fast. Not to mention it comes with vimtutor, which will easily get you started. If you want help writing/learning code, there's snip-mate (textmate style snippets for vim). Definitely worth it in the long run.
 
  


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
Linux coding Samson Jeyraj Linux - Newbie 3 01-31-2012 12:51 AM
linux coding Question Tordne Linux - Software 5 03-10-2008 11:12 AM
Need linux coding help iqbal Programming 1 07-21-2004 02:28 PM
Linux coding standard Sean Cleary Programming 5 08-22-2003 01:39 PM

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

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