forked from c4cs/c4cs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
964 lines (934 loc) · 35.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
---
layout: default
---
<div class="jumbotron">
<p>This 1-credit seminar is designed to teach the essentials of using a
computer effectively for EECS students. While the target audience is CS/CE/DS
students, any student wishing to learn how to use their computer much more
effectively is encouraged to join. Topics covered include shells, environment,
scripting, Makefiles, compilers, debugging tools, and version control. The
last month of the course will be open to student input for remaining useful
topics to cover.</p>
</div>
<div class="alert alert-info">
<h3 style="margin-top: 0px; font-weight: bold;">Updates</h3>
{% comment %} Do math on unix timstamps to process in liquid {% endcomment %}
{% assign onemonthago = 'now' | date: '%s' | minus: 2592000 %}
{% for update in site.categories.updates %}
{% comment %} No int filter, use benign math to coerce from string {% endcomment %}
{% assign update_date = update.date | date: '%s' | times: 1 %}
{% if update_date > onemonthago %}
{{ update.output }}
{% endif %}
{% endfor %}
<p><a onclick='$("#old-updates").show(); $(this).hide()'>[+] Show older updates</a></p>
<div id="old-updates" style="display: none">
{% for update in site.categories.updates %}
{% comment %} No int filter, use benign math to coerce from string {% endcomment %}
{% assign update_date = update.date | date: '%s' | times: 1 %}
{% if update_date <= onemonthago %}
{{ update.output }}
{% endif %}
{% endfor %}
</div><!-- old-updates -->
</div>
<!--
<div class="alert alert-success" style="text-align: center">
<h2>Registration Information</h2>
<h4>The course numbers in Wolverine Access are <strong>31938</strong> for 003,
<strong>34428</strong> for 004, and <strong>34525</strong> for 005.</h4>
<h4>Be sure to register only for <strong>sections 003, 004, or 005</strong>, the other
398 sections are different courses!</h4>
<hr />
<h4 style="text-align: right">For any other questions, email me at <a href="mailto:[email protected]">[email protected]</a></h4>
</div>
-->
<hr />
<h2><a class="anchor" name="prereqs"></a>Course Pre-Requisites</h2>
The only enforced pre-requisite for this course is ENGN 101/151 or
EECS 182/183, however it is advised that students have either taken or are
concurrently enrolled in EECS 280. A basic understanding of programming
(if/else, for, while) and a passing familiarity with a compiler and command
prompt is the only expected background.
<h2><a class="anchor" name="syllabus"></a>Syllabus & Essential Info</h2>
<h3>Course Staff</h3>
<div class="table-responsive">
<table class="table staff-table">
<tr>
<td><img src="/static/img/ppannuto-square.jpg" /></td>
<td><img alt="@marcus-darden" class="avatar" src="https://avatars1.githubusercontent.com/u/1323862?v=3&s=120"></td>
<td><img src="/static/img/mxsmith-square.jpg" /></td>
<td><img src="/static/img/sniderdj-square.jpg" /></td>
<td><img src="/static/img/wkhan-square.jpg" /></td>
<td><img src="/static/img/mterwil-square.jpg" /></td>
<td><img src="/static/img/thealex-square.jpg" /></td>
<td><img src="/static/img/malihuss-square.jpg" /></td>
</tr>
<tr>
<td>Pat Pannuto</td>
<td>Marcus Darden</td>
<td>Max Smith</td>
<td>David Snider</td>
<td>Waleed Khan</td>
<td>Matt Terwilliger</td>
<td>Alex Chojnacki</td>
<td>Mo Hussein</td>
</tr>
</table>
</div>
<h3>Course Resources</h3>
<h4>Course Q&A / Forum – <a href="https://piazza.com/class/ij1jghks3dr59n" target="_blank">Piazza</a></h4>
<h4>Assignment Submission & Grades – <a href="https://gradescope.com/courses/2248" target="_blank">Gradescope</a></h4>
<!--
<p>For most questions, please use <a href="https://piazza.com/class/ij1jghks3dr59n" target="_blank">piazza</a>
so that all students may benefit from the question and answer. To reach the course staff, please e-mail
<a href="mailto:[email protected]">[email protected]</a>.
-->
<p>To borrow a CSE laptop for the semester, contact Don Winsor at <a href="mailto:[email protected]">[email protected]</a>.</p>
<p>
For general issues, e-mail the course staff at <a href="mailto:[email protected]">[email protected]</a>.
For sensitive issues, please e-mail me directly at <a href="mailto:[email protected]">[email protected]</a>.
</p>
<h3><a class="anchor" name="times"></a>Course Meeting Times and Locations</h3>
<dl class="dl-horizontal">
<dt>Section 003</dt>
<dd>1571 GGBL, Friday 1:30-2:30</dd>
<dt>Section 004</dt>
<dd>1571 GGBL, Friday 2:30-3:30</dd>
<dt>Section 005</dt>
<dd>1013 DOW, Friday 11:00-12:00</dd>
</dl>
<p>In general, you may attend any section, however if the classrooms become
overfull, we will have to ask that you attend the section you are officially
registered for.</p>
<div id='calendar-loading'>Loading calendar...</div>
<div id='calendar'></div>
<a href="https://calendar.google.com/calendar/embed?src=4a0vvtkg11f6g0qs2er37gkkf8%40group.calendar.google.com&ctz=America/New_York" class="pull-right" target="_blank">Google Calendar link</a>
<h3>Syllabus</h3>
<div class="alert alert-warning">
<span class="glyphicon glyphicon-warning-sign"></span>
As this is a new class, the syllabus is subject to change in response to
feedback and class needs throughout the term.
</div>
<div class="table-responsive">
<table class="table">
<tr>
<th></th>
<th></th>
<th style="min-width: 300px;">Topic</th>
<th style="min-width: 400px;">Lecture Materials</th></tr>
<tr>
<th class="week">Week 1</th>
<td>1/8</td>
<td rowspan="2">Welcome to Computing for Computer Scientists
<ul>
<li>Course goals, philosophy, and background</li>
<li>Administrivia</li>
<li>What is a computer?</li>
</ul>
</td>
<td rowspan="2">
Slides
<ul>
<li><a href="/lec/c4cs-wk1-slides.pptx">pptx</a></li>
<li><a href="/lec/c4cs-wk1-slides.pdf">pdf</a></li>
</ul>
Video
<ul>
<li><a href="https://leccap.engin.umich.edu/leccap/viewer/r/iKI1z7">Slides + Video</a></li>
</ul>
</td>
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
<p><a href="/hw/c4cs-wk1-homework.pdf">Homework 1 [pdf]</a></p>
<p><a href="/hw/c4cs-wk1-homework.tex">Homework 1 [tex]</a></p>
<p><a href="/hw/c4cs-wk1-advanced.pdf">Advanced Exercise 1 [pdf]</a></p>
<p><a href="/hw/c4cs-wk1-advanced.tex">Advanced Exercise 1 [tex]</a></p>
</td>
</tr>
<tr>
<th class="week">Week 2</th>
<td>1/15</td>
<td rowspan="2">
<p>Shells and environment, basic scripting</p>
<ul>
<li>Unix history, especially in the context of tools</li>
<li>The job of a shell</li>
<li>$HOME, $PATH, etc</li>
<li>history, Ctrl-R, etc</li>
<li>.bashrc, alias, export</li>
<li>shell variables and functions</li>
<li>basic flow control</li>
</ul>
</td>
<td rowspan="2">
<p>This week's lecture focused on “the job of a shell”,
specifically how programs are launched.
The lecture format is a bit of a “choose your own adventure”
as students in class ask questions. The 11 and 1:30
lectures spent more time and detail on the window
manager and 2:30 lecture went a little more in depth on
the behavior of the shell and environment.</p>
<p>Lecture (11a-12p)</p>
<ul>
<li><a href="/lec/20160115/lecture-20160115.txt">Terminal</a></li>
<li><a href="/lec/20160115/firefox.desktop">firefox.desktop</a></li>
<li><a href="/lec/20160115/foo.sh">foo.sh</a></li>
<li><a href="/lec/20160115/banana.gif">banana.gif</a></li>
</ul>
<p>Lecture (1:30p-2:30p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/di9ZiI" target="_blank">Lecture Video</a></li>
<li><a href="/lec/c4cs-wk2-terminal-log-sec003.html">Terminal Capture</a></li>
</ul>
<p>Lecture (2:30p-3:30p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/QKm6xd" target="_blank">Lecture Video</a></li>
<li><a href="/lec/c4cs-wk2-terminal-log-sec004.html">Terminal Capture</a></li>
</ul>
<p><small><i>Note: The tool I used to capture my terminal input and output from the afternoon lectures was not the best, it is a little hard to read. I apologize for that, I will try to find something better for future weeks.</i></small></p>
</td>
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
<p><a href="/hw/c4cs-wk2-homework.pdf">Homework 2 [pdf]</a></p>
<p><a href="/hw/c4cs-wk2-homework.tex">Homework 2 [tex]</a></p>
<p><a href="/hw/c4cs-wk2-advanced.pdf">Advanced Exercise 2 [pdf]</a></p>
<p><a href="/hw/c4cs-wk2-advanced.tex">Advanced Exercise 2 [tex]</a></p>
<hr />
<p><a href="/hw/c4cs-wk2-homework-solutions.pdf">Solutions 2 [pdf]</a></p>
</td>
</tr>
<tr>
<th class="week">Week 3</th>
<td>1/22</td>
<td rowspan="2">
<p><strong>Editors</strong></p>
<p>Lecture</p>
<ul>
<li>Origin and purpose</li>
<li>Diversity of editors</li>
<li>Text editor vs program that edits text</li>
<li>Why terminal-based text editors are still relevant</li>
<li>Why terminal-based text editors are not relevant anymore</li>
</ul>
<p>Homework</p>
<ul>
<li>A little on text editing without opening an editor</li>
<li>Basic operation of “the big two”</li>
<li>Semi-guided exploration of editor capabilities</li>
</ul>
<p>Advanced</p>
<ul>
<li>Extending text-based editors: Deep integration with code</li>
<li>Extending text-based editors: Third-party additions</li>
<li>Extending IDEs: Recovering text-based editor interfaces</li>
</ul>
</td>
<td rowspan="2">
<p>This week's lecture focused on “editors”.
Lecture opened with an example of an editor most people
do not often see or use, a hex editor, and demonstrated
how we can edit compiled binaries directly to change
their behavior. Then we played with one of the first
text editors, <tt>ed</tt>. The homework explores how
some of <tt>ed</tt>'s interfaces live on today. From
there we talked about the mental model of a software
developer when editing software and how editors play
into that. Finally, we closed lecture with a discussion
on the distinction between text editors and source code
editors, which of those are included in Integrated
Development Environments (IDEs), and whether that is the
right choice. The advanced homework explores how to
bridge this gap in both directions, from source editor
to IDE and from IDE with text editor to IDE with source
editor.
</p>
<p>Lecture (11a-12p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/SrqIP4" target="_blank">Lecture Video</a></li>
<li><a href="/lec/2016-01-22/sec005-top.html">Top Terminal</a></li>
<li><a href="/lec/2016-01-22/sec005-bot.html">Bottom Terminal</a></li>
</ul>
<p>Lecture (1:30p-2:30p)</p>
<ul>
</ul>
<p>Lecture (2:30p-3:30p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/5KhU9V" target="_blank">Lecture Video</a></li>
<li><a href="/lec/2016-01-22/sec004-top.html">Top Terminal</a></li>
<li><a href="/lec/2016-01-22/sec004-bot.html">Bottom Terminal</a></li>
</ul>
<p><small><i>I used two terminal windows to show things
side-by-side during lecture. If you are
reviewing the terminal output, I recommend
opening both and scrolling in parallel.</i></small></p>
</td>
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
<p><a href="/hw/c4cs-wk3-homework.pdf">Homework 3 [pdf]</a></p>
<p><a href="/hw/c4cs-wk3-homework.tex">Homework 3 [tex]</a></p>
<p><a href="/hw/c4cs-wk3-advanced.pdf">Advanced Exercise 3 [pdf]</a></p>
<p><a href="/hw/c4cs-wk3-advanced.tex">Advanced Exercise 3 [tex]</a></p>
<hr />
<p><a href="/hw/c4cs-wk3-homework-solutions.pdf">Solutions 3 [pdf]</a></p>
</td>
</tr>
<tr>
<th class="week">Week 4</th>
<td>1/29</td>
<td rowspan="2">
<p><strong>Revision Control Basics & Git</strong></p>
<p>Lecture</p>
<ul>
<li>What's version control?</li>
<li>Why is it important?</li>
<ul><li>Thought Exercise: Why doesn’t everything have version control?</li></ul>
<li>Today's VCS of choice: git</li>
<li>Git fundamentals</li>
<li>Advanced git highlights</li>
<li>The era of social coding</li>
</ul>
<p>Homework</p>
<ul>
<li>Intro tutorial to git</li>
<li>Setting up a class project with git</li>
<li>Basic usage and configuration</li>
</ul>
<p>Advanced</p>
<ul>
<li>Rescuing repositories in bad states</li>
<li>Commit hooks</li>
</ul>
</td>
<td rowspan="2">
<p>This week we introduced version control. We talked a
little about what it means to be a version control
system, what the fundamental primitives of version
control are, and showed at the very end the powerful
constructs you can build on version control.</p>
<p>We spent the bulk of lecture doing a deep dive on
the basic operation <tt>git</tt>. We start by
introducing the three major logical concepts in
<tt>git</tt>, the working directory, the staging area,
and the repository. Next we explore how the various
commands move <em>changesets</em> or diffs between these
three places.</p>
<p>The major commands we covered were
<tt>status</tt>,
<tt>add</tt>,
<tt>reset</tt>,
<tt>commit</tt>,
<tt>checkout</tt>, and
<tt>diff</tt>.
<p>Lecture (11a-12p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/Vk3p56" target="_blank">Lecture Video</a></li>
</ul>
<p>Lecture (2:30p-3:30p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/vDFqVu" target="_blank">Lecture Video</a></li>
</ul>
</td>
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
<p><a href="/hw/c4cs-wk4-homework.pdf">Homework 4 [pdf]</a></p>
<p><a href="/hw/c4cs-wk4-homework.tex">Homework 4 [tex]</a>
<a href="/hw/badge.png">[png]</p>
<p><a href="/hw/c4cs-wk4-advanced.pdf">Advanced Exercise 4 [pdf]</a></p>
<p><a href="/hw/c4cs-wk4-advanced.tex">Advanced Exercise 4 [tex]</a></p>
<p><center><strong>– – –</strong></center></p>
<a class="anchor" name="bonus1"></a>
<p><a href="/hw/c4cs-bonus1-advanced.pdf">Bonus Advanced [pdf]</a></p>
<p><a href="/hw/c4cs-bonus1-advanced.tex">Bonus Advanced [tex]</a></p>
<hr />
<p><a href="/hw/c4cs-wk4-homework-solutions.pdf">Solutions 4 [pdf]</a></p>
</td>
</tr>
<tr>
<th class="week">Week 5</th>
<td>2/5</td>
<td rowspan="2">
<p><strong>Shells II, Unix Tools & Philosophy</strong></p>
<p>Lecture</p>
<ul>
<li>Lines of text as a universal interface</li>
<li>Examples of unix commands and command synthesis</li>
</ul>
<p>Homework</p>
<ul>
<li>Basics of regular expressions</li>
<li>Guided intro to some tools</li>
<li>Synthesizing tools into powerful queries</li>
</ul>
<p>Advanced</p>
<ul>
<li>Shell scripting</li>
<li>(Basic) shell job control</li>
<li>Automated testing</li>
</ul>
</td>
<td rowspan="2">
<p>This week opened with a recap of commmand that have
been encountered by the course thus far. Stay tuned for
a post about that coming soon.</p>
<p>The focus of lecture this week shifted a little to
trying to learn <em>how</em> to learn about a new
tool. Specifically, we started from the notion of,
given that <tt>tr</tt> is a “cool command”
that you should learn about, what are the effective ways
to learn about how a tool behaves?</p>
<p>At the end of lecture, we explored how we can chain
together individually simple commands to build powerful
constructs. The homework explores this topic is a guided
manner as well.</p>
<p>Lecture (11a-12p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/d9hiSY" target="_blank">Lecture Video</a></li>
</ul>
<p>Lecture (2:30p-3:30p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/UbPrJM" target="_blank">Lecture Video</a></li>
</ul>
<p><a href="/static/list.txt">Combined list of commands encountered thus far</a></p>
</td>
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
<p><a href="/hw/c4cs-wk5-homework.pdf">Homework 5 [pdf]</a></p>
<p><a href="/hw/c4cs-wk5-homework.tex">Homework 5 [tex]</a>
<a href="/hw/notification.png">[png]</p>
<p><a href="/hw/c4cs-wk5-advanced.pdf">Advanced Exercise 5 [pdf]</a></p>
<p><a href="/hw/c4cs-wk5-advanced.tex">Advanced Exercise 5 [tex]</a></p>
<hr />
<p><a href="/hw/c4cs-wk5-homework-solutions.pdf">Solutions 5 [pdf]</a></p>
<p><small>2/19: <a href="https://github.com/c4cs/assignments/commit/0131f247528f0e6dc2547ebeb49bf1f1a233cae6">Minor corrections</a> to the solutions.</small></p>
</td>
</tr>
<tr>
<th class="week">Week 6</th>
<td>2/12</td>
<td rowspan="2">
<p><strong>Build Systems</strong></p>
<p>Lecture</p>
<ul>
<li>Conceptual model for a build system</li>
<li>HW2 script, what <em>didn’t</em> it do?</li>
<li>Basic operation of <tt>make</tt></li>
<ul>
<li>syntax, goals, targets, rules, variables (yours and make's)</li>
</ul>
</ul>
<p>Homework</p>
<ul>
<li>Basic operation</li>
<li>Understanding goals and targets</li>
<li>Built-ins and implicit rules</li>
<small>
<ul>
<li>Guided digging into how a tool works</li>
</ul>
</small>
</ul>
<p>Advanced</p>
<ul>
<!--<li>Introduction to <tt>autotools</tt> and the rest of the traditional deployment ecosystem</li>-->
<li><tt>gcc</tt> and <tt>make</tt> integration</li>
<li>Exploring alternative build systems</li>
</ul>
</td>
<td rowspan="2">
<p>This week we focused on build systems- which sound crazy complicated,
but are actually built realized by simple concepts like graphs and
variables. In lecture, we started off by asking "What is a build system?
Why do they matter? What do they help us do?"</p>
<p>In the simplest case, a build system allows you to save build or
compilation commands to variable names like 'all_tests' or 'submit'.
This saves us from trying to remember the gcc arguments for each type
of executable or test we want to make or run.</p>
<p>In class, we focused on the 'make' program, which is a build system
everyone should be familiar with from 280 and 281. We talked about the
syntax of 'make' in terms of targets, dependencies, and rules, and
demonstrated it's behavior with a quick example composed of shell
scripts.</p>
<p>Lecture (11a-12p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/otqrkS" target="_blank">Lecture Video</a></li>
</ul>
<p>Lecture (2:30p-3:30p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/e7L78G" target="_blank">Lecture Video</a></li>
</ul>
</td>
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
<p><a href="/hw/c4cs-wk6-homework.pdf">Homework 6 [pdf]</a></p>
<p><a href="/hw/c4cs-wk6-homework.tex">Homework 6 [tex]</a>
<p><a href="/hw/c4cs-wk6-advanced.pdf">Advanced Exercise 6 [pdf]</a></p>
<p><a href="/hw/c4cs-wk6-advanced.tex">Advanced Exercise 6 [tex]</a></p>
<hr />
<p><a href="/hw/c4cs-wk6-homework-solutions.pdf">Solutions 6 [pdf]</a></p>
</td>
</tr>
<tr>
<th class="week">Week 7</th>
<td>2/19</td>
<td rowspan="2">
<p><strong>Debuggers I</strong></p>
<p>Lecture <em>(<a href="/static/lecture/wk7-gdb.pdf">lecture notes</a>)</em></p>
<ul>
<li>(Midterm course evaluation feedback)</li>
<li>What a debugger (the tool) does</li>
<li>What a debugger (the tool) doesn’t do</li>
<li>What a debugger (a person) must do</li>
<li>How to reason about debugging a problem?</li>
<li>Open: Things that “can’t” be debugged?
</ul>
<p>Homework</p>
<ul>
<li>Building a mental model for debugging</li>
<li>Introducing valgrind</li>
</ul>
<!--
<p>Advanced</p>
<ul>
<li>Extending gdb to understand your data structures</li>
<li>A tool we won't have time to cover (gprof? gcov?)</li>
</ul>
-->
</td>
<td rowspan="2">
<p>This week we talked about debuggers, specifically the gdb debugging
utility. This lecture is a little different as early labs in other EECS
classes have already introduced gdb, so everyone should already have at
least a passing familiarity with gdb. What we try to go through in
lecture then is to understand the primitives that gdb provides –
the way that gdb lets us examine and modify machine state – and how
to stitch those primitives together to debug.</p>
<p>Said differently, recall that debugging is essentially a search
problem: At the beginning you have a program starting to run with some
inputs and at the end you have the final state with the incorrect outputs.
Tracking down a bug requires finding when between a program's beginning
and end things went from being correct to incorrect. A debugger, such as
gdb, is a tool that lets you stop and examine any point in time between
the beginning and end. It is up to you, however, to point the tool to the
right points in time in order to identify where things went wrong.</p>
<p><small><em>If you were unable to attend lecture this week and are
watching online, I think the afternoon lecture was slightly smoother
this week and recommend that one.</em></small></p>
<p>Lecture (11a-12p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/l5PJDH" target="_blank">Lecture Video</a></li>
</ul>
<p>Lecture (2:30p-3:30p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/PcD1De" target="_blank">Lecture Video</a></li>
</ul>
<hr />
<p>
<a href="/static/lecture/wk7-gdb.pdf">Preliminary lecture notes</a>
–
<a href="/lec/wk7/math.c">math.c</a>
–
<a href="/lec/wk7/inf.c">inf.c</a>
</p>
</td>
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
<p><a href="/hw/c4cs-wk7-homework.pdf">Homework 7 [pdf]</a></p>
<p><a href="/hw/c4cs-wk7-homework.tex">Homework 7 [tex]</a>
<p><a href="/hw/c4cs-wk7-advanced.pdf">Advanced Exercise 7 [pdf]</a></p>
<p><a href="/hw/c4cs-wk7-advanced.tex">Advanced Exercise 7 [tex]</a>
<hr />
<p><a href="/hw/c4cs-wk7-homework-solutions.pdf">Solutions 7 [pdf]</a></p>
</td>
</tr>
<tr>
<th class="week">Week 8</th>
<td>2/26</td>
<td rowspan="2">
<p><strong>Optional Lecture: Building Basic Continuous Integration</strong></p>
<p>Together as a group, we're going to do
<a href="/hw/c4cs-wk5-advanced.pdf">Advanced Exercise 5</a>. The end
result here is pretty awesome. Every time you commit some work, in the
background, your code will automatically build, run all test cases, and
run some static analysis (tools that help catch bugs without even writing
tests!). When it's all done, it'll pop up a nice notification letting you
know how things went.
</p>
</td>
<td rowspan="2">
<p>This lecture was a little more intimate, in honor of spring break.</p>
<p>During class, we went through the thought process for how to approach
and complete Advanced Exercise 5. Posted here is a cleaned up and
commented version of the script we built in class.</p>
<p>Lecture (1:30p-2:30p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/szF0zv" target="_blank">Lecture Video</a></li>
</ul>
<hr />
<p>
<a href="https://gist.github.com/anonymous/877eede707f2889f4c59">post-commit-helper</a>
</p>
</td>
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
No homework, enjoy break!
</td>
</tr>
<tr><td colspan="4"><center><i>Spring Break</i></center></td></tr>
<tr>
<th class="week">Week 9</th>
<td>3/11</td>
<td rowspan="2">
<p><strong>Using Git Effectively</strong></p>
<p>Lecture</p>
<ul>
<li>Understanding branches</li>
<li>Basic merging</li>
<li>“Expanding the triangle”</li>
<ul>
<li>Push, <em>fetch</em>, pull</li>
<li>Remote branches and remotes as branches</li>
</ul>
<li>Synchronizing work (+stashing)</li>
<li>Commit everything, branch often</li>
<li>Cleaning history: Rebasing, squashing</li>
</ul>
<p>Homework</p>
<ul>
<li>Thinking in git</li>
<li>Practice with merging, conflicts</li>
<li>Practice rewriting history</li>
</ul>
<p>Advanced</p>
<ul>
<li>Using git to collaborate for real</li>
</ul>
<!--
<li>Logs, blame</li>
<li>Others: cvs, svn, hg, bzr</li>
<li>Meta: repo+git</li>
<li>Coverage ; “code coverage”</li>
-->
</td>
<td rowspan="2">
<a href="/lec/c4cs-wk9-notes.md">Lecture Notes</a>
<hr />
<div style="width:400px;overflow:scroll;">
<pre>
$ grep -A1 alias ~/.gitconfig
[alias]
graph = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"
$ grep -A1 alias ~/.gitconfig
[alias]
graph = log --graph --full-history --all --color --pretty=tformat:"%C(red)%h%C(reset)%x09%C(green)%d%C(reset)%C(bold)%s%C(reset)%C(yellow)(%an)%C(reset)"
</pre>
</div>
<!--
Lecture summary
<p>Lecture (11a-12p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/otqrkS" target="_blank">Lecture Video</a></li>
</ul>
<p>Lecture (2:30p-3:30p)</p>
<ul>
<li><a href="http://leccap.engin.umich.edu/leccap/viewer/r/e7L78G" target="_blank">Lecture Video</a></li>
</ul>
-->
</td>
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
<p><a href="/hw/c4cs-wk9-homework.pdf">Homework 9 [pdf]</a></p>
<p><a href="/hw/c4cs-wk9-homework.tex">Homework 9 [tex]</a>
<p><a href="/hw/c4cs-wk9-advanced.pdf">Advanced Exercise 9 [pdf]</a></p>
<p><a href="/hw/c4cs-wk9-advanced.tex">Advanced Exercise 9 [tex]</a></p>
<!--
<hr />
<p><a href="/hw/c4cs-wk9-homework-solutions.pdf">Solutions 9 [pdf]</a></p>
-->
</td>
</tr>
<tr>
<th class="week">Week 10</th>
<td>3/18</td>
<td rowspan="2">
<p>Advanced tools</p>
<ul>
<li>More gdb, valgrind</li>
<li>how to use valgrind effectively (suppression, useful flags, instrumentation macros)</li>
<li>and... the judicious printf (#define DBG and other tricks)</li>
<li>gprof, gcov</li>
</ul>
</td>
<td rowspan="2"></td>
<!--
<li>Checkout and commit to our repositories (ssh,afs)</li>
<li>Create a repository in your afs space, make sure the group ppannuto:298staff has access</li>
<li><b>EC: </b>Submit a patch to the linux kernel (<a href="http://kernelnewbies.org/">kernelnewbies.org</a>)</li>
-->
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
</td>
</tr>
<tr>
<th class="week">Week 11</th>
<td>3/25</td>
<td rowspan="2">
<p>Open: Guided by course interest</p>
<p><a href="https://docs.google.com/a/umich.edu/forms/d/1bEdFiOZ1w_6aT1XgmvX2CLVPU1vlvbllrJVKq5Ago7g/viewform" target="_blank">Suggest a topic here!</a></p>
</td>
<td rowspan="2"></td>
<!--
<li>Install any compiler other than gcc for x86/x64</li>
<li>Set up your Makefiles from last week to use this compiler</li>
<li><b>EC: </b>Have your Makefile check an environment variable to pick compilers</li>
<li><b>EC: </b>Show which bugs from hw/debugging/ could also have been found via static analysis</li>
-->
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
</td>
</tr>
<tr>
<th class="week">Week 12</th>
<td>4/1</td>
<td rowspan="2">
<p>Open: Guided by course interest</p>
<p><a href="https://docs.google.com/a/umich.edu/forms/d/1bEdFiOZ1w_6aT1XgmvX2CLVPU1vlvbllrJVKq5Ago7g/viewform" target="_blank">Suggest a topic here!</a></p>
</td>
<td rowspan="2"></td>
<!--
<p>File systems, permissions, AFS, SSH, Kerberos</p>
<ul>
<li>ntfs vs extN vs hfs+ vs fat32</li>
<li>vs afs</li>
<li>permissions + tools</li>
<li>ssh - keygen, authorized_keys, etc</li>
</ul>
-->
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
</td>
</tr>
<tr style="background-color: #ffa">
<th class="week">Final Exam</th>
<td><strong>Monday</strong> April 4<br />7:00-8:30</td>
<td colspan="2">If you need any special accommodations, please let us know <a href="https://docs.google.com/a/umich.edu/forms/d/1Q6AtevV1kuffjf8HT3ZZhI9SGTqjYY_Cfh4GL6cPkZw/viewform" target="_blank">here</a> by March 20th.</td>
</tr>
<tr>
<th class="week">Week 13</th>
<td>4/8</td>
<td rowspan="2">
<p>Open: Guided by course interest</p>
<p><a href="https://docs.google.com/a/umich.edu/forms/d/1bEdFiOZ1w_6aT1XgmvX2CLVPU1vlvbllrJVKq5Ago7g/viewform" target="_blank">Suggest a topic here!</a></p>
</td>
<td rowspan="2"></td>
<!--
<p>Compilers beyond gcc (clang, cross-compilers, static analyzers)</p>
<ul>
<li>Why?
<ul><li>(embedded systems, smartphones,
bug-checking...)</li></ul></li>
<li>Why is this so hard?
<ul><li>Limited user base, testing, etc</li></ul></li>
<li>Tips to make life less painful (combining previous materials)
<ul>
<li>Remember all that environment talk from Week 2...?</li>
<li>Then mix in some Makefile magic</li>
<li>Plus automated testing</li>
<li>Now add some commit hooks (post-commit background static analysis? Automated e-mail notifications, build-checking - Oh MY!)</li>
</ul></li>
</ul>
-->
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
</td>
</tr>
<tr>
<th class="week">Week 14</th>
<td>4/15</td>
<td rowspan="2">
<p>Open: Guided by course interest</p>
<p><a href="https://docs.google.com/a/umich.edu/forms/d/1bEdFiOZ1w_6aT1XgmvX2CLVPU1vlvbllrJVKq5Ago7g/viewform" target="_blank">Suggest a topic here!</a></p>
</td>
<td rowspan="2"></td>
</tr>
<tr>
<td colspan="2" class="syllabus-homework">
No homework, good luck on finals!
</td>
</tr>
</table>
</div><!-- table-responsive -->
<p>Some suggestions for special topics lectures:</p>
<ul>
<li>cron jobs</li>
<li>Python, Perl, <insert pet scripting language here>, ...</li>
<li>Personal Security / Integrity -- disk encryption, pgp, etc</li>
<li>Packaging (how to get your program into apt-get repositories)</li>
<li>Internet basics (routing, AS's, DNS, UDP, TCP, etc etc)</li>
<li>Internet tools, (nc, dig, nslookup, whois, etc)</li>
<li>LaTeX</li>
<li>Postscript</li>
</ul>
<h2><a class="anchor" name="grading"></a>Attendance, Grading, and Homework</h2>
<p>
This course is graded on a straight scale, it will not be curved.
Each component is graded independently and then combined into a final grade.
As example, a student with 19 attendance points, 16 homework points, 3 advanced
exercise points, and a 95% on the final exam would receive a final grade of
(3.67+3.33+4.0+.95*4.0) / 4.0 = 3.7, 3.7 > 3.67 → A.
</p>
<h3>Attendance (25%)</h3>
<p>Attendance is required for this course. Each lecture will begin with a
question from last week’s material. A correct answer is worth 2 points,
an incorrect answer is worth 1 point, and no answer is worth 0 points.
The week before spring break is optional with no attendance taken.
The maximum possible attendance score is thus 13 x 2 = 26.
</p>
<div class="table-responsive">
<table class="table grade-table">
<tr>
<th></th>
<th>A+ (4.33)</th>
<th>A (4.0)</th>
<th>A- (3.67)</th>
<th>B+ (3.33)</th>
<th>B (3.0)</th>
<th>B- (2.67)</th>
<th>C+ (2.33)</th>
<th>C (2.0)</th>
<th>C- (1.67)</th>
<th>D+ (1.33)</th>
<th>D (1.0)</th>
<th>F (0.0)</th>
</tr>
<tr>
<th>Attendance Points</th>
<td>24-26</td>
<td>20-23</td>
<td>18-19</td>
<td>16-17</td>
<td>14-15</td>
<td>12-13</td>
<td>10-11</td>
<td>8-9</td>
<td>6-7</td>
<td>4-5</td>
<td>2-3</td>
<td>0-1</td>
</tr>
</table>
</div>
<h3>Homeworks (25%)</h3>
<p>There are 12 homeworks in the course. Homework is due by the
<i>beginning</i> of the first lecture the week after it is assigned. Homeworks
will be graded on a {0,1,2} scale:</p>
<dl class="dl-horizontal">
<dt>0 points</dt><dd>No / very little effort</dd>
<dt>1 point<dd>A solid effort, but not complete</dd>
<dt>2 points<dd>Completed successfully</dd>
</dl>
<p>This is a 1 credit course and the homeworks are designed to be
commensurate with that. The goal of the homeworks is to reinforce concepts
introduced in lecture and to give hands-on experience working with tools.</p>
<p>An A student will have at least 18 total homework points (e.g. 6 1's and 6 2's).</p>
<div class="table-responsive">
<table class="table grade-table">
<tr>
<th></th>
<th>A+ (4.33)</th>
<th>A (4.0)</th>
<th>A- (3.67)</th>
<th>B+ (3.33)</th>
<th>B (3.0)</th>
<th>B- (2.67)</th>
<th>C+ (2.33)</th>
<th>C (2.0)</th>
<th>C- (1.67)</th>
<th>D+ (1.33)</th>
<th>D (1.0)</th>
<th>F (0.0)</th>
</tr>
<tr>
<th>Homework Points</th>
<td>22-24</td>
<td>20-21</td>
<td>18-19</td>
<td>16-17</td>
<td>14-15</td>
<td>12-13</td>
<td>10-11</td>
<td>8-9</td>
<td>6-7</td>
<td>4-5</td>
<td>2-3</td>
<td>0-1</td>
</tr>
</table>
</div>
<h3>Advanced Exercises (25%)</h3>
<p>Each homework will have at least one advanced exercise option. The intention
is to give a guided exploration of topics that people find most interesting.
These advanced exercises will also be a little more time consuming, have a little
less guidance, and require you to research and discover a little on your own.
Over the course of the semester, you are expected to do at least three of the
advanced exercises.</p>
<p>The advanced exercises are graded on a simple 0 or 1 system, either you did
the whole thing or you did not. Some weeks may have multiple advanced exercise
options, however you may only earn 1 advanced exercise point per week (though
that shouldn’t stop you from doing more if you are interested!).</p>
<div class="table-responsive">
<table class="table grade-table">
<tr>
<th></th>
<th class="grade-table">A+ (4.33)</th>
<th class="grade-table">A (4.0)</th>
<th class="grade-table">B (3.0)</th>
<th class="grade-table">C (2.0)</th>
<th class="grade-table">F (0.0)</th>
</tr>
<tr>
<th>Advanced Exercises Points</th>
<td>6+</td>
<td>3-5</td>
<td>2</td>
<td>1</td>
<td>0</td>
</tr>
</table>
</div>
<h3>Final Exam (25%)</h3>
<p><strong>Monday, April 4, 7:00-8:30</strong></p>
<p><i>Locations TBA</i></p>
<p>
The final exam will be cumulative over all of the whole term.
We have a 90-minute time slot for the exam.
This is a very broad course. The exam is not designed to be “tricky”
or test the esoteric corners of things presented in lecture. A student who
attended every lecture and completed all the homeworks will likely need minimal
studying for this exam.
</p>
<p>If you need any special accommodations, please let us know <a href="https://docs.google.com/a/umich.edu/forms/d/1Q6AtevV1kuffjf8HT3ZZhI9SGTqjYY_Cfh4GL6cPkZw/viewform" target="_blank">here</a> by March 20th.</p>
<h2><a class="anchor" name="links"></a>Useful Links / Resources</h2>
<ul>
<li><a href="http://c-faq.com/index.html">comp.lang.c FAQ</a>: Next time
you're bored, don't facebook, reddit, or google+; instead skim a
section. It's really interesting material, presented in short, easy
snippets</li>
<li><a href="http://stackoverflow.com">Stack Overflow</a>: Got a
problem? Try searching here instead of Google. Odds favor this site will
be the first result anyway, and it's answers are much more complete,
readable, and useful</li>
</ul>