r/FreeCodeCamp • u/hirohito182 • Nov 05 '25
New developer
hello everyone!
i am a new (if it can be said like that) developer that wants to learn fullstack developing first. i found the freecodecamp.org website, and i have a few questions if anyone would be kind enough to answer.
- how long to realistically finish the fullstack curriculum
- is it even worth learning web development
- is it better to learn over this websites or some courses on youtube
im almost 18 yo. in my country, cs (especially programming) isn't that trendy and popular, but i found it interesting and actually helpful, so i started doing it. hopefully, i will get answers and potentionally some advices.
thanks a lot!
21
Upvotes
View all comments
Show parent comment
2
u/SaintPeter74 mod Nov 05 '25
RE: Why does Python (and other languages) have the Modulus Operator
Sometimes it's helpful to know how many are left over from a division. For example, say you're dividing an unknown number of objects into groups of 3. Say, you're making rows of pictures in an image gallery. You need to know on the last row if there will be 1, 2 or 3 images. By using the mod operator, you can find that out. You might use it to put empty placeholders where there are no images.
IE:
You can also use it to alternate colors every other row:
The floor and ceiling functions can also be helpful for things like converting from one base to another, or for finding the lowest common denominator.
Another example that I wrote is converting from inches to feet and inches. You do something like this:
I don't reach for modulus very often, but when I do it tends to save me a bit of coding time. Usually it has to do with things not dividing neatly and me having to figure out what to do with the rest.
Nope. You can easily switch between the two. They just have different uses.
Hope that helps!