Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
programming apps [newbie]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
while true
Guru
Guru


Joined: 07 Apr 2010
Posts: 532
Location: Ljubljana, Slovenia

PostPosted: Tue Apr 10, 2012 2:17 pm    Post subject: programming apps [newbie] Reply with quote

oi

ok, being on gentoo for two years
I am also a programmer! right?

I use gedit, and I also use vim (I want to be able to know how to do things solely in tty).

Now I came across program that I can run with ./program
I would like to make some changes to program,
but I can not open it in gedit or vim (at least not in readable form). .

Is there an IDE that opens all kinds of source code files (gui AND cli)?
Or, is it one tool for one job, in which case, which 'editor' is for which source code?
And how do I know in what kind of source it is?


Thank you
_________________
Kind regards, Goran Mitic

alive
while true
kick ass
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Apr 10, 2012 2:26 pm    Post subject: Re: programming apps [newbie] Reply with quote

while true wrote:
ok, being on gentoo for two years
I am also a programmer! right?
Alas, no. :wink:

Almost any text editor will allow you to edit almost any language's source code. If the file you indicated that you can run with ./program doesn't look the least bit intelligible, that's because it's compiled into machine language or byte code of some sort. These are not directly editable or easily modifiable. Source code is. (Note that some languages are executed more directly from the source (e.g., bash, Perl) but many, many are not.)

Right now, you lack a basic vocabulary. You need to acquire that before you'll even know how to ask the right questions. Google "Introduction to Programming" and choose a tutorial that looks fun.

Alternatively, you can give me some idea of what your programming goals are and then I can make some more specific suggestions on what you need to study. :)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
while true
Guru
Guru


Joined: 07 Apr 2010
Posts: 532
Location: Ljubljana, Slovenia

PostPosted: Tue Apr 10, 2012 3:11 pm    Post subject: Reply with quote

oi John,

khaha, thanks, but the guy can dream, khaha

ok, so you did straighten something out for me:
when I write a bash script (and in gentoo os files) that is source code that can be executed.
but mostly(?) there is need to compile source code before app is given to people.
What I thought is, if I can run it with ./program I could edit it, khaha
I should ask author for source code, right? (but not just jet, khehe)


john, could I be so bold to kindly ask you,
what editors you use and recommend?

what language is good to use, and what are theirs ide?

Thank you

EDIT:

I just want to be able to open any source code (c, java, dog, cat)
so something in that direction - desktop applications...
_________________
Kind regards, Goran Mitic

alive
while true
kick ass
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Apr 10, 2012 3:50 pm    Post subject: Reply with quote

I use emacs, but I would hesitate to recommend it. :roll: If you're look at IDEs, then they will come with an editor.

The question of what language is "good" is difficult to answer outside of some context:
  • For light text processing, I use awk or sed.
  • If the text processing is more complicated or uses other than simple regular expressions, then my weapon of choice is Perl.
  • If the work is more than just the least bit algorithmic, I tend to use C++.
  • Many desktop applications are written in C++ or straight C.
  • My son is teaching me Java (it's what he's learning in college), but I don't currently use it for anything.
  • For small jobs or prototyping, it's often very convenient to tie one or more of these together (or merely hide the invocation syntax) with bash.
There are so many answers to this question that it's difficult to know where to start or stop.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum