I'm writing a new Linux program!


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? I'm writing a new Linux program!
# 8  
Old 09-06-2004
I agree it's good to write your own stuff. I've done a few install scripts with my old work. I only created them to make my work easy Smilie and well now they are used all teh time to install new software on their clients UNIX machines Smilie I got little credit though Smilie

Still though I'm not in it for teh credit and stuff. It was a good learning experience for me. I learnt a fair bit from it.

Now I want to create a little project that will scan a IP (or range) and tell you what ports are open, what O/S it's running and maybe even the packages installed on the O/S. Yeah sure there are things out there that can do what I want though I want to create MINE Smilie

Also it's good to learn from. Yeah reading is good though you really need to play with something to know it. Best way to learn is to do it.

Best of luck with it Smilie
# 9  
Old 09-06-2004
I agree with all points made here....

Although......
Quote:
Originally posted by Driver
Originally posted by zazzybob, not long ago:
To further my fledgling knowledge of C, I am re-writing some of the Unix command set. My current command is an ls-style command.
It was never my intention to release this program, and it was the header to a post requesting help with a little bit of C lore (which Driver fixed up for me! Smilie ). This was purely an exercise to learn more about the C language. I agree that there is one ls program too many (and that's called "d" - it's a GNU command) already and I wouldn't inflict suffering on the *nix world by releasing another! Smilie

I think the main thing is the point about waiting until some viable code is available before making an announcement.

Anyways, I will say good luck and I sincerely hope that 1) it helps your knowledge of programming improve, and 2) you release a successful project.

Cheers
ZB
# 10  
Old 09-06-2004
Quote:
Originally posted by Driver
You should wait until you actually have some source code before you start announcing anything. Perhaps this may turn out to be a vaporware product that will never become usable - There are enough such examples on sourceforge already. If you were really interested in criticism and good ideas, I suppose you'd have talked more about your own innovative ideas. If you only do this project to learn more about programming, it definitely does not belong on sourceforge!

> There are 1000's of text editors already available. (Just ask Google), so why reinvent the wheel and create yet another?

I'm all for reinventing stuff. I have both the ``Not Invented Here'' and ``Let's Reinvent the Wheel'' syndromes, but I can still think of a few objective reasons as to why it may be beneficial to roll your own applications in general, and text editors in particular:

- You can implement exactly what you want in exactly the way you want it

- You can leave out tons of bloat included by other text editors that you never need and use

- Since you are the author, you will find it very easy to add new features and bugfixes. This may be a lot harder with a huge and unknown source base of, say, emacs

- It will help you become more familiar with text editing in general. The console version may provide new insights about terminal capabilities and the terminal databases to begin with ...

Oh, and



Don't you think there are even more ``ls''-style programs than Unix text editors? Smilie
I have started writing the source code, so there is source.

Just because there are many text editors doesn't mean that I should "re-invent the wheel."

-------------------------------------

I have a question to ask a few people.

Should the program run on an X11 server (like Ted, the Linux RTF editor), or should it be a program that can run on KDE (like Konqueror)?
# 11  
Old 09-06-2004
Quote:


> I have started writing the source code, so there is source.

But is this source already usable? Can I edit a nontrivial text file without expecting loss of data?
It's possible, but there are a few things though:
[list=1][*]You will have to specify an extension, and even if you want to save the document in RTF, it will still be encoded in a TXT format.[*]Such tools like the horizontal and vertical rulers, directory browser, XML and RSS error views, document trees, etc., haven't been added yet.[*]Right now, it is just a simple lightweight program. KewlWrite is supposed to be like an office suite.[/list=1]
Data can still be saved, however.

I will not release any of the source code until I have enough features added.
# 12  
Old 10-03-2004
At various times in the past, I have written, and used on a
daily basis, my own text editor, shell, and mail system. None
of them were released to the public, but writing them taught
me an immense amount about Unix & C, and programming in
general. (The text editor is long gone, I wrote two shells,
(the second one was very good) then switched to bash with
my own modifications, then finally to just stock bash, and
I still use my own mail system.)
Go for it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Need help writing a shell script program

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write the a shell script program to remove all space characters stored in the shell variable TEXT.... (7 Replies)
Discussion started by: kofine05
7 Replies

2. Homework & Coursework Questions

Help with writing a tee program in 4 hours

1. The problem statement, all variables and given/known data: Basic Assignment Write a program similar to the Unix "tee" command. Program The Unix "tee" command is used to pull out copies of a data stream. It is typically used in conjunction with pipes (analogous to a T-joint in plumbing, hence... (1 Reply)
Discussion started by: izzy077
1 Replies

3. Programming

Writing C++ program Arguments and Classes

I want to write a C++ program that uses a class to do some calculations. I pass arguments to the program, some of which are used to set up class members. A class function will then perform the necessary calculations. I am wondering how I should pass the arguments from the program to set the... (2 Replies)
Discussion started by: kristinu
2 Replies

4. Programming

writing a shell program in ubuntu

Hi all, I have an assignment from school to write a shell program in linux. the idea is to exercise fork() and execv() functions.. the shell program is supposed to be the master and every command that the user prints will run in a new process. we also need to try running the command in every... (1 Reply)
Discussion started by: r3vive
1 Replies

5. UNIX Desktop Questions & Answers

need help writing a program to look for doubles

to determine if two two doubles are equal, we check to see if their absolute difference is very close to zero. . .if two numbers are less than .00001 apart, theyre equal. keep a count field in each record (as you did in p5). once the list is complete, ask the user to see if an element is on... (2 Replies)
Discussion started by: rickym2626
2 Replies

6. UNIX for Dummies Questions & Answers

Problem with writing a program

Hi guys I'm having trouble with trying to create a script which calculates the grade of a student and the marks out of 300. The grades are: 0-49% fail 50-59% pass 60-69% credit pass 70-79% distinction 80-100% high distinction less than 0 or greater than 100 displays error message. My... (1 Reply)
Discussion started by: CompNoob
1 Replies

7. Shell Programming and Scripting

writing math testing program

Can anyone create a program that would test the math skills of the user. Assume that it would test integer addition, The program should ask the question,collect the integer response, evaluate and notify the user if their answer was correct or incorrect. I would assume integers in the range... (5 Replies)
Discussion started by: ccp
5 Replies

8. Shell Programming and Scripting

Having trouble writing a basic shell program

Hello. I'm trying to write a shell script that will take files that have .tar, .tar.gz, .tar.Z, .gz, .Z and .zip file extensions and uncompress and unarchive them. The script should be able to take multiple arguments. So far I can write a script using the case command that will do this but it will... (3 Replies)
Discussion started by: SeanWuzHere
3 Replies

9. Shell Programming and Scripting

Need help on a program I'm writing

Hey guys.. I'm trying to learn how to script in bash... THIS IS NOT AN ASSIGNMENT but my instructor says to learn you must practice I'm trying to add to a program I'm writing that will print and save raw data... What syntax commands would I use to write them? And Thank you... (2 Replies)
Discussion started by: dmosheye
2 Replies

10. UNIX for Dummies Questions & Answers

writing a program

i have written a very simple program in the vi editor, how do i now make it an executable file? (3 Replies)
Discussion started by: carlvernon
3 Replies
Login or Register to Ask a Question