Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > The Community > The Coffee Lounge
Reload this Page Web Linux - Linux live on the web!
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Coffee Lounge General chat about anything that goes, a good place to introduce yourself and say hi, tell a Joke, or just relax.

Site Navigation
Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-24-2008   #21 (permalink)
Just Joined!
 
Join Date: Sep 2008
Location: Oosterhout, Netherlands
Posts: 67
thnx man. I'm looking at the source right now and I still need to figure some things out. Like

Where is your equivalent of:

Int Main (){
//Code block
}

And maybe if you'd put a bit more comments in, I would understand it too. As I said, I'm only a beginner.

And have some more bananas
Bemk is offline   Reply With Quote
Old 09-24-2008   #22 (permalink)
Linux User
 
darkrose0510's Avatar
 
Join Date: Jan 2006
Location: Queensland, the cyclone/flood/drought capital of Australia
Posts: 256
function main(argc,argv) {
//code block
}

have a look at fsck, I think it's the best example of things at present. If you look in kernel-0.4.js at the namespace class you should get some idea of how processes are run/libraries loaded too.
__________________
Desktop - Gentoo
Toy Box - Syllable
Laptops - Damn Small 4
Servers - Debian Etch
Registered Linux user #407228 -- A computer without a Microsoft operating system is like a dog without bricks tied to its head.
darkrose0510 is offline   Reply With Quote
Old 09-24-2008   #23 (permalink)
Just Joined!
 
Join Date: Sep 2008
Location: Oosterhout, Netherlands
Posts: 67
Thnx, I'll take a look.
Hope I'll understand, will ask questions if not.
Bemk is offline   Reply With Quote
Old 09-24-2008   #24 (permalink)
Linux User
 
darkrose0510's Avatar
 
Join Date: Jan 2006
Location: Queensland, the cyclone/flood/drought capital of Australia
Posts: 256
heh, it confuses me at times
__________________
Desktop - Gentoo
Toy Box - Syllable
Laptops - Damn Small 4
Servers - Debian Etch
Registered Linux user #407228 -- A computer without a Microsoft operating system is like a dog without bricks tied to its head.
darkrose0510 is offline   Reply With Quote
Old 09-24-2008   #25 (permalink)
Linux Enthusiast
 
elija's Avatar
 
Join Date: Jul 2004
Location: Linux wants your brainz
Posts: 602
Comments would be useful to any programmer and as it confuses you I have to include you in that list.

The best bit of coding advice I have ever been given is "Write your code as if the person who is going to maintain it is a psycho... who knows where you live"

As valid today as it was then


By the way, I think you are completely mad and I love it!
__________________
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
(How much wood would a woodchuck chuck if a woodchuck could chuck wood)

Registered Linux User: #459086

PM is not a good way to get help. Please ask in the forums.
elija is offline   Reply With Quote
Old 09-24-2008   #26 (permalink)
Linux User
 
darkrose0510's Avatar
 
Join Date: Jan 2006
Location: Queensland, the cyclone/flood/drought capital of Australia
Posts: 256
Yeah I know my commenting is terrible, the result of doing it all myself and not figuring others would be that interested... that's my excuse and I'm sticking to it!

You may think I'm mad, but I'm certain of it
__________________
Desktop - Gentoo
Toy Box - Syllable
Laptops - Damn Small 4
Servers - Debian Etch
Registered Linux user #407228 -- A computer without a Microsoft operating system is like a dog without bricks tied to its head.
darkrose0510 is offline   Reply With Quote
Old 09-24-2008   #27 (permalink)
Trusted Penguin
 
Roxoff's Avatar
 
Join Date: Aug 2005
Location: Nottingham, England
Posts: 2,567
Quote:
Originally Posted by darkrose0510 View Post
Yeah I know my commenting is terrible, the result of doing it all myself and not figuring others would be that interested... that's my excuse and I'm sticking to it!

You may think I'm mad, but I'm certain of it
lol, that's really funny. So what will you do when the system becomes so big you cant keep it all in focus at once? You'll need some kind of documentation; my advice is to write the comments first, then stick the code in between 'em. It'll help you frame the whole process that you're writing too.
__________________
Linux user #126863 - see http://counter.li.org/
Roxoff is offline   Reply With Quote
Old 09-24-2008   #28 (permalink)
Just Joined!
 
Join Date: Sep 2008
Location: Oosterhout, Netherlands
Posts: 67
I'll download all of your files and place comments. I hope I can figure it out. And I hope that after I'm done, you won't have moved on too far, so I can go and replace all the code(and comments).

And our trusted penguin is completely right. I've done some other projects (I'm still a beginner though), with the help of some friends and I couldn't keep track of what they were doing, since they didn't comment.

And I would also like to know where you enter GRUB. I think by following the sequence I'll be able to figure out what's happening.

Maybe something for your todo.txt : Place comments in script

You have a whole list of all the boot functions in your blog. If you place this list in the source, you've got something I can understand too. Then I can help you developing it too.
Bemk is offline   Reply With Quote
Old 09-24-2008   #29 (permalink)
Linux User
 
darkrose0510's Avatar
 
Join Date: Jan 2006
Location: Queensland, the cyclone/flood/drought capital of Australia
Posts: 256
Actually I've started on some documentation with a really basic wiki
Front Page

Not much in there right now, just a little info on how processes are run... more to come though; info on libraries and the boot process will be added in due course.

I'm mostly working on the kernel at present, and playing with the shell some, but comments in the apps and libraries would be really useful... I'll make sure I'm commenting as I go from now on.
__________________
Desktop - Gentoo
Toy Box - Syllable
Laptops - Damn Small 4
Servers - Debian Etch
Registered Linux user #407228 -- A computer without a Microsoft operating system is like a dog without bricks tied to its head.
darkrose0510 is offline   Reply With Quote
Old 09-25-2008   #30 (permalink)
Just Joined!
 
Join Date: Sep 2008
Location: Oosterhout, Netherlands
Posts: 67
Ok, but what on what you've got??

I'd like to do that part, the only thing is, although I somewhat understand the lines, It doesn't make sense yet. It's just that I don't know what things should be doing. That's why comments are useful, simply to make your code understandable for you when you've been away from that part of the project for a while, and for others so they can figure out what's going on.

I still think what you're doing is really cool. I would like to be able to do that as well!!!

The wiki is cool by the way.
Bemk is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Job Search
keyword location
Post a Job »
job title, keywords or company
city, state or zip jobs by job search

Free Magazines
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say. So when it comes right down to it, how does the Google selection stack up against the rest of messaging security's big guns?
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 12:52 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0