Re:My Favorite Programming Problem to Teach: Digit Length
by kevin_thibedeau on Monday November 11, 2019 @12:07AM
(#21502301)
> I love math, but this is a programming class.
Sometimes you actually have to do arithmetic when programming. It's useful to teach people these sort of things so they don't cook up half baked solutions in the future.
Re:My Favorite Programming Problem to Teach: Digit Length
by jstrieb on Monday November 11, 2019 @10:10AM
(#21505403)
It's a programming class where "algorithmic thinking" (and therefore, in my opinion, some amount of math) is one of the course objectives.
Since the discussion takes place in a low-pressure, guided group lesson, students will certainly not be penalized for suggesting the string method in that setting. Also, students trying to use strings on homework will fail tests in the linter and autograder before they finally submit, so they will have plenty of opportunity to fix their mistake before receiving a grade on their work.
Re:My Favorite Programming Problem to Teach: Digit Length
by moron4hire on Monday November 11, 2019 @08:48AM
(#21504777)
Drastically depends on the kind of problems you're working on.
This also fails my personal rule to always need to have a reason to do something mean - like failing someone on a problem, and no reason to do something nice - like saying it’s fine since it works.