Hey hey! good job! raylib is something I want to move onto one day.
When you say "if your foundation sucks, it's really hard to write good code on top of it", I really echoed with that. Recently I realized how much I am missing out by not reading documentations, now I am going back reading all the things I learned in school.
Good luck!