3 ms·
> I need to know why I should care about something to learn it properly - I need concrete motivation. Otherwise.the lesson is just a bunch of facts, as dry as m
by Jtsummers 6y ago
> I need to know why I should care about something to learn it properly - I need concrete motivation. Otherwise.the lesson is just a bunch of facts, as dry as memorizing a phone book.
What schools teach CS101 this way? At mine, the first course was taught with pseudocode so I can't say that was different than your description (but they dropped it after my year and went to Scheme and then Python, not sure what they use now). But the 2nd and 3rd courses had assignments where they threw absurdly large inputs at the program to demonstrate deficiencies in algorithms and data structures at different scales. In the 3rd course, this included not just "theoretical" issues around big-O, but also practical issues with how memory and CPU cache work (access patterns of multi-dimensional arrays in nested loops, in particular), where you were still doing a O(n^2) algorithm but just changing which loop referenced which index led to a noticeable improvement in performance.