Skip to content

Commit

Permalink
doc solutions updated
Browse files Browse the repository at this point in the history
  • Loading branch information
trayburn committed Sep 13, 2019
1 parent eb0308e commit c4c6469
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 24 deletions.
2 changes: 1 addition & 1 deletion docs/_posts/2011-01-02-Numbers-Kihon.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
title: Numbers Kihon
---
```
```cs
protected override int Return_The_Maximum_Value_Of_Int32()
{
return int.MaxValue;
Expand Down
2 changes: 1 addition & 1 deletion docs/_posts/2011-01-19-String-Kihon.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
title: String Kihon
---
```
```cs
protected override string Convert_To_Uppercase(string data)
{
return data.ToUpper();
Expand Down
2 changes: 1 addition & 1 deletion docs/_posts/2011-01-20-Console-Kihon.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
title: Console Kihon
---
```
```cs
protected override void Write_FooBar_To_The_Console(IConsoleWrapper console)
{
console.Write("FooBar");
Expand Down
2 changes: 1 addition & 1 deletion docs/_posts/2011-01-22-Control-Structures-Kihon.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
title: Control Structures Kihon
---
```
```cs
protected override void Call_Hit_On_a_If_val_Is_True_Else_Call_Hit_On_b(bool val, ITarget a, ITarget b)
{
if (val) a.Hit();
Expand Down
2 changes: 1 addition & 1 deletion docs/_posts/2011-02-26-Sql-Kihon.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
title: SQL Kihon
---
```
```cs
protected override string Select_All_Fields_And_Rows_From_Person()
{
return "SELECT * FROM PERSON";
Expand Down
34 changes: 17 additions & 17 deletions docs/_posts/2011-03-26-Linq-Kihon.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
layout: default
title: Linq Kihon
---
```
protected override IEnumerable<int> Select_the_Something_property_from_list(List<Product> list)
{
return list.Select(x => x.Something);
}
```cs
protected override IEnumerable<int> Select_the_Something_property_from_list(List<Product> list)
{
return list.Select(x => x.Something);
}

protected override IEnumerable&lt;Product&gt; Order_the_list_by_the_something_property_descending(List&lt;Product&gt; list)
{
return list.OrderByDescending(x =&gt; x.Something);
}
protected override IEnumerable<Product> Order_the_list_by_the_something_property_descending(List<Product> list)
{
return list.OrderByDescending(x => x.Something);
}

protected override IEnumerable&lt;Product&gt; Order_the_list_by_the_something_property(List&lt;Product&gt; list)
{
return list.OrderBy(x =&gt; x.Something);
}
protected override IEnumerable<Product> Order_the_list_by_the_something_property(List<Product> list)
{
return list.OrderBy(x => x.Something);
}

protected override IEnumerable&lt;Product&gt; Filter_the_products_where_something_is_equal_to_2_from_list(List&lt;Product&gt; list)
{
return list.Where(x =&gt; x.Something == 2);
}
protected override IEnumerable<Product> Filter_the_products_where_something_is_equal_to_2_from_list(List<Product> list)
{
return list.Where(x => x.Something == 2);
}
```
44 changes: 42 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,40 @@
---
title: Squire
---
## License
## Summary

Squire is a project meant to allow students to drill the syntax of C#
and help with retention of that syntax. This is accomplished by using MSTest
tests which evaluate the answers to the drill automatically, allowing a student
to receive feedback without the direct involvement of an instructor.

### How to use as a Student

Clone this repository locally, open the project in Visual Studio, then open your
first drill (we recommend `StringKihon`). Attempt to fill in all of the methods
with correct answers, then run all of the Unit Tests (`Ctrl-R-A` by default).
Any Unit Test which does not pass indicates you have an incorrect answer which
you should revisit.

### How to use as an Instructor

We recommend using these drills to supplement actual classroom education. We
generally will time box any given run of these drills (we use 30 minutes) at the
end of which you should review all of the correct answers with the student.

If you reach the point of needing to know the correct answer and your instructor
is not available, then this page contains solutions to all of the Kihons below.

<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
### What is a Kihon?

Kihon is a term borrowed from the Martial Arts, just as Kata is also borrowed.
[Wikipedia defines it as follows](https://en.wikipedia.org/wiki/Kihon):

> Kihon (基本, きほん) is a Japanese term meaning "basics" or "fundamentals." The term is used to refer to the basic techniques that are taught and practiced as the foundation of most Japanese martial arts. Kihon in martial arts can be seen as analogous to basic skills in, for example, basketball.
These drills are meant to reinforce the fundamentals, they are not a complex form
meant to recreate real world scenarios (the rough definition of Kata) but instead
are the foundational skills.

## Solutions
<ul>
Expand All @@ -13,3 +44,12 @@ title: Squire
</li>
{% endfor %}
</ul>

## License

<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
</a>
<br />
This work is licensed under a
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.

0 comments on commit c4c6469

Please sign in to comment.