3 ms·
> I'd be curious about scenarios like: > > - Practice identifying the semantic bug in a 20 line snippet of code. How effectively would practicing this help a pe
by ht_th 10y ago
> I'd be curious about scenarios like:
>
> - Practice identifying the semantic bug in a 20 line snippet of code. How effectively would practicing this help a person identify real bugs in actual code?
For a couple of years I've been a high school computer science teacher. Having 50 students making the same errors over and over, made me very good at spotting syntactical errors in other people's code. Furthermore, I was also able to easily identify "beginners' bad patterns", which are basically the inverse of the usual best practices. The downside of this was that some students tried to use me as a human compiler/linter because I was seemingly able to spot the problematic areas in their code in almost no time at all. Of course, at such moments I had been monitoring their progress for some time. Nevertheless, it helped me enormously to support my students in learning to debug their own code because I could have them reflect on their own practices and design choices.
Just an anecdote.
- Namrog84 10y ago+1 on what you said. I was a TA in college for intermediate c++ object oriented course for 16 classes approximately over 2 years. (about 500 students). So many basic and core programming practices almost always stick out like a sore thumb to me. I usually graded in a text editor without any IDE support, and towards the end there, got to the point of just glancing through there program I could easily mentally simulate the compile errors and if fixed, the runtime issues/behavior as well. It definitely help make me a much better programmer and developer. Now working in the industry, I still see a lot of things I can't help but wonder "WHY?!" though technically they are often not wrong, but just unnecessarily complex or convoluted.