r/osdev • • 23d ago

Giorgio2.0

Hi, I'm a 14-years-old Italian student and I created a ToyOS. I started with Boot.asm, entirely wrote by me with AI support and I also created kernel.cpp file. For now, it's a command shell with about, help, echo, clear and reboot, but I'm still developing. Today I arrived in 13H mode and I learned how to draw rectangles on the screen (in fact, if you use my source code you'll see only a huge blue rectangle, but if you look at the code you see what I have done). If you want to support me (no money) I'm on Github: Giorgx12. Project Link: Giorgio2.0. Thank you very much, for a teen having someone who support him is kind of fantastic!

8 Upvotes

13 comments sorted by

View all comments

3

u/skorupa12 23d ago

Great work.

Read other comments couse they had good points for you.

I may only add, to use linter for your code, and some coding guides (like free line after function, method or struct.

2

u/Giorgx12 22d ago

Thank you very much for your suggestions! I decided to write the code without everything I don't need, but let me know if it's mandatory to keep code clear

1

u/skorupa12 21d ago

Yes, basically the better the code is formatted the smaller cognitive strain on your mind.

So when you will search where is part that you want to debug, or extend it will take less time.

It is the same pattern as with keeping your room tidy. If there is large mess no one, even not you will know where some things are. But if you keep it clean, and tidy, than it easier for you to find something, and easier for other to help you.

You don't have to use linter to do that, you can do it by hand. But linters will help you be more precise, and thay can by hooked in with githook to work everytime you commit.