| |  | |
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     |
| |
09-24-2008
|
#22 (permalink)
| | Linux User
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.
|
| |
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. |
| |
09-24-2008
|
#24 (permalink)
| | Linux User
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.
|
| |
09-24-2008
|
#25 (permalink)
| | Linux Enthusiast
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. |
| |
09-24-2008
|
#26 (permalink)
| | Linux User
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.
|
| |
09-24-2008
|
#27 (permalink)
| | Trusted Penguin
Join Date: Aug 2005 Location: Nottingham, England
Posts: 2,567
| Quote:
Originally Posted by darkrose0510 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. |
| |
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. |
| |
09-24-2008
|
#29 (permalink)
| | Linux User
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.
|
| |
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. |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | Job Search | | | All times are GMT. The time now is 12:52 PM. |
| |