Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 58

Questions with this tag relate to planning lessons for a specific purpose, such as teaching some coding paradigm or skill. Planning lessons in Computer Science depends on the context and level of the students. If it is a lesson which introduces a new topic, the tag [introductory-lesson] may also be appropriate.

1
vote
I think a case that hasn't been covered yet is the possibility of work being completed twice or work being lost due to a race condition. Here is an example to fill that gap: You have 2 groups of dogs …
answered Sep 10 by thesecretmaster
9
votes
10answers
In general, there are two ways arguments can be passed to a function. Functions can either be passed a reference to an object, or the value of that object. This is something that my students often str …
asked Jun 11 '17 by thesecretmaster
2
votes
I'd recommend giving them a test suite with their assignments from the beginning. That way, from the start they'll understand that testing code is something that can be done. The more interested stude …
answered Jun 21 '17 by thesecretmaster
5
votes
I find that a useful way of teaching the different types of loops is simply giving examples and asking student to express them more concisely. For example, I'd give my students a loops of the format: …
answered Jun 10 '17 by thesecretmaster
3
votes
A good analogy for this is passing a document of some sort to a friend. Here is how the analogy goes: I have a document. I want to give you (my friend) the document so you can make some changes and I …
answered Jun 11 '17 by thesecretmaster
14
votes
11answers
As someone who likes to advocate for best practices like correct use of VCS, indentation, sufficient commenting, and testing, I try and integrate them when I teach. But for all of these things, my stu …
asked Jun 4 '17 by thesecretmaster
4
votes
1answer
What is a User Script? Useful tasks like improving layout, fixing bugs, automating common tasks and adding new functions can all be done by userscripts. More complicated userscripts can create …
asked May 30 '17 by thesecretmaster
1
vote
An important reason why inline styles are bad is code readability, plain and simple. In this case, an example should be enough to prove your point: <style> body { padding:0; margin:0; } article { …
answered Aug 3 '17 by thesecretmaster
1
vote
I would recommend that you let them figure it out themselves, then explain how to improve upon it. That way some students are certain to have the wrong implementation or a non-optimal one, and that gi …
answered Jun 24 '17 by thesecretmaster
15
votes
8answers
When I try and teach web development to absolute beginners, I seem to always get a question about the roles of HTML/CSS/JS and about how the browser renders the HTML. It seems to me that the confusion …
asked May 23 '17 by thesecretmaster
33
votes
The best way to show your students that their work is vulnerable to SQL injection is to demonstrate it. I'd suggest that you challenge the students to "hack" each others projects using SQL injection. …
answered Jun 27 '17 by thesecretmaster
8
votes
This is a great explanation of why 0-indexing exists. As someone who barely knows what a pointer is, your explanation made perfect sense. If you wanted to dumb it down a little you could phrase it as: …
answered May 27 '17 by thesecretmaster
3
votes
An example which I think could be useful to you, both because it's a "ragged" array and because students are likely to see it again later if you talk about parsing text, is splitting text by line and …
answered Jan 10 by thesecretmaster