c icon indicating copy to clipboard operation
c copied to clipboard

improve starting point of program

Open Aliwahid17 opened this issue 2 years ago • 4 comments

it will help beginner c programmers to know where to start writing code.

Aliwahid17 avatar Jul 02 '22 17:07 Aliwahid17

I'm slightly in favor of that change. armstrong-numbers seems to be the first exercise for many students, let's keep the entry barriers low.
But I don't like this two includes, the exercise can be solved with or without functions from <stdio.h> or <math.h>.
(Disclaimer: I'm a mentor, not a maintainer. I can only voice my opinion.)

siebenschlaefer avatar Jul 02 '22 18:07 siebenschlaefer

I'm slightly in favor of that change. armstrong-numbers seems to be the first exercise for many students, let's keep the entry barriers low. But I don't like this two includes, the exercise can be solved with or without functions from <stdio.h> or <math.h>. (Disclaimer: I'm a mentor, not a maintainer. I can only voice my opinion.)

I agree. I don't mind the addition of the skeleton function, but the includes aren't necessary and I think they should be removed.

ryanplusplus avatar Jul 02 '22 18:07 ryanplusplus

Is hello-world no longer the first exercise?

If this is not obvious, should there be some update to the docs?

Sorry last time I mentored was pre-v3!

wolf99 avatar Jul 02 '22 20:07 wolf99

Yes, hello-world is still the first one. But since it can be solved by replacing NULL with "Hello, world!", that doesn't force students to understand what functions are, where they are defined/declared, why there's no main(), etc.
I've talked to quite a few students (in mentoring sessions or on gitter) who struggled with the first "real" exercise: armstrong-numbers. BTW: This is what the C track currently looks like: c_track_exercises

siebenschlaefer avatar Jul 02 '22 21:07 siebenschlaefer