instruction stringlengths 78 7.23k | completion stringlengths 10 7.33k | conversations listlengths 2 2 |
|---|---|---|
I know where to find the percentage of CS bachelor's degrees going to women in the US (Figure 2-16) and the percentage of CS bachelor's degrees going to people of different ethnicities at research universities in the US and Canada participating in the Taulbee Survey (Table B-3). Where, if anywhere, can I find the perce... | To find the percentage of bachelor's degrees in Computer Science (CS) broken down by both ethnicity and gender, you can explore several resources:
1. **National Center for Education Statistics (NCES)**: The NCES provides detailed reports on degrees conferred by various fields of study, which can often be broken down b... | [
{
"from": "human",
"value": "I know where to find the percentage of CS bachelor's degrees going to women in the US (Figure 2-16) and the percentage of CS bachelor's degrees going to people of different ethnicities at research universities in the US and Canada participating in the Taulbee Survey (Table B-3).... |
I was talking to a student today, and explaining that NP problems are hard to solve, but easy to verify. I used password encryption/decryption as an example, but he got stuck. He was unable to fathom how, given the hash, you couldn't just reverse your steps backwards to the password.
I started explaining a bit about ... | Explaining NP problems in an intuitive way can indeed be tricky, especially if you're dealing with concepts like encryption or hashing that can confuse the issue. A more relatable analogy is to think of NP problems in terms of puzzles or games, where you can easily check a solution but finding that solution is hard. He... | [
{
"from": "human",
"value": "I was talking to a student today, and explaining that NP problems are hard to solve, but easy to verify. I used password encryption/decryption as an example, but he got stuck. He was unable to fathom how, given the hash, you couldn't just reverse your steps backwards to the pa... |
Can anyone recommend a good textbook for writing interpreters (not compilers) that don't use languages like Scheme or Haskell?
| Certainly! If you're looking for textbooks on writing interpreters without focusing on languages like Scheme or Haskell, consider the following options:
1. **"Programming Languages: Application and Interpretation" by Shriram Krishnamurthi** - While it does cover some concepts from Scheme, it is largely focused on the ... | [
{
"from": "human",
"value": "Can anyone recommend a good textbook for writing interpreters (not compilers) that don't use languages like Scheme or Haskell? \n"
},
{
"from": "gpt",
"value": "Certainly! If you're looking for textbooks on writing interpreters without focusing on languages like Sche... |
When I had grant money or worked in industry, I was a member of the Association for Computing Machine (ACM) and the Special Interest Group on Computer Science Education (SIGCSE), which holds several annual conferences and publishes ACM Inroads. Now that I'm no longer publishing in CS education, am focused on teaching, ... | Deciding whether to maintain membership in SIGCSE and ACM when your focus has shifted can depend on several factors:
1. **Access to Resources**: Membership often provides access to valuable resources, including journals, conference proceedings, and publications like ACM Inroads. If you find that these resources are us... | [
{
"from": "human",
"value": "When I had grant money or worked in industry, I was a member of the Association for Computing Machine (ACM) and the Special Interest Group on Computer Science Education (SIGCSE), which holds several annual conferences and publishes ACM Inroads. Now that I'm no longer publishing ... |
In some CS courses (especially undergraduate and high school courses) the tests and the final exam are written on paper without the use of a computer.
But if the students are in a CS course, shouldn't they be allowed to use the computer? If some mistakes are difficult enough to not be noticeable while writing code on a... | There are several arguments for and against conducting written tests on paper in computer science courses, and whether this approach is beneficial depends on the goals of the course and the skills being assessed. Here are some advantages and disadvantages of using paper-based exams in CS courses:
### Advantages of Pap... | [
{
"from": "human",
"value": "In some CS courses (especially undergraduate and high school courses) the tests and the final exam are written on paper without the use of a computer.\nBut if the students are in a CS course, shouldn't they be allowed to use the computer? If some mistakes are difficult enough to... |
I teach my freshmen Binary because I'm old school I guess. I do want them to know how data is stored and that means Binary to me. How do others feel? Is it a must learn early or a nice to have if there is room?
| Teaching binary to freshmen is a great approach, and there are mixed opinions about its necessity in early education. Here are some perspectives on the topic:
### Arguments for Teaching Binary Early:
1. **Fundamental Concept**: Understanding binary is foundational for grasping how computers work. It helps students und... | [
{
"from": "human",
"value": "I teach my freshmen Binary because I'm old school I guess. I do want them to know how data is stored and that means Binary to me. How do others feel? Is it a must learn early or a nice to have if there is room?\n"
},
{
"from": "gpt",
"value": "Teaching binary to fres... |
I'm working at the university in a computer lab and I'm looking for a Microsoft Windows software, that would enable me to cast a screen of my computer (master) to all other student's computers which are in the same local network.
I have already found several different solutions, but none of them enables me to force the... | Yes, there are several software solutions that can facilitate screen sharing or casting in a controlled environment, such as a university computer lab. Here are a few options to consider, though they may not all offer the exact level of control you are looking for regarding preventing students from closing the applicat... | [
{
"from": "human",
"value": "I'm working at the university in a computer lab and I'm looking for a Microsoft Windows software, that would enable me to cast a screen of my computer (master) to all other student's computers which are in the same local network.\nI have already found several different solutions... |
I found the following example in chapter two of Annotated Algorithms in Python (PDF)
>>> for i in [1, 2, 3]:
... print i
... continue
... print 'test'
1
2
3
This does demonstrate what continue does, but you would never write something like this in real code. You would just leave out continue and print "test" entirely.... | Using contrived examples in teaching can be both beneficial and potentially confusing, depending on how they are presented and the context in which they are used.
### Benefits of Contrived Examples:
1. **Focus on Concept**: They can effectively isolate a particular concept (like `continue` in your first example) and m... | [
{
"from": "human",
"value": "I found the following example in chapter two of Annotated Algorithms in Python (PDF)\n>>> for i in [1, 2, 3]:\n... print i\n... continue\n... print 'test'\n1\n2\n3\n\nThis does demonstrate what continue does, but you would never write something like this in real code. You would ... |
In university, I was a student in an operating systems programming course in C. Assignment help was offered in tutorials. Students would usually present the tutor(s) with run-time errors and an enormous amount of code. The tutors took 20 minutes to figure out the mess and offer help. In a 50 minute class of 30, most st... | The situation you've described highlights several challenges in teaching programming, particularly in a course that requires understanding complex systems like operating systems. Here are some strategies that teaching staff could implement to address these issues:
1. **Structured Debugging Sessions**: Instead of open-... | [
{
"from": "human",
"value": "In university, I was a student in an operating systems programming course in C. Assignment help was offered in tutorials. Students would usually present the tutor(s) with run-time errors and an enormous amount of code. The tutors took 20 minutes to figure out the mess and offer ... |
In this video, https://www.youtube.com/watch?v=t5NszbIerYc Dr. David Brailsford uses an elegant Lego model to explain pointers and linked lists.
Do you think that using physical models could make it easier for students to learn about fundamental concepts? Has anyone had any success with this?
| Yes, using physical models can significantly enhance students' understanding of fundamental concepts in computer science, such as pointers and linked lists. Physical representations can make abstract concepts more tangible, allowing students to visualize how data structures work in practice.
There have been several su... | [
{
"from": "human",
"value": "In this video, https://www.youtube.com/watch?v=t5NszbIerYc Dr. David Brailsford uses an elegant Lego model to explain pointers and linked lists. \nDo you think that using physical models could make it easier for students to learn about fundamental concepts? Has anyone had any su... |
When I was studying, my professors had different approaches when teaching programming to beginners:
Choose a language with which the professor is comfortable and fulfills the course requirements but might not be so popular in the real world. I had this experience with Mathematica programming. We would spend lots of ti... | The preferences of professionals and students when it comes to teaching and learning algorithms and basic programming can vary significantly based on several factors, including prior experience, educational goals, and career aspirations. Here’s a breakdown of the pros and cons of each approach, as well as what many pro... | [
{
"from": "human",
"value": "When I was studying, my professors had different approaches when teaching programming to beginners:\n\nChoose a language with which the professor is comfortable and fulfills the course requirements but might not be so popular in the real world. I had this experience with Mathema... |
What would be a good way to describe ports? I learned about it using this analogy, but it seems pretty inadequate to me:
IP addresses are like street addresses of apartment buildings, and ports are like the apartments therein.
IP addresses are not segmented as a street address is, and second, apartments don't seem at ... | Your analogy of IP addresses as street addresses and ports as apartments is a good starting point, but I understand your desire for a more nuanced comparison. Here’s a refined way to describe ports that might resonate better:
### Improved Analogy
**IP Addresses as City Districts, and Ports as Specific Businesses:**
... | [
{
"from": "human",
"value": "What would be a good way to describe ports? I learned about it using this analogy, but it seems pretty inadequate to me:\nIP addresses are like street addresses of apartment buildings, and ports are like the apartments therein.\nIP addresses are not segmented as a street addres... |
So, in C-style languages, the for loop has a funny little syntax:
for (int i = 0; i < 100; i++) {
// do something
}
If we order these sections in a natural, intuitive fashion, we would get something like:
for (1; 2; 3) {
4
}
... which is how students seem to feel like things should be ordered. But, of course... | Teaching students to understand for loops, especially in C-style languages, can indeed be challenging due to the seemingly inverted nature of the syntax. Here are some tricks and techniques that can help clarify the concept:
1. **Visual Diagrams**:
- Use flowcharts or diagrams that show the execution flow of a for ... | [
{
"from": "human",
"value": "So, in C-style languages, the for loop has a funny little syntax:\nfor (int i = 0; i < 100; i++) {\n // do something\n}\n\nIf we order these sections in a natural, intuitive fashion, we would get something like:\nfor (1; 2; 3) {\n 4\n}\n\n... which is how students seem to ... |
I am in the process of developing a new course focused entirely on Raspberry Pi. The goal is to make it a summer-school elective equivalent to one semester (i.e. one class meeting over the summer == one week of class during the school year). The course is in its beginning stages, but my goal is to essentially make a "t... | It's great to see your enthusiasm for creating a hands-on, project-based course using Raspberry Pi! The order of Units 2-4 can significantly influence the students' learning experience. Here's a breakdown of the considerations for sequencing these units:
### Proposed Order:
1. **Unit 2: Programming in Python**
2. **U... | [
{
"from": "human",
"value": "I am in the process of developing a new course focused entirely on Raspberry Pi. The goal is to make it a summer-school elective equivalent to one semester (i.e. one class meeting over the summer == one week of class during the school year). The course is in its beginning stages... |
One unit of CS50 AP's curriculum focuses on three main sorting algorithms: bubble sort, selection sort, and insertion sort. There is also discussion of something more efficient like merge sort. One programming assignment has students write the code in C to each of the three "simpler" sorting algorithms. Students get cl... | The debate between teaching students to implement algorithms from scratch versus having them apply pre-defined algorithms is a common discussion in computer science education. Each approach has its own benefits and drawbacks, and the effectiveness can depend on various factors such as the students' background, the educ... | [
{
"from": "human",
"value": "One unit of CS50 AP's curriculum focuses on three main sorting algorithms: bubble sort, selection sort, and insertion sort. There is also discussion of something more efficient like merge sort. One programming assignment has students write the code in C to each of the three \"si... |
I just saw this question about SIGCSE for college professors, and it made me curious about whether it is a good organization for high school teachers. I am currently a member of my local CSTA, which I find to be of some value. Are there additional benefits from SIGCSE that could help me in my classroom practice?
(Not... | SIGCSE (Special Interest Group on Computer Science Education) primarily focuses on computer science education at the college level, but it does have resources and opportunities that can be beneficial for high school teachers as well. Here are some potential benefits you might find useful:
1. **Access to Research and B... | [
{
"from": "human",
"value": "I just saw this question about SIGCSE for college professors, and it made me curious about whether it is a good organization for high school teachers. I am currently a member of my local CSTA, which I find to be of some value. Are there additional benefits from SIGCSE that cou... |
I am a college teacher developing an introduction to digital logic for grades 8-12. This is a special topic that will be presented in three 50-minute periods with in-class exercises. It won't go beyond basic combinational logic. Provisionally, module 1 starts with gates and truth tables and ends with a half-adder; m... | Explaining the importance of digital logic to eighth-graders can be both engaging and enlightening if framed in a context they can relate to. Here's a concise and memorable paragraph you might consider:
---
"Understanding digital logic is like learning the secret language of technology. Everything you see and use tod... | [
{
"from": "human",
"value": "I am a college teacher developing an introduction to digital logic for grades 8-12. This is a special topic that will be presented in three 50-minute periods with in-class exercises. It won't go beyond basic combinational logic. Provisionally, module 1 starts with gates and t... |
The notion of "Study Guide" was unknown to me before moving to the US (I don't think I was ever given one during my studies in France).
I believe that the goal of a study guide is three-fold:
To list all the topic that will be on the exam,
To provide some hints to the students as to how to revise,
To help them deal wi... | Your reflections on the purpose and utility of study guides are insightful and highlight valid concerns about their necessity, especially in a college setting where students are expected to take more responsibility for their learning. However, there are several aspects to consider that might underscore the importance o... | [
{
"from": "human",
"value": "The notion of \"Study Guide\" was unknown to me before moving to the US (I don't think I was ever given one during my studies in France).\nI believe that the goal of a study guide is three-fold:\n\nTo list all the topic that will be on the exam,\nTo provide some hints to the stu... |
Is asking students to debug code better than asking them to write code, if the goal is to give students a strong basis in creating error-free code?
In my point of view, when we ask them to write a program by giving some scenario, they will write some code. Most probably, this code will contain errors. Then they will c... | Your question raises an important point about teaching programming effectively. Both writing code and debugging are essential skills in software development, and each has its own benefits and learning outcomes. Here's a more detailed breakdown of the advantages of both approaches and a suggestion for an effective teach... | [
{
"from": "human",
"value": "Is asking students to debug code better than asking them to write code, if the goal is to give students a strong basis in creating error-free code?\nIn my point of view, when we ask them to write a program by giving some scenario, they will write some code. Most probably, this ... |
During the summer I am teaching a programming workshop for students in a high school computer science major. The purpose of the workshop is to introduce them to image processing, and to have them experience using it.
Naturally, an image processing library is necessary (teaching in java, so probably JavaCV, though I mig... | Introducing high school students to image processing can be a highly rewarding experience, especially if they are already familiar with advanced mathematics. Here’s a framework for approaching the integration of mathematics with image processing in your workshop:
### 1. Assess Student Readiness
Before diving into the ... | [
{
"from": "human",
"value": "During the summer I am teaching a programming workshop for students in a high school computer science major. The purpose of the workshop is to introduce them to image processing, and to have them experience using it.\nNaturally, an image processing library is necessary (teaching... |
Every year, I teach my students about using induction to prove that algorithms function as intended. My purpose, in instructing them, is to help them master the structure of the proof itself. I use simple algorithms for which we can do fairly easy inductive proofs. Here are a few examples:
Prove that arraySum will c... | There are several resources available online and in print that focus on induction proofs and provide practice problems, some of which include solutions. Here are a few suggestions that might fit your needs:
1. **Textbooks on Discrete Mathematics and Algorithms**:
- Many textbooks on discrete mathematics and algorit... | [
{
"from": "human",
"value": "Every year, I teach my students about using induction to prove that algorithms function as intended. My purpose, in instructing them, is to help them master the structure of the proof itself. I use simple algorithms for which we can do fairly easy inductive proofs. Here are a... |
When mentioning operator precedence for AND / OR, I explained it wrongly. I re-explained it properly using the idea of binding: the operator "binds tightly" to the two expressions immediately on either side.
My incorrect explanation was based on me thinking of a complex expression as a tree, with AND as the root. For e... | Understanding operator precedence can indeed be tricky, especially in the context of different programming languages and their unique rules. Here are some suggestions for clarifying the concept of precedence without causing ambiguity, along with alternatives to the term "binds tightly":
1. **Use Clear Terminology**: I... | [
{
"from": "human",
"value": "When mentioning operator precedence for AND / OR, I explained it wrongly. I re-explained it properly using the idea of binding: the operator \"binds tightly\" to the two expressions immediately on either side.\nMy incorrect explanation was based on me thinking of a complex expre... |
Bit of history: The Darmouth Basic Manual (1964) follows a common order of exposition: expressions, variables, constants, assignment, tests/loops; calling subprograms being considered an "advanced topic" (well, the last thing, after using tables).
This reminds me of the first version of Fortran, (see preliminary report... | The teaching of programming in the 1960s and 1970s often followed a somewhat procedural and linear approach, which reflected the design philosophy of early programming languages like Fortran and its successors. The focus was primarily on the mechanics of coding — such as expressions, variables, constants, and control s... | [
{
"from": "human",
"value": "Bit of history: The Darmouth Basic Manual (1964) follows a common order of exposition: expressions, variables, constants, assignment, tests/loops; calling subprograms being considered an \"advanced topic\" (well, the last thing, after using tables).\nThis reminds me of the first... |
What would be a good way to describe ports? I learned about it using this analogy, but it seems pretty inadequate to me:
IP addresses are like street addresses of apartment buildings, and ports are like the apartments therein.
IP addresses are not segmented as a street address is, and second, apartments don't seem at ... | Your analogy is a good starting point, but it's understandable that it may not fully capture the nature of ports. Here's an alternative way to describe ports that might resonate better:
Think of an **IP address** as the entire **business complex**, where many different companies (services or applications) operate. The... | [
{
"from": "human",
"value": "What would be a good way to describe ports? I learned about it using this analogy, but it seems pretty inadequate to me:\nIP addresses are like street addresses of apartment buildings, and ports are like the apartments therein.\nIP addresses are not segmented as a street addres... |
I understand the advantages of test-driven development, but should unit testing be taught/used in CS1 (the introductory class) for computer science students learning?
I am aware of researchers saying that "YES" it can and should be taught, but in the "real world", is anyone using it in their CS1 classes? Do the student... | The question of whether unit testing should be taught in CS1 is quite nuanced and can depend on various factors, including the curriculum goals, the programming languages being taught, and the overall educational philosophy of the institution.
### Advantages of Teaching Unit Testing in CS1
1. **Conceptual Understandi... | [
{
"from": "human",
"value": "I understand the advantages of test-driven development, but should unit testing be taught/used in CS1 (the introductory class) for computer science students learning?\nI am aware of researchers saying that \"YES\" it can and should be taught, but in the \"real world\", is anyone... |
I was talking to a student today, and explaining that NP problems are hard to solve, but easy to verify. I used password encryption/decryption as an example, but he got stuck. He was unable to fathom how, given the hash, you couldn't just reverse your steps backwards to the password.
I started explaining a bit about ... | Explaining NP problems in an intuitive way can be challenging, but analogies can help make the concept clearer. Here are a couple of analogies that you might find useful:
### 1. **Jigsaw Puzzle Analogy**
Imagine you have a jigsaw puzzle with a completed image. Finding the right pieces and putting them together to form... | [
{
"from": "human",
"value": "I was talking to a student today, and explaining that NP problems are hard to solve, but easy to verify. I used password encryption/decryption as an example, but he got stuck. He was unable to fathom how, given the hash, you couldn't just reverse your steps backwards to the pa... |
We have two entry points for programming students here: one is web-oriented and features HTML5/CSS3/ECMA6, and the other is in a robotics environment using LabView. Both classes address the "big 5": variables, objects, functions, conditional logic, and iteration.
We are thinking about a new entry point for a new aud... | Processing is an excellent choice for an introductory programming course, particularly because of its visual and interactive nature. Here are several features of the Processing language that lend themselves well to teaching programming concepts to beginners:
1. **Visual Feedback**: Processing is designed for visual ar... | [
{
"from": "human",
"value": "We have two entry points for programming students here: one is web-oriented and features HTML5/CSS3/ECMA6, and the other is in a robotics environment using LabView. Both classes address the \"big 5\": variables, objects, functions, conditional logic, and iteration. \nWe are th... |
How do you handle it when you make a mistake while teaching? I used to get confused, stammer, blush, etc. But now I just pause and notice that something is incorrect, then correct it if I can figure it out, or say that I will get back to it.
In one of my questions on this site, I said that I taught something wrongly an... | It's great to hear how you've developed a more constructive and reflective approach to handling mistakes while teaching. Acknowledging errors and creating a learning environment that values understanding over perfection can be incredibly beneficial for both you and your students. Here are some strategies that might hel... | [
{
"from": "human",
"value": "How do you handle it when you make a mistake while teaching? I used to get confused, stammer, blush, etc. But now I just pause and notice that something is incorrect, then correct it if I can figure it out, or say that I will get back to it.\nIn one of my questions on this site,... |
I was recently reading a new, and mostly excellent, magazine Hello, World. There is an article on teaching goto. The author states that there is value in teaching goto, as it helps to translate flowcharts into code.
I have always considered goto to be harmful. It results in code that is buggy and hard to read. Not just... | You've touched on a long-standing debate in programming about the utility and implications of `goto` statements and flowcharts. Let's break down both concepts and their potential value.
### Goto Statements
1. **Historical Context**:
- Edsger Dijkstra's influential paper "Go To Statement Considered Harmful" sparked... | [
{
"from": "human",
"value": "I was recently reading a new, and mostly excellent, magazine Hello, World. There is an article on teaching goto. The author states that there is value in teaching goto, as it helps to translate flowcharts into code.\nI have always considered goto to be harmful. It results in cod... |
One unit of CS50 AP's curriculum focuses on three main sorting algorithms: bubble sort, selection sort, and insertion sort. There is also discussion of something more efficient like merge sort. One programming assignment has students write the code in C to each of the three "simpler" sorting algorithms. Students get cl... | There are several benefits to teaching students to implement algorithms from scratch, as well as distinct advantages to providing them with algorithms to apply in different contexts. The effectiveness of each approach can depend on various factors, including the goals of the curriculum, the students’ experience levels,... | [
{
"from": "human",
"value": "One unit of CS50 AP's curriculum focuses on three main sorting algorithms: bubble sort, selection sort, and insertion sort. There is also discussion of something more efficient like merge sort. One programming assignment has students write the code in C to each of the three \"si... |
In the scope of my PhD work, I am developing a teaching assistant tool. These tools are used in the context of lab classes to gather "snapshots" from the student's code using one plug-in in the IDE of their choice (in my case, Eclipse and all JetBrains IDEs). The code snapshots are analyzed/processed, and several metri... | It's great to hear about your PhD work on a teaching assistant tool! Indeed, similar tools like Retina and TestMyCode are utilized in academic settings to monitor student progress, assess code quality, and detect plagiarism. Here are some insights on their usage and effectiveness, as well as some reasons why similar to... | [
{
"from": "human",
"value": "In the scope of my PhD work, I am developing a teaching assistant tool. These tools are used in the context of lab classes to gather \"snapshots\" from the student's code using one plug-in in the IDE of their choice (in my case, Eclipse and all JetBrains IDEs). The code snapshot... |
Bit of history: The Darmouth Basic Manual (1964) follows a common order of exposition: expressions, variables, constants, assignment, tests/loops; calling subprograms being considered an "advanced topic" (well, the last thing, after using tables).
This reminds me of the first version of Fortran, (see preliminary report... | Your observations about the historical context of programming education and the structure of programming languages in the 1960s and 1970s are quite accurate. The order of topics in teaching programming often reflected the capabilities of the languages of the time, as well as prevailing pedagogical philosophies.
In the... | [
{
"from": "human",
"value": "Bit of history: The Darmouth Basic Manual (1964) follows a common order of exposition: expressions, variables, constants, assignment, tests/loops; calling subprograms being considered an \"advanced topic\" (well, the last thing, after using tables).\nThis reminds me of the first... |
I'm doing small group tutoring for an undergraduate course next semester and I'd like to gather feedback from students to improve my skills.
What are some questions I should ask the students in order to get useful feedback?
I want to do this with a quick (anonymous) Google form at the end of each session, but I'm open ... | Gathering feedback from your students is a great way to improve your tutoring skills. A Google Form is an excellent choice for collecting anonymous feedback. Here are some questions you can consider including in your form:
### General Experience
1. **How would you rate your overall experience in today's session?**
... | [
{
"from": "human",
"value": "I'm doing small group tutoring for an undergraduate course next semester and I'd like to gather feedback from students to improve my skills.\nWhat are some questions I should ask the students in order to get useful feedback?\nI want to do this with a quick (anonymous) Google for... |
I'm trying to teach why indentation is important, but the student doesn't indent. I asked why he doesn't indent, then he answered "That's because it’s a hassle."
It's OK to say "you should indent", but I want him to understand why indentation is important.
How do you teach why indentation is important?
| Teaching the importance of indentation can be approached in several ways, emphasizing both the practical and conceptual reasons for using it. Here are some strategies to help your student understand why indentation matters:
### 1. **Visual Representation**
- **Use Examples**: Show code snippets without indentation ... | [
{
"from": "human",
"value": "I'm trying to teach why indentation is important, but the student doesn't indent. I asked why he doesn't indent, then he answered \"That's because it’s a hassle.\"\nIt's OK to say \"you should indent\", but I want him to understand why indentation is important.\nHow do you teach... |
Every year, I teach my students about using induction to prove that algorithms function as intended. My purpose, in instructing them, is to help them master the structure of the proof itself. I use simple algorithms for which we can do fairly easy inductive proofs. Here are a few examples:
Prove that arraySum will c... | There are several resources available that can help you find practice problems for teaching mathematical induction in the context of algorithm correctness. Here are some suggestions where you can find pre-made problems along with solutions:
1. **Textbooks on Discrete Mathematics or Algorithms**: Many textbooks cover p... | [
{
"from": "human",
"value": "Every year, I teach my students about using induction to prove that algorithms function as intended. My purpose, in instructing them, is to help them master the structure of the proof itself. I use simple algorithms for which we can do fairly easy inductive proofs. Here are a... |
After learning recursion in class, students take a test (a few lessons for teaching the subject, and then a test), and are then given a grade. The test is on paper, and I can't change that fact.
All tests are written on paper, but the questions on the test are subject to changes, and those are the changes being asked a... | Testing students' understanding of recursion through tracing recursive functions can be a useful method, but it does come with limitations. Here’s an evaluation of the approach you described, along with suggestions for alternative assessment methods.
### Benefits of Tracing Recursive Functions:
1. **Understanding of ... | [
{
"from": "human",
"value": "After learning recursion in class, students take a test (a few lessons for teaching the subject, and then a test), and are then given a grade. The test is on paper, and I can't change that fact.\nAll tests are written on paper, but the questions on the test are subject to change... |
This question is really aimed to teachers, especially in high school courses (but everyone is welcome to share some ideas). If you have a student that really does not like Computer Science, what should you do?
Encourage him, he might find his passion in CS
Talk to his parents and tell them maybe he should be in a cour... | Addressing a situation where a student dislikes | [
{
"from": "human",
"value": "This question is really aimed to teachers, especially in high school courses (but everyone is welcome to share some ideas). If you have a student that really does not like Computer Science, what should you do?\n\nEncourage him, he might find his passion in CS\nTalk to his parent... |
I keep seeing examples like the first program bellow, in teaching materials.
Is there a pedagogical reason to teach this first program, compared to the second?
answer=input("Do you wish to continue?")
while answer == "yes":
answer=input("Do you wish to continue?")
print ("Good bye")
2nd program
answer="yes"
whi... | You're raising an interesting point about pedagogical approaches in teaching programming, particularly with regard to code repetition and clarity. Let's examine both programs and their implications for teaching.
### First Program
```python
answer = input("Do you wish to continue?")
while answer == "yes":
answer ... | [
{
"from": "human",
"value": "I keep seeing examples like the first program bellow, in teaching materials.\nIs there a pedagogical reason to teach this first program, compared to the second?\nanswer=input(\"Do you wish to continue?\")\n\nwhile answer == \"yes\":\n answer=input(\"Do you wish to continue?\"... |
We've just uploaded a video of a presentation Simon Peyton Jones and I did about Project Quantum to CAS TV. Project Quantum is an attempt to crowd-source low-stakes formative assessment items for computing; we've just over 5,500 questions at the moment.
I boldly (and perhaps erroneously) claim that there's no bit of th... | Assessing understanding and application of the concept of abstraction in computing can indeed be challenging, especially when trying to move beyond simple definitions. Here are some ideas for multiple-choice questions (MCQs) that aim to assess deeper understanding and application of abstraction:
### Question 1: Real-W... | [
{
"from": "human",
"value": "We've just uploaded a video of a presentation Simon Peyton Jones and I did about Project Quantum to CAS TV. Project Quantum is an attempt to crowd-source low-stakes formative assessment items for computing; we've just over 5,500 questions at the moment.\nI boldly (and perhaps er... |
Is asking students to debug code better than asking them to write code, if the goal is to give students a strong basis in creating error-free code?
In my point of view, when we ask them to write a program by giving some scenario, they will write some code. Most probably, this code will contain errors. Then they will c... | Your question touches on a key aspect of computer science education: the balance between writing code and debugging it. Both activities serve different purposes and can reinforce learning in complementary ways. Here are some points to consider when deciding whether to prioritize debugging or writing code in your teachi... | [
{
"from": "human",
"value": "Is asking students to debug code better than asking them to write code, if the goal is to give students a strong basis in creating error-free code?\nIn my point of view, when we ask them to write a program by giving some scenario, they will write some code. Most probably, this ... |
In most fields instructors spend a lot of time on the Content of a course. Often this is phrased as Delivering Content, or Completing the Syllabus. The traditional picture, whether valid or not, is an instructor (single) broadcasting Content to students (multiple). I wonder if this is a common view of CS education.
In... | Your inquiry touches on some key pedagogical philosophies and practices in Computer Science (CS) education, as well as in education more broadly. The way we view and prioritize "Delivering Content" can significantly impact both the instructor's teaching effectiveness and the students' learning experiences. Here’s a bre... | [
{
"from": "human",
"value": "In most fields instructors spend a lot of time on the Content of a course. Often this is phrased as Delivering Content, or Completing the Syllabus. The traditional picture, whether valid or not, is an instructor (single) broadcasting Content to students (multiple). I wonder if t... |
Has anyone used zyBooks in their classes? I've seen some good comments on the SIGCSE list about them. I would primarily use this in our CS I class (Java) with their lab feature as a way to provide students with review and practice problems.
Currently, our CS I course only consists of 3 weekly 50-minute sessions, we hav... | Many instructors have reported positive experiences using zyBooks in their computer science classes, including CS I courses focused on Java. Here are some insights and feedback based on various accounts:
### Students' Reactions:
1. **Engagement:** Students often find zyBooks more engaging compared to traditional textb... | [
{
"from": "human",
"value": "Has anyone used zyBooks in their classes? I've seen some good comments on the SIGCSE list about them. I would primarily use this in our CS I class (Java) with their lab feature as a way to provide students with review and practice problems.\nCurrently, our CS I course only consi... |
Why do some instructors delay teaching mutation due to considering it to be a more difficult concept? (than functional or recursive concepts, etc.)
It is very likely that, back in the 8-bit PC days, many thousands of 8 to 12 year olds learned to code in Tiny Basic or other "street" BASIC implementations (where there we... | The delay in teaching mutation in programming often stems from a few interconnected factors related to cognitive load, abstraction levels, and pedagogical approaches to programming concepts.
1. **Cognitive Load**: Mutation introduces complexity because it requires learners to manage and reason about changes in state o... | [
{
"from": "human",
"value": "Why do some instructors delay teaching mutation due to considering it to be a more difficult concept? (than functional or recursive concepts, etc.)\nIt is very likely that, back in the 8-bit PC days, many thousands of 8 to 12 year olds learned to code in Tiny Basic or other \"st... |
For GCSE CS in the UK, students have to analyse, design, code, test and review a solution to a problem.
For the design section of their project, students have to plan out the algorithm for each part of their coded solution. They can choose to use pseudocode or flow charts as long as they show the logic and programming ... | When deciding between pseudocode and flowcharts for planning algorithms in a GCSE Computer Science project, it's essential to consider the specific strengths and weaknesses of each method in relation to the criteria of being faster, more accurate, easier to understand, and the potential for scoring higher marks.
### P... | [
{
"from": "human",
"value": "For GCSE CS in the UK, students have to analyse, design, code, test and review a solution to a problem.\nFor the design section of their project, students have to plan out the algorithm for each part of their coded solution. They can choose to use pseudocode or flow charts as lo... |
In some CS courses (especially undergraduate and high school courses) the tests and the final exam are written on paper without the use of a computer.
But if the students are in a CS course, shouldn't they be allowed to use the computer? If some mistakes are difficult enough to not be noticeable while writing code on a... | The question of whether to conduct computer science assessments on paper or using a computer is a nuanced one, and there are pros and cons to both methods. Here are some considerations for each approach:
### Advantages of Written Tests on Paper
1. **Focus on Fundamentals**: Paper-based tests often emphasize fundament... | [
{
"from": "human",
"value": "In some CS courses (especially undergraduate and high school courses) the tests and the final exam are written on paper without the use of a computer.\nBut if the students are in a CS course, shouldn't they be allowed to use the computer? If some mistakes are difficult enough to... |
As an tutor for introductory CS classes, I often come across students that have a very rigid understanding of a programming language up to what they have been taught so far. This most often manifests itself when they ask the question "I can do that? I thought that...". I've most often seen this when showing students th... | To help students transition from a rigid understanding of programming concepts to a more flexible and exploratory mindset, you can employ several strategies. Here are some approaches that may facilitate this shift in thinking:
1. | [
{
"from": "human",
"value": "As an tutor for introductory CS classes, I often come across students that have a very rigid understanding of a programming language up to what they have been taught so far. This most often manifests itself when they ask the question \"I can do that? I thought that...\". I've mo... |
Before I turned 19 I just kind of... fell into coding. I used to think programming was something incredibly hard that only child prodigies and people with a 160+ IQ could do. (A view often reinforced by Hollywood stereotypes.) And I thought that I just wasn't smart enough.
Since getting into programming,${}^1$ I have l... | It's great that you want to encourage your friend to explore coding! Here are some strategies to help convince her and resources to make the learning process more approachable:
### Strategies to Encourage Her
1. **Share | [
{
"from": "human",
"value": "Before I turned 19 I just kind of... fell into coding. I used to think programming was something incredibly hard that only child prodigies and people with a 160+ IQ could do. (A view often reinforced by Hollywood stereotypes.) And I thought that I just wasn't smart enough.\nSinc... |
A recent Blog post by Eugene Wallingford raises the issue that students often perform according to their perception of their abilities rather than their actual abilities. If a student performs better than their "natural abilities" suggest then all is well, of course. However some students do less well than they might ... | To help students overcome their self-perceived limitations in computer science (CS) and other technical subjects, instructors can adopt various strategies that promote confidence, engagement, and growth mindset. Here are some | [
{
"from": "human",
"value": "A recent Blog post by Eugene Wallingford raises the issue that students often perform according to their perception of their abilities rather than their actual abilities. If a student performs better than their \"natural abilities\" suggest then all is well, of course. However s... |
I understand, as a model, how a researcher at a university can advance the entire field of CS Education. Less clear to me, however, are methods available to teachers in the field who do not have doctoral degrees, much less a publication history. Beyond posting on this website, what ways are available to advance the f... | Advancing the field of Computer Science (CS) education as a teacher, even without a doctoral degree or extensive publication history, is certainly possible. Here are several methods to contribute meaningfully to the field:
1 | [
{
"from": "human",
"value": "I understand, as a model, how a researcher at a university can advance the entire field of CS Education. Less clear to me, however, are methods available to teachers in the field who do not have doctoral degrees, much less a publication history. Beyond posting on this website,... |
This year course includes creating a compiler of course using Syntax Analyzer and Lexical Analyzer, Semantics and of course through all this generate Assembly Code
But also the teaching program includes using at least a little piece of hardware to pass assembly code to it.
Does anyone know a programmable hardware that ... | For educational purposes, there are several programmable hardware platforms that can be used to run assembly code. Here are a few popular options:
1. **Microcontrollers**:
- **Arduino**: Although | [
{
"from": "human",
"value": "This year course includes creating a compiler of course using Syntax Analyzer and Lexical Analyzer, Semantics and of course through all this generate Assembly Code\nBut also the teaching program includes using at least a little piece of hardware to pass assembly code to it.\nDoe... |
When people learn programming in a school setting, tests show a "two hump" tendency. Some students race ahead and grasp it relatively well and others struggle. Apparently this is more pronounced in programming than in other areas, like math or language. It seems to occur at all age levels and circumstances, and through... | The "two hump" tendency you describe in programming education, where some students grasp concepts quickly while others struggle significantly, is indeed a well-documented phenomenon. There are several potential explanations for this, as well | [
{
"from": "human",
"value": "When people learn programming in a school setting, tests show a \"two hump\" tendency. Some students race ahead and grasp it relatively well and others struggle. Apparently this is more pronounced in programming than in other areas, like math or language. It seems to occur at al... |
Through the years I had several students that clearly were not fitted for computer science. Some of them ended up by dropping the program after a few years, some of them are still there struggling year after year.
I guess that one of the main problems is that they shouldn’t even have started the program, but due to une... | It's a tough situation when you see students struggling in a program that may not be the best fit for them. Many educators have likely faced similar dilemmas, and it's important to approach this topic with sensitivity | [
{
"from": "human",
"value": "Through the years I had several students that clearly were not fitted for computer science. Some of them ended up by dropping the program after a few years, some of them are still there struggling year after year.\nI guess that one of the main problems is that they shouldn’t eve... |
I sometimes have pupils, that struggle to learn because they have a fixed-mindset (“I can't program”, “I can't use computers”, …).
I the context of teaching a Computing (Computer Science, IT, Digital Literacy, Computational Thinking ) lesson, what can be done to encourage growth-mindset?
Footnotes:
Growth-mindset / ... | Encouraging a growth mindset in students, particularly in subjects like Computing, can significantly enhance their learning experience and outcomes. Here are several strategies that can be employed in the classroom:
### 1. **Model a Growth Mindset**
- **Share Personal Experiences:** Talk about your own struggles with ... | [
{
"from": "human",
"value": "I sometimes have pupils, that struggle to learn because they have a fixed-mindset (“I can't program”, “I can't use computers”, …). \nI the context of teaching a Computing (Computer Science, IT, Digital Literacy, Computational Thinking ) lesson, what can be done to encourage gro... |
In beginner programming environments, I have noticed an essential difference in style for handling user interaction. Scratch and Alice are event-driven, while Processing and Greenfoot, for lack of a better term, are poll-driven. In the event-driven case, when the user clicks the mouse on something or types a key, a met... | When considering the best approach for programming games for beginners, both event-driven and poll-driven programming have their strengths and weaknesses, and the choice often depends on the specific context of the educational goals and the types of games being developed.
### Event-Driven Programming
**Advantages:**
... | [
{
"from": "human",
"value": "In beginner programming environments, I have noticed an essential difference in style for handling user interaction. Scratch and Alice are event-driven, while Processing and Greenfoot, for lack of a better term, are poll-driven. In the event-driven case, when the user clicks the... |
I will soon be teaching a lesson on ROM, RAM, and virtual memory.
The problem is with “virtual memory”:
Some of the teaching resources correctly use the phrase virtual memory, and physical memory, and describe how virtual is mapped to physical via the memory management unit.
from https://en.wikipedia.org/wiki/Virtual... | This is a common issue when teaching complex topics like memory management, particularly when terminology may have different meanings or implications in various contexts. Here’s a way to approach the situation:
1. **Clar | [
{
"from": "human",
"value": "I will soon be teaching a lesson on ROM, RAM, and virtual memory.\nThe problem is with “virtual memory”: \nSome of the teaching resources correctly use the phrase virtual memory, and physical memory, and describe how virtual is mapped to physical via the memory management unit.\... |
A big problem of learning alone is that you don't always figure out the preferred style for a language, the most "pythonic" (in the case of Python) way to do it, or how to write code in keeping with the language's features.
Another problem with learning alone is it is very possible to learn to write code that is reall... | Learning a programming language like Python on your own can be rewarding, but it does present challenges, especially regarding learning best practices and avoiding poor techniques. Here are several strategies to help you prevent mislearning and ensure you're adopting effective coding styles:
1. **Leverage Quality Reso... | [
{
"from": "human",
"value": "A big problem of learning alone is that you don't always figure out the preferred style for a language, the most \"pythonic\" (in the case of Python) way to do it, or how to write code in keeping with the language's features. \nAnother problem with learning alone is it is very p... |
I will soon be teaching a lesson on ROM, RAM, and virtual memory.
The problem is with “virtual memory”:
Some of the teaching resources correctly use the phrase virtual memory, and physical memory, and describe how virtual is mapped to physical via the memory management unit.
from https://en.wikipedia.org/wiki/Virtual... | Teaching concepts like virtual memory can sometimes lead to confusion, particularly when terminology is not used consistently across resources. Here are some steps you can take to navigate this situation | [
{
"from": "human",
"value": "I will soon be teaching a lesson on ROM, RAM, and virtual memory.\nThe problem is with “virtual memory”: \nSome of the teaching resources correctly use the phrase virtual memory, and physical memory, and describe how virtual is mapped to physical via the memory management unit.\... |
A few years back I taught in a lab equipped with a SMART Board. I typically only used it as a regular whiteboard and the only benefit I could identify was that I didn't finish every lesson with ink on my fingers from absentmindedly erasing the odd illegible letter here and there.
On the downside, it was something of a... | Your skepticism about the SMART Board's effectiveness in a computer science (CS) classroom is understandable, especially if your past experiences with the technology were limited. However, there are several ways a SMART Board can enhance teaching and learning in CS, particularly in web design and programming. Here are ... | [
{
"from": "human",
"value": "A few years back I taught in a lab equipped with a SMART Board. I typically only used it as a regular whiteboard and the only benefit I could identify was that I didn't finish every lesson with ink on my fingers from absentmindedly erasing the odd illegible letter here and ther... |
When mentioning operator precedence for AND / OR, I explained it wrongly. I re-explained it properly using the idea of binding: the operator "binds tightly" to the two expressions immediately on either side.
My incorrect explanation was based on me thinking of a complex expression as a tree, with AND as the root. For e... | It sounds like you're grappling with a nuanced topic in operator precedence, and your desire to clarify this for your students is commendable! To avoid the confusion that arises from using terms like "binds tightly," you might consider the following approaches to explain operator precedence more effectively:
### 1. **... | [
{
"from": "human",
"value": "When mentioning operator precedence for AND / OR, I explained it wrongly. I re-explained it properly using the idea of binding: the operator \"binds tightly\" to the two expressions immediately on either side.\nMy incorrect explanation was based on me thinking of a complex expre... |
I teach a course on hacking every other year. It's a very difficult class, and it only attracts kids who are really enthusiastic about delving deep into the bowels of gdb, stackframes, format string vulnerabilities, buffer overflow attacks, and the like. 1
At the beginning, I give a short lecture talking about ethics... | Your approach to discussing ethics in the context of a hacking course is commendable, particularly because it aims to instill a sense of responsibility in your students. Here are some suggestions to ensure your message is clear and impactful within the 15-20 minute timeframe:
### 1. Reinforce the Locksmith Analogy
You... | [
{
"from": "human",
"value": "I teach a course on hacking every other year. It's a very difficult class, and it only attracts kids who are really enthusiastic about delving deep into the bowels of gdb, stackframes, format string vulnerabilities, buffer overflow attacks, and the like. 1 \nAt the beginning, I... |
One common concern many independent learners of computer science and tech have is figuring out what they "don't know". More specifically, the concern is that since they've never been formally educated in CS, their knowledge might have "blind spots", which can cripple them when they start working on more complex project... | Identifying gaps in knowledge can be a challenging but important part of self-directed learning, particularly in a vast and rapidly evolving field like computer science and technology. Here are some meta-strategies that may help self-learners systematically identify and fill in these gaps:
### 1. **Create a Learning P... | [
{
"from": "human",
"value": "One common concern many independent learners of computer science and tech have is figuring out what they \"don't know\". More specifically, the concern is that since they've never been formally educated in CS, their knowledge might have \"blind spots\", which can cripple them wh... |
I teach undergraduate programming project courses and have traditionally given the same project grade (about 45% of the semester grade) to everyone on each team, unless a team member's participation was clearly minimal, in which case I deduct points from that student's project grade, but I do not add points to other te... | It's a common challenge in education to balance group work with individual accountability, especially in programming courses where collaboration is key. Here are several methods that other educators have found effective in assessing individual contributions to team projects:
1. **Peer Evaluation**: Implement a structu... | [
{
"from": "human",
"value": "I teach undergraduate programming project courses and have traditionally given the same project grade (about 45% of the semester grade) to everyone on each team, unless a team member's participation was clearly minimal, in which case I deduct points from that student's project g... |
I have been asked to give an introductory programming course for kids between 14-15 years old. Scratch seems like a good option for young children, maybe up to 12 years old. Python, is also a good language for beginners.
I need help from educators to choose between the two options for the mentioned age group. I'm afrai... | It's great to hear that you're taking the initiative to teach programming to kids! You've rightly identified the challenge of balancing the language used with the skill levels and interests of the participants. Here are some suggestions that could help you navigate these issues and make your course more effective:
###... | [
{
"from": "human",
"value": "I have been asked to give an introductory programming course for kids between 14-15 years old. Scratch seems like a good option for young children, maybe up to 12 years old. Python, is also a good language for beginners.\nI need help from educators to choose between the two opti... |
Background
This is mid-year in a course for HS juniors in theoretical computer science. The unit is about Information Theory. We were using the coin-weighing problem as something of a motivator for the entire enterprise, as a deep understanding of that problem would also engender a pretty reasonable understanding of ... | It sounds like you’ve put a lot of thought into your lab design, and it's commendable that you're seeking to improve the learning experience for your students. The challenges you faced last time highlight the complexities of encouraging self-directed learning while also ensuring that all students are adequately support... | [
{
"from": "human",
"value": "Background\nThis is mid-year in a course for HS juniors in theoretical computer science. The unit is about Information Theory. We were using the coin-weighing problem as something of a motivator for the entire enterprise, as a deep understanding of that problem would also enge... |
In university, I was a student in an operating systems programming course in C. Assignment help was offered in tutorials. Students would usually present the tutor(s) with run-time errors and an enormous amount of code. The tutors took 20 minutes to figure out the mess and offer help. In a 50 minute class of 30, most st... | The situation you've described is a common challenge in programming courses, particularly those that involve complex subjects like operating systems and systems programming in C. Here are several strategies that teaching staff could implement to address the issues you've raised:
1. **Structured Code Review Sessions**:... | [
{
"from": "human",
"value": "In university, I was a student in an operating systems programming course in C. Assignment help was offered in tutorials. Students would usually present the tutor(s) with run-time errors and an enormous amount of code. The tutors took 20 minutes to figure out the mess and offer ... |
I was teaching the Octal number system and a student raised the question "Why should we use the octal number system, if we have binary and hexadecimal?" I was very confused, trying to explain the importance of this topic.
For context, I am teaching a course about the relationship between hardware and software.
| That's a great question, and it highlights the importance of understanding different number systems in computing. While binary and hexadecimal systems are more commonly used in modern computing, the octal number system has historical significance and certain practical applications. Here are some points you can use to e... | [
{
"from": "human",
"value": "I was teaching the Octal number system and a student raised the question \"Why should we use the octal number system, if we have binary and hexadecimal?\" I was very confused, trying to explain the importance of this topic. \nFor context, I am teaching a course about the relatio... |
I am an experienced programmer that has just started teaching. I am struggling to see how to introduce selection to my programming classes. None of the examples that I have seen so far are good.
I am struggling to find examples other than the ones below. (These are more advanced than I need.)
Termination condition for... | Introducing selection (often referred to as conditional statements) to Year 7 students can be both fun and educational. The key is to use relatable examples that resonate with their everyday experiences. Here are some suggestions for introducing selection concepts along with examples and exercises:
### Example 1: Simp... | [
{
"from": "human",
"value": "I am an experienced programmer that has just started teaching. I am struggling to see how to introduce selection to my programming classes. None of the examples that I have seen so far are good.\nI am struggling to find examples other than the ones below. (These are more advance... |
These days, we've got all this fancy, new-fangled technology. We've got live coding, we've got presentations, we've got remote desktop adapted for classroom use. There seems to be a tool for every teaching problem. But when should we ignore the KnowledgeInjector2000TM and instead use the good old blackboard?
More speci... | While modern technology offers innovative ways to engage students, there are times when traditional methods, such as using a blackboard, can be more effective. Here are some concepts that may be easier to explain with a blackboard, along with suggested approaches for teaching them:
### 1. **Basic Mathematical Concepts... | [
{
"from": "human",
"value": "These days, we've got all this fancy, new-fangled technology. We've got live coding, we've got presentations, we've got remote desktop adapted for classroom use. There seems to be a tool for every teaching problem. But when should we ignore the KnowledgeInjector2000TM and instea... |
In the scope of my PhD work, I am developing a teaching assistant tool. These tools are used in the context of lab classes to gather "snapshots" from the student's code using one plug-in in the IDE of their choice (in my case, Eclipse and all JetBrains IDEs). The code snapshots are analyzed/processed, and several metri... | It sounds like you're working on an interesting and valuable project for academic settings! Tools like Retina and TestMyCode are indeed utilized in educational contexts to assess student submissions, monitor coding practices, and detect plagiarism. Here's an overview of how these tools typically function, along with so... | [
{
"from": "human",
"value": "In the scope of my PhD work, I am developing a teaching assistant tool. These tools are used in the context of lab classes to gather \"snapshots\" from the student's code using one plug-in in the IDE of their choice (in my case, Eclipse and all JetBrains IDEs). The code snapshot... |
I'm sure that basically every introductory course involves teaching about the ubiquitous mod operation. In my experience, and I'm sure I'm not alone in this, I've found that teaching my students that "mod is the remainder of division" is insufficient if I want them to make any use of the concept later on.
Beyond showi... | Your approach to teaching modular arithmetic in an introductory computer science course is thoughtful and has merit, especially in helping students build a deep understanding of the concept and its applications. Here are some factors to consider when determining how far to take the topic:
### Benefits of a Deeper Dive... | [
{
"from": "human",
"value": "I'm sure that basically every introductory course involves teaching about the ubiquitous mod operation. In my experience, and I'm sure I'm not alone in this, I've found that teaching my students that \"mod is the remainder of division\" is insufficient if I want them to make an... |
I have only lately started allowing (and encouraging!) paired programming, and it is going very well. The kids enjoy it, and they appear to be learning the material with less pain. Not everyone has done it yet, however.
This is where I am beginning to sense trouble. I have a difficult major programming lab coming up ... | It's great to hear that paired programming is working well for your students! When it comes to three students wanting to work together, there are indeed strategies you can use to maintain the benefits of collaborative learning while still allowing them to work effectively. Here are some suggestions:
1. **Rotating Role... | [
{
"from": "human",
"value": "I have only lately started allowing (and encouraging!) paired programming, and it is going very well. The kids enjoy it, and they appear to be learning the material with less pain. Not everyone has done it yet, however.\nThis is where I am beginning to sense trouble. I have a ... |
I've been thinking about active learning, and I am inspired by Heather's answer to my earlier boolean algebra curriculum review. This may also be a good question for math teachers who have experience teaching algebra. How do you avoid lecturing, and get the kids doing a lot of activity, even when there is so much mat... | Active learning in the context of teaching Boolean algebra can be both engaging and effective in helping students grasp the concepts. Here are some techniques to promote active learning while covering the material:
1. **Group Work and Collaborative Learning**:
- **Pair and Share**: Have students work in pairs to so... | [
{
"from": "human",
"value": "I've been thinking about active learning, and I am inspired by Heather's answer to my earlier boolean algebra curriculum review. This may also be a good question for math teachers who have experience teaching algebra. How do you avoid lecturing, and get the kids doing a lot of... |
I currently coach our school's CyberPatriot team. (You can find information on the CyberPatriot competition here.) We are heading into our second year of competing. Last year we did pretty well for being a more casually organized team, but I'd love to bring in a stronger curriculum.
There are helpful training modules ... | It's great to hear that you're coaching a CyberPatriot team and looking to enhance the learning experience for your students. Since you’re aiming to provide resources that are engaging and promote independent study, here are several types of resources across different formats that you can use to strengthen your student... | [
{
"from": "human",
"value": "I currently coach our school's CyberPatriot team. (You can find information on the CyberPatriot competition here.) We are heading into our second year of competing. Last year we did pretty well for being a more casually organized team, but I'd love to bring in a stronger curricu... |
Students building websites in a high-school computer science major (using HTML, javascript, jsp and MySQL) don't seem to understand the dangers of SQL injections. I try to explain that unchecked SQL statements can really ruin their databases, but just telling them doesn't get the message through.
The students build sm... | Demonstrating the dangers of SQL injection can be a powerful way to make your students understand the risks associated with unchecked SQL statements. Here are several methods to effectively illustrate the risks of SQL injection in an educational environment:
### 1. **Live Demonstration:**
- **Set Up a Safe Environm... | [
{
"from": "human",
"value": "Students building websites in a high-school computer science major (using HTML, javascript, jsp and MySQL) don't seem to understand the dangers of SQL injections. I try to explain that unchecked SQL statements can really ruin their databases, but just telling them doesn't get th... |
I am going to teach a course in object-oriented programming in Java, and am looking for materials - textbooks and slides. It is a course for 2nd-year undergrads. In the 1st year, they already learned an introduction to programming course, also with Java. So, books that just teach Java will not be good textbooks. What a... | Teaching a course in object-oriented programming (OOP) with Java for second-year undergraduates is a great opportunity to deepen their understanding of programming concepts. Given that they already have a foundation in Java, you'll want to focus on more advanced OOP principles, design patterns, and best practices. Here... | [
{
"from": "human",
"value": "I am going to teach a course in object-oriented programming in Java, and am looking for materials - textbooks and slides. It is a course for 2nd-year undergrads. In the 1st year, they already learned an introduction to programming course, also with Java. So, books that just teac... |
So, I am preparing to teach about P and NP for the first time. I know that I need to teach about Mapping Reducibility (aka One-to-One Reducibility). Can anyone recommend a set of algorithms that are easy to use to clearly illustrate the idea? The algorithms in this first brush with the topic don't, themselves, have ... | Teaching the concepts of P and NP, particularly through the lens of mapping reducibility, can indeed be made clearer with a selection of well-chosen algorithms. Here are some suggestions for algorithms and problems you can use to illustrate the idea of mapping reducibility effectively:
### 1. **SAT (Satisfiability Pro... | [
{
"from": "human",
"value": "So, I am preparing to teach about P and NP for the first time. I know that I need to teach about Mapping Reducibility (aka One-to-One Reducibility). Can anyone recommend a set of algorithms that are easy to use to clearly illustrate the idea? The algorithms in this first brus... |
This question is specific for teachers of the United States College Board's AP Computer Science Principles class.
I'm looking for a block based programming language that allows for:
Procedures that return values
For each that will iterate through lists
In addition, we are to teach basic 2D robot programming with comm... | While MIT's Scratch is a popular and widely used block-based programming language that meets most of your criteria, there are several other options that may also be suitable for high school students studying AP Computer Science Principles. Here are some alternatives to consider:
1. **Snap!**:
- Snap! is an extended... | [
{
"from": "human",
"value": "This question is specific for teachers of the United States College Board's AP Computer Science Principles class.\nI'm looking for a block based programming language that allows for:\n\nProcedures that return values\nFor each that will iterate through lists\n\nIn addition, we ar... |
In the final report of their internship, the students of our school must have one chapter where they "document" the developed work. When using the “waterfall” methodology, they usually have one sub-section for each stage:
requirements
detailed design
implementation
tests
...
What if an agile methodology like XP or S... | When using agile methodologies such as XP (Extreme Programming) or Scrum, the approach to documenting the developed work can indeed differ significantly from the traditional waterfall methodology. Here are some ideas to help structure the chapter in the final report to accommodate agile practices, while also addressing... | [
{
"from": "human",
"value": "In the final report of their internship, the students of our school must have one chapter where they \"document\" the developed work. When using the “waterfall” methodology, they usually have one sub-section for each stage: \n\nrequirements\ndetailed design\nimplementation\ntest... |
I'm a developer with a little CS teaching history, and I have a nephew who enjoys math (Algebra-Calculus) quite a bit in high school. Because of this, I feel like he should at least try computer programming, but its not available at his small-town high school. He's a senior in high school this year (16-17yo).
Are the... | It's great that you're interested in helping your nephew explore programming! Here are several project ideas, games, and resources that are suitable for high school students and can give him a feel for what programming is about without diving straight into textbooks:
### 1. **Game Development with Scratch**
- **Scr... | [
{
"from": "human",
"value": "I'm a developer with a little CS teaching history, and I have a nephew who enjoys math (Algebra-Calculus) quite a bit in high school. Because of this, I feel like he should at least try computer programming, but its not available at his small-town high school. He's a senior in... |
Let's say I've assigned my Intro to CS class their first group programming assignment. A common problem is that the most invested student in the group will end up doing the majority of the work. At grading time, there are techniques that can be used to determine how much work each individual did--I don't want to focus ... | It's great to hear that you're thinking about fostering collaboration in your Intro to CS class! Encouraging equitable participation in group assignments is a common challenge in educational settings. Here are some strategies you can consider to promote cooperation without imposing external pressure, along with insight... | [
{
"from": "human",
"value": "Let's say I've assigned my Intro to CS class their first group programming assignment. A common problem is that the most invested student in the group will end up doing the majority of the work. At grading time, there are techniques that can be used to determine how much work ea... |
In the answers to this question, it's suggested that one of the most common things that CS graduates still need to learn to be employable developers is revision control, and by inference that many CS graduates don't learn how to use it while at university.
This surprised me, because on my CS* course we started using re... | Your observation about the use of version control systems like Git being integrated into your curriculum is an important one, and it highlights a key difference in how various Computer Science (CS) programs are structured. While it's great that your program emphasized practical tools from the beginning, many universiti... | [
{
"from": "human",
"value": "In the answers to this question, it's suggested that one of the most common things that CS graduates still need to learn to be employable developers is revision control, and by inference that many CS graduates don't learn how to use it while at university.\nThis surprised me, be... |
As part of my class, pupils have to learn what a virus is.
I am looking for a better way to explain viruses or a better metaphor than the biological virus. The problem with a biological virus as a metaphor is that if we follow it to its logical conclusion, then if there is even the slightest problem in the metaphor, it... | Explaining viruses in a way that is clear, relatable, and responsible is indeed crucial, especially for young learners. Here’s an alternative approach that uses a metaphor which might resonate better with students while also addressing the complexities of viruses in a more balanced way.
### Metaphor: "Uninvited Guests... | [
{
"from": "human",
"value": "As part of my class, pupils have to learn what a virus is.\nI am looking for a better way to explain viruses or a better metaphor than the biological virus. The problem with a biological virus as a metaphor is that if we follow it to its logical conclusion, then if there is even... |
As part of my Computer Science degree, we covered UML in quite a bit of depth as part of a software engineering module. Whilst some parts did seem useful, a lot of it was interesting but not very practical. The specification itself was also not very accessible when I tried to read it.
With that said, I've never come ac... | Your experience with UML and its practical application in the software engineering field is quite common among many computer science students and professionals. UML (Unified Modeling Language) has its roots in providing a standardized way to visualize the design of a system, but its actual usage can vary widely across ... | [
{
"from": "human",
"value": "As part of my Computer Science degree, we covered UML in quite a bit of depth as part of a software engineering module. Whilst some parts did seem useful, a lot of it was interesting but not very practical. The specification itself was also not very accessible when I tried to re... |
I was at a party a few days ago with a doctor (the medical kind, not the research kind) who was thinking about writing a computer program to solve a scheduling problem at work. Someone introduced him to me because I have a CS degree and worked as a software engineer for a few years.
It wasn't long before we moved on fr... | Explaining computer science (CS) to someone without a background in the field, especially in a short amount of time, can indeed be a challenge. Here are some strategies and key concepts you can convey succinctly:
### 1. **Define Computer Science Broadly**
Start with a broad definition of computer science:
- **Computer... | [
{
"from": "human",
"value": "I was at a party a few days ago with a doctor (the medical kind, not the research kind) who was thinking about writing a computer program to solve a scheduling problem at work. Someone introduced him to me because I have a CS degree and worked as a software engineer for a few ye... |
This question is somewhat related to a prior question that I asked about an Information Theory lab. I received a lot of great feedback there, but I have not gotten past the idea yet that the lab that I assigned last year was simply too hard. I have been wracking my brain to think of a new lab idea, but so far, I have... | It's great to hear about your course on Information Theory and the challenges you're facing with the lab component. Given the topics you've covered and the functional programming context using Scheme, here are a few lab ideas that might strike the right balance between being engaging and manageable for your students:
... | [
{
"from": "human",
"value": "This question is somewhat related to a prior question that I asked about an Information Theory lab. I received a lot of great feedback there, but I have not gotten past the idea yet that the lab that I assigned last year was simply too hard. I have been wracking my brain to th... |
When teaching I often have pupils struggle in the first few minutes. When they are setting the computer up, ready to start work. They often have to follow lengthy instructions, that I print on paper, of mostly screen snips (So this also takes a long time to prepare).
What can I do to make this easier for pupils?
For ex... | It sounds like you're facing a common challenge when teaching computer programming and related subjects, especially when it comes to setting up software in a timely manner. Here are some strategies you can implement to streamline the setup process and help your students start productive work more quickly:
### 1. **Use... | [
{
"from": "human",
"value": "When teaching I often have pupils struggle in the first few minutes. When they are setting the computer up, ready to start work. They often have to follow lengthy instructions, that I print on paper, of mostly screen snips (So this also takes a long time to prepare).\nWhat can I... |
For a few years, I have been teaching a programming class to first-year electrical engineering students -- thus, this is their first contact with computer programming. The language used is C (although this year I started using Logo for the first few weeks as it presents a smaller barrier to entry for a gentler introduc... | Teaching the concept of returning values from functions in programming can indeed be challenging, especially for beginners. Here are some strategies, analogies, and examples that might help clarify this concept for your students:
### Analogies
1. **The Restaurant Analogy**:
- **Ordering Food**: Imagine a restauran... | [
{
"from": "human",
"value": "For a few years, I have been teaching a programming class to first-year electrical engineering students -- thus, this is their first contact with computer programming. The language used is C (although this year I started using Logo for the first few weeks as it presents a smalle... |
Michael0x2a's recent question reminded me of a problem I've had teaching about Nondeterministic Finite Automata in the past.
I can get my students quite comfortable following and creating DFAs, but when I show them NFAs, they learn to follow without learning to create. They rarely become comfortable enough with the ... | Teaching nondeterministic finite automata (NFAs) can indeed be a challenge, especially when transitioning students from deterministic finite automata (DFAs) to NFAs. Here are several strategies you can use to help students become more comfortable with NFAs, including epsilon transitions and multiple transitions for the... | [
{
"from": "human",
"value": "Michael0x2a's recent question reminded me of a problem I've had teaching about Nondeterministic Finite Automata in the past. \nI can get my students quite comfortable following and creating DFAs, but when I show them NFAs, they learn to follow without learning to create. They ... |
My school is BYOD (Bring Your Own Device). This has a lot of benefits in terms of technology, but it also gives us no control over what is on the laptops kids bring into class. During lab time, kids will often try to sneak in game playing. This year, I made a policy that, if I catch someone playing a video game duri... | Managing a BYOD environment can be challenging, especially when it comes to keeping students focused on academic work. Here are several strategies you can implement to further reduce gaming during class:
### 1. **Engagement Through Active Learning**
- **Interactive Lessons**: Make your lessons more interactive. Use... | [
{
"from": "human",
"value": "My school is BYOD (Bring Your Own Device). This has a lot of benefits in terms of technology, but it also gives us no control over what is on the laptops kids bring into class. During lab time, kids will often try to sneak in game playing. This year, I made a policy that, if ... |
It is said that metaphors can do more harm than good, and I agree that other methods should be developed, like the "notional machine" idea. However, computer science is not like anything else, because it is a constructed reality. It therefore seems like the best way to teach it is to show students how a new concept is ... | You're right that using metaphors in teaching can be a double-edged sword. While they can bridge the gap between new concepts and students' existing knowledge, they may also introduce misunderstandings, especially if students come from diverse backgrounds with different cultural references. Here are several strategies ... | [
{
"from": "human",
"value": "It is said that metaphors can do more harm than good, and I agree that other methods should be developed, like the \"notional machine\" idea. However, computer science is not like anything else, because it is a constructed reality. It therefore seems like the best way to teach i... |
I've observed an unusual thing happen when teachers try to introduce Test-Driven Development (TDD) or Behavior-Driven Development (BDD) to their classes. Even though the teachers invariably encourage it and present it as a useful strategy, students come out of the class with mixed feelings or actively opposed to using ... | You're absolutely right that the tension between the perceived costs and benefits of Test-Driven Development (TDD) and Behavior-Driven Development (BDD) can be a significant barrier for students in a classroom setting. Here are several strategies you can use to effectively convey the value of these methodologies, poten... | [
{
"from": "human",
"value": "I've observed an unusual thing happen when teachers try to introduce Test-Driven Development (TDD) or Behavior-Driven Development (BDD) to their classes. Even though the teachers invariably encourage it and present it as a useful strategy, students come out of the class with mix... |
I am a college teacher developing an introduction to digital logic for grades 8-12. This is a special topic that will be presented in three 50-minute periods with in-class exercises. It won't go beyond basic combinational logic. Provisionally, module 1 starts with gates and truth tables and ends with a half-adder; m... | Explaining the importance of digital logic to students can be made relatable by connecting it to their everyday experiences and future opportunities. Here’s a short, memorable paragraph you can use:
"Digital logic is the building block of everything we interact with in our technology-driven world, from smartphones and... | [
{
"from": "human",
"value": "I am a college teacher developing an introduction to digital logic for grades 8-12. This is a special topic that will be presented in three 50-minute periods with in-class exercises. It won't go beyond basic combinational logic. Provisionally, module 1 starts with gates and t... |
I read something on this site, that lead me to read about Bret Victor's learnable programming and direct manipulation.
I was wondering if anyone has used any software like this.
What software have we used? What effect did it have on teaching and learning?
What is direct manipulation, also referred to as learnable progr... | Bret Victor's concepts of learnable programming and direct manipulation are revolutionary approaches to how we interact with code and the learning process. Here’s a breakdown of these concepts and some examples of software that embody these principles:
### Key Concepts
1. **Learnable Programming**: This idea focuses ... | [
{
"from": "human",
"value": "I read something on this site, that lead me to read about Bret Victor's learnable programming and direct manipulation.\nI was wondering if anyone has used any software like this.\nWhat software have we used? What effect did it have on teaching and learning?\nWhat is direct manip... |
I run a workshop with a few students. They often do large projects alone that they inevitably run into trouble with. That's completely normal, it's why they need some help in the workshop.
As the instructor, I usually spot the issue and solution pretty quickly. I try and nudge the student in the correct direction, but ... | It's great that you want to help your students while also ensuring they gain the skills and knowledge necessary for their projects. Here are some strategies to encourage student independence and allow them to learn effectively:
1. **Ask Guiding Questions**: Rather than providing solutions, ask questions that guide stu... | [
{
"from": "human",
"value": "I run a workshop with a few students. They often do large projects alone that they inevitably run into trouble with. That's completely normal, it's why they need some help in the workshop.\nAs the instructor, I usually spot the issue and solution pretty quickly. I try and nudge ... |
Privacy is a very big issue in the present world. People unknowingly share personal information and pictures on social media and have to face many issues. Nowadays even 14 to 15-year-old people have social media accounts. They tend not to be aware of the privacy threats (mainly for girls).
While giving an introduction ... | Your instinct to address privacy concerns early in the introduction to the Internet is indeed a wise approach. Here are several reasons why it's beneficial to incorporate a discussion about privacy right from the start:
1. **Awareness**: Introducing privacy issues early can help raise awareness among young users about... | [
{
"from": "human",
"value": "Privacy is a very big issue in the present world. People unknowingly share personal information and pictures on social media and have to face many issues. Nowadays even 14 to 15-year-old people have social media accounts. They tend not to be aware of the privacy threats (mainly ... |
Are there any advantages to using small microcontrollers (such as an Arduino, etc.) with tactile, physical I/O (such as buttons, LEDs, robotic actuators, etc.)? For instance, does it help create more interest in learning computer programming, or widen the potential audience among kids and undergrads for going further i... | Yes, using small microcontrollers like Arduino, Raspberry Pi, or similar devices with tactile, physical I/O components (such as buttons, LEDs, and robotic actuators) offers several advantages that can enhance interest in learning computer programming and can widen the potential audience among kids and undergraduates fo... | [
{
"from": "human",
"value": "Are there any advantages to using small microcontrollers (such as an Arduino, etc.) with tactile, physical I/O (such as buttons, LEDs, robotic actuators, etc.)? For instance, does it help create more interest in learning computer programming, or widen the potential audience amon... |
The kinds of things that people with technical training can do have societal impacts, both for good and evil. Programmers are building the future. One future nightmare is Skynet.
Many problems in the world have been caused by scientific hubris as well as the Fallacy of the Last Move, a concept from Game Theory as it a... | Integrating ethics into the education of future software developers is essential, not only to prevent potential misuse of technology but also to foster a sense of responsibility and accountability within the tech community. Here are some key ethical practices students need to be trained in, methods for integrating thes... | [
{
"from": "human",
"value": "The kinds of things that people with technical training can do have societal impacts, both for good and evil. Programmers are building the future. One future nightmare is Skynet. \nMany problems in the world have been caused by scientific hubris as well as the Fallacy of the Las... |
A fellow teacher of mine is teaching "basic algorithms" course in high school, and we have quite conflicting opinions when it comes to returning from functions.
She restricts return only to the end of the function, and permits no other way to escape functions. No block guards, too, and no breaking loops using return.
T... | Both approaches to returning from functions have their merits, and the right choice often depends on the context of the problem and the preference for clarity versus simplicity. Let's break down the pros and cons of each approach and consider how they might be applied effectively in a teaching setting.
### Single Entr... | [
{
"from": "human",
"value": "A fellow teacher of mine is teaching \"basic algorithms\" course in high school, and we have quite conflicting opinions when it comes to returning from functions.\nShe restricts return only to the end of the function, and permits no other way to escape functions. No block guards... |
It can be perplexing for students to begin counting at 0 when they enter a CS class. I made it a point over and over to talk about "Day 0" and "Week 0" in the opening days and weeks just to build familiarity with the idea. Even so, I sought when explaining this idea to ground it in some real-life/non-CS example where w... | That’s a great initiative to help students acclimate to 0-indexing! Here are a few real-life examples where we can observe 0-indexing outside of computer science:
1. **Calendars (Months)**: If we consider months, in programming languages like Python or JavaScript, months are often indexed starting from 0. So, January ... | [
{
"from": "human",
"value": "It can be perplexing for students to begin counting at 0 when they enter a CS class. I made it a point over and over to talk about \"Day 0\" and \"Week 0\" in the opening days and weeks just to build familiarity with the idea. Even so, I sought when explaining this idea to groun... |
In a course about Fundamental Computer Science, which includes Turing Machines,
how many questions like "Construct a Turing Machine that does X" should I include?
There should be at least a few basic constructions, like doubling a string of ones or checking whether a number is even, checking whether one number is large... | When designing a course on Turing Machines, especially within the context of Fundamental Computer Science, it's essential to strike a balance between foundational concepts and challenging applications. Here’s a breakdown of considerations for the types and number of Turing Machine construction questions you might inclu... | [
{
"from": "human",
"value": "In a course about Fundamental Computer Science, which includes Turing Machines,\nhow many questions like \"Construct a Turing Machine that does X\" should I include?\nThere should be at least a few basic constructions, like doubling a string of ones or checking whether a number ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.