Ask HN: Old CS lecturer looking for advice from current and recent students
392 pointsI am 61, with an academic background in computer science, and many years in industry, mostly startups. I taught many years ago, and have resumed teaching, a database course: data modeling, relational algebra, SQL, application programming and architecture (e.g. 2-tier vs. 3-tier, web & mobile), database internals.
Student evaluations were pretty good for the most part, but quite a few students found the presentation a bit dry: I prepared every lecture as HTML ahead of time, made it available online, and presented it in class. A couple of times, I would do interactive things, e.g. tuning queries using EXPLAIN and playing with indexes. That proved pretty popular, but of course, it's difficult to capture this material, (I recorded a log of the session, but extemperaneous discussion was not captured).
Looking for advice on how to balance prepared material and more spontaneous things. Also, any other advice on how to make material of this sort (theory + practice) easier to absorb.
Comments (181) 74 threads
Earlier comments1. the terms 'lecturer', 'lecturing' and 'presenting' all lead down the wrong path: 'lectures' which is one person standing at a board talking. I prefer to call it 'classroom time' which gives me complete discretion on the format.
People learn better through interactive experiences. Lectures are not interactive. Showing code is a demo/'applied' but it is not interactive. Interactive means the students are highly involved and are co-driving the class.
To give an example - here is how I taught agile: - I went to a party store: bought one gold crown, one gold birthday hat, 5 blue hats and two different colors of stickies - I opened out the lecture with "there are many agile development processes. I think the best use of time is to rather than talk about it is to do it. So, if you choose, we can either role play it which requires your involvement or I can kill you with slides. What do you want to do?" (their choice was obvious) - I picked a few volunteers - the 'user' got the gold crown, the product manager got the gold hat and the 5 engineers got the blue hat. The stickies were for features or tasks. - We then role played two sprints for an airbnb clone from scratch which was possible in 75 mins. (yes I covered scrum != agile) - It was a lot of fun and the issues that came out in the role play were perfect and gave me the opportunity to stop the role play and talk about the theory, issues and how to resolve. (engineers misunderstanding product manager, developing common language, engineers asking to extend sprint, etc, user being demanding on timelines, value vs # features, etc) - the class left super excited and after that day I tried to incorporate a lot more fun and interactive games
(In a 25 lecture course over half had interactive games. It took me a few years of learning / experimentation to understand this and to throw away the pressure to 'lecture'. My feedback is positive and despite >50% of lectures being highly interactive students want more interactive lectures. Exam scores / grasp of material strongly correlated with interactive sessions)
2. 'Lecturing' means you need to know your field but also read up on education as a field in itself. How do people learn? How do you structure a lecture? How many points can people handle per hour? How do you control a class / classroom management? (this last one is a lot of fun and easier with a few techniques but that is for another day)
A lecture may then look like a variant of: - capture attention with clickbait - why this issue really matters and how it is hard, how it really applies in industry etc - open out on the theory - apply it to a problem / example - interactive class exercise - post mortem of the class exercise (what did we learn) - take a 5 minutes break with a joke / discuss the time I failed / saw this fail (this is the value of an industry adjunct ...) - some more theory - wrap up / re-summarize (sometimes the class exercise was #2 to make the point then we did the theory)
Set expectations in the first lecture. My class is over-subscribed so I set expectations and if they don't want to meet them then let someone on the waitlist take the class.
Care about your students. Learn their names.
Make content relevant to them. "If you want to do X you need to know this etc", "This is the thing first year software engineers sometimes struggle with", "this is a super common interview questions"
Be open with your class about your failures.
Ask your class if you have convinced them yet! Make it a challenge. If one of them says 'no' then gladly accept the challenge! (if one person says no then >30% of the class probably feel the same)
Some students were nervous about contributing for fear they may be 'wrong'. Always thank them for their input, acknowledge any merit their answer has / it would be correct if X. However, Y causes Z to be more important.
3. Oh my word does it take time. The first year I found it took me ~8 hours to produce each lecture from structuring course, research, crafting learning outcomes, devising lecture, creating materials, practice, tweak, deliver, etc.
4. Lecturing is like coding. You should look back on the lectures you delivered a year ago and cringe. That means you are developing. I still cringe hard =)
It has been fascinating, learning what does and doesn't work in teaching. I'm still a fumbling amateur, but I'm getting rave review scores so far and I know what I'm trying to emulate.
Given your experience you likely know everything I've gotten so far, but on the off chance there is something helpful here:
My best reactions come from the fact that I have a class Slack workspace and am pretty reachable there. I've found Blackboard to be monstrous and Outlook is terrible when it comes to sharing code. I have a github repo for each student that I send class notes, examples, and assignments to (also how they submit their assignments). Because I use tools they will likely use on the job, I can talk about those tools from a future professional stance (such as how code reviews are NOT judgements, but opportunities, or posting code snippets, or pull requests and merging). My availability to answer simple questions at random hours is highly praised, even if 50% of the questions just require me to restate something that was explicitly raised in class.
Next big praise from students comes from discussing coding on the job. Things like "most classes teach you to write a new program to solve an issue, but the vast majority of your work will be changing existing code" and then giving them practice at that, showing them how solutions that work in the short term can cost you when you need to make changes.
I make a point of trying to build from fundamentals, so for example while my class is both JS and React specific for the tools, I first have them write Html to interact with a backend of any language, then write dynamic front end with vanilla JS, the write with React while stressing that the lessons they should learn should be conceptual and not React specific because React will get replaced like every library before it. I have to walk a fine line between giving them enough to be suggestive while not reducing them to just copying verbatim. Cant say I've nailed that down, but I feel my students end up better prepared to learn something else than just churning out an app using a framework without having a clue WHY it works or how to use any other tools. (On the whole, this experience has not left me impressed with the normal curriculum/habits of schools even as I have gained sympathy for the difficulty)
Where I'm weak is having prepared material...I end up doing most classes on the fly, with only a vague list of what to cover each day. I reuse some material from semester to semester, but I'm experimenting so much that often it is just that the material is more familiar to me, not that I'm actually reusing slides or written code or even assignments.
I'm also weak on TAs and office hours. I'm available before class for an hour each week and have tas for the larger semesters, but these are the wants that students complain are the least fulfilled.
I have a separate slack channels for good topical articles that aren't required for class, as well as for job hunting/interview tips. These get positive comments but not rave reviews, yet former students that weigh in (I have a separate slack workspace for former students) often benefitted from these.
Being web dev this involves minimal algorithm work, or even much in terms of performance concerns, and though I make a point to cover SQL injection, salting, hashing, and the basics of public key encryption these are easier to tie to practical demonstrations than what you list. (Easy to google for companies with hugely embarrassing exposes due to poor web security than to poorly written outer joins, because the latter is more private)
Hopefully something there is helpful, and if not I'm very open to hear where I can improve myself.
First, "not dry" doesn't necessarily mean "not prepared" or "spontaneous". Consider things like the SR-71 story [1] or the unprotected VNC endpoints presentation [2].
Second, keep in mind what you can give students that they can't get from a textbook or another lecture that they find on youtube. The best professors I had weren't the ones that could quote the textbook; the best professors I had were the ones that could provide context for the textbook, or tell stories that illustrated important edge cases or institutional knowledge that isn't written in any textbook. There's a huge amount of wisdom that could never be "professional" enough to make it into a textbook but is nevertheless fantastic for helping a student understand or remember the material. For example, consider the "Things I Won't Work With" series; would never get past a textbook review committee, but absolutely riveting on top of the information transfer.
Third, and finally, how these relate to helping students absorb knowledge. Consider spaced repetition and the method of loci [4] and what they mean about how the human brain forms knowledge: People remember networks of knowledge, not single facts. That's why I cite war stories above - giving students a story to wrap around an idea lets them link to it from multiple angles, each one reinforcing the memory or giving the brain a second or third chance to successfully record it. Interactive discussions are the same way; remembering a monologue is much harder than remembering the same information packaged as a socratic dialog with a few good jokes thrown in. That's why everyone else is recommending question-and-answer sessions and cold-calling; human memory is better at handling conversations than it is at speeches.
[1] https://oppositelock.kinja.com/favorite-sr-71-story-10791270..., https://www.youtube.com/watch?v=Lg73GKm7GgI [2] https://www.youtube.com/watch?v=hMtu7vV_HmY [3] http://blogs.sciencemag.org/pipeline/archives/2010/02/23/thi... [4] https://en.wikipedia.org/wiki/Method_of_loci
Whatever the difficulty in recording though, I really would encourage you to keep that format, as it's much more engaging and also educational than a lecture. When someone in class poses a question and others answer, that causes a natural segue into a thinking and questioning process in every student that otherwise requires a laser-focus and also reasoning while also listening to material.
I'll second philip1209's comment elsewhere in this thread though, during my undergrad and my master's, my favourite classes were always very discussion heavy. Some of them required reading up ahead and a menial task to make sure you actually did it e.g. read a paper or a chapter, then summarize it in half a page to a page and submit online. Then the rest of the class is mostly q and a where the professor steers the agenda. In graduate level ones sometimes the students had to present each class and then everyone discusses during.
One thing that discourages teachers often is that it's difficult to get students to say anything. Believe me that this changes quickly if it's nurtured. One prof had a goofy question mark face symbol and explicitly said he expected a discussion whenever you saw that logo when he was teaching. The first few times he had to sit and awkwardly wait for a whole minute or two before someone said a word - like a game of awkwardness chicken, where someone eventually can't take it anymore and blurts out something, which is exactly what you want, so you can build the discussion on that. Once someone says something the ball gets rolling. He also did a thing where he'd gradually simplify the question every time no one answered ("ok well how would this work if you didn't have to worry about ..."), to the point where often the question would be something self-evident that was hard to not answer. Another tactic was to never shame a "silly" answer but to pull out a good bit about it and use it to direct the next question.
One thing that probably helped was that these were often graduate or junior/senior level classes, so people had mostly chosen to be there. Another thing was that the premise of the class was that it was mostly discussion based with some presenting in the middle, which works a lot better than mostly presenting with a tiny bit of discussion, because of the overhead of effort of getting the ball rolling in a discussion environment. Finally, there was a no laptops or phones rule made very clear during class selection period, which really did do wonders. The justification was "we tried it a million times and it just doesn't work" - apparently it's really hard to maintain attention for an hour and a half when distraction is a glance away, and you don't want to miss anything or it's easy to get left behind.
- what is our problem (queries are slow) - why do we have this problem (scanning the whole table takes a lot of I/O which is expensive) - how can we solve this problem (indexes help know where content is so you can do less I/O) - demo of it - when does this not work (when your indexes aren't selective, sometimes they can be slower than just a scan, or when it's hurting insertion speed)
etc etc.
Even if you mentioned what we were trying to do once in the beginning of the class (or worse, beginning of the semester), it helps a lot to go back and keep referring to it every time you introduce some new thing just so we know how this new little tidbit helps with the original issue.
All comments shown.
Couldn't load more comments. Check your connection and try again.