New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bonus chapter idea: split to multiple files #12

tomassedovic opened this Issue Sep 7, 2016 · 3 comments


None yet
3 participants

tomassedovic commented Sep 7, 2016

Show how to use modules and organise the dodebase into more than one file. That seems to be the most controversial aspect of the original tutorial. And it seems to me, modules trip beginners out.


This comment has been minimized.


keisetsu commented Sep 9, 2016

I think this is a great idea. Would like to see the original python code split up, too; it's so easy, there's no excuse for not making this modular. Rust is a little more difficult; it took me a while to figure out the use of mod, use, and extern (just noticed I have a relic of this my ui code...). It's not particularly difficult, but for me at least this didn't seem well documented.
I split things out into separate modules as soon as I finished the tutorial, here. A work in progress and I'm not sure the divisions are completely valid, but it got me started.
Not sure how much this helps, but I split most of the files in this commit.


This comment has been minimized.

anmej commented Sep 10, 2016

Completely agree, module chapter would be great.


This comment has been minimized.


tomassedovic commented Sep 12, 2016

Thanks, I think so too. Not sure when I'll be able to put the work in, though. So the issues are all up for taking :-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment