-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
1184 lines (1184 loc) · 52.8 KB
/
Copy pathindex.html
File metadata and controls
1184 lines (1184 loc) · 52.8 KB
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
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" type="text/css" href="styles.css" />
<link
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro"
rel="stylesheet"
/>
<title>Ric's Web Programming --- Spring 2019</title>
</head>
<body>
<div class="nav-bar">
<img
src="https://avatars0.githubusercontent.com/u/2062925"
alt="random logo"
class="logo"
/>
<h1 class="brand">Ric's Web Programming Class 2019 Spring</h1>
<!-- <div class="spacer"></div> -->
</div>
<div class="main">
<div class="post">
<h2 class="post-header">
Week #1 -- Class Introduction + Intro to HTML+CSS (02/20)
</h2>
<hr />
<h3>Lecture Notes</h3>
<ul class="single-list">
<li>
Class Introduction [<a
href="https://hackmd.io/p/r1z5QAKHN#/"
target="_blank"
>slides</a
>]
</li>
<li>
Introduction to Web Programming[<a
href="https://hackmd.io/p/ByirH0tr4#/"
target="_blank"
>slides</a
>]
</li>
<li>
Introduction to HTML and CSS[<a
href="https://hackmd.io/p/rJYD-_5BE#/"
target="_blank"
>slides</a
>]
</li>
</ul>
<h3>HTML + CSS practice</h3>
<ul class="single-list">
<li>
Please download
<a
href="https://ric2k1.github.io/W1_0220/practice/index.txt"
target="_blank"
>this</a
>
.txt file and make it a HTML file
</li>
<li>
A sample HTML output looks like
<a
href="https://ric2k1.github.io/W1_0220/practice/index.jpg"
target="_blank"
>this</a
>
</li>
<li>
Make the HTML file with CSS style files (styles.css)
</li>
<li>A sample HTML with CSS output looks like...</li>
</ul>
<h3>Practice Homework -- Practice01</h3>
<ul class="single-list">
<li>
Create a directory <b>Practice01</b> under
<b>WebProg2019</b>
</li>
<li>
Create <b>own</b> and <b>review</b> directories under
<b>Practice01</b>
</li>
<li>
In <b>own</b>, finish the in-class example and name the
files as <b>index.html</b> and <b>styles.css</b>
</li>
<li>
Remember to push to your github repo before deadline
</li>
<li>
Practice submission deadline:
<em>9pm, Sunday, 02/24</em>
</li>
<li>Review deadline: <em>9pm, Tuesday, 02/26</em></li>
<li>
HTML/CSS 作業沒有明確的規格,簡單的說:HTML
寫得盡量跟上面的圖長得一樣,CSS
則自由發揮,盡量美化網頁就好!
</li>
<li>不要使用現成的套件,或是像 JavaScript 等其他語言</li>
</ul>
</div>
<div class="post">
<h2 class="post-header">Week #2 Intro to JavaScript (02/27)</h2>
<hr />
<h3>Lecture Notes</h3>
<ul class="single-list">
<li>
Administrative Information [<a
href="https://hackmd.io/p/By1x-t7UV#/"
target="_blank"
>slides</a
>]
</li>
<li>
Recap from last week (HTML/CSS) [<a
href="https://hackmd.io/p/SyGKbayIV#/"
target="_blank"
>slides</a
>]
</li>
<li>
Introduction to JavaScript [<a
href="https://hackmd.io/p/rkMcmMxLN#/"
target="_blank"
>slides</a
>]
</li>
</ul>
<h3>JavaScript practice</h3>
<ul class="single-list">
<li>
Image Viewer [<a
href="https://hackmd.io/p/r1XOvZXUV#/"
target="_blank"
>slides</a
>]
</li>
</ul>
<h3>Practice Homework -- Practice02</h3>
<ul class="single-list">
<li>
作業內容:完成並且改進 Image Viewer
<ul class="single-list">
<li>(Baseline) 至少完成可左右觀看不同圖片</li>
<li>(Optional) Preview Window</li>
<li>(Optional) 觀看影片</li>
<li>(Optional) 其他 fancy 功能</li>
</ul>
</li>
<li>
作業注意事項:
<ul class="single-list">
<li>
Create a directory <b>Practice02</b> under
<b>WebProg2019</b>
</li>
<li>
Create <b>own</b> and <b>review</b> directories
under
<b>Practice02</b>
</li>
<li>
In <b>own</b>, finish the in-class example and
name the files as <b>index.html</b>,
<b>main.js</b> and <b>styles.css</b>
</li>
<li>
Remember to push to your github repo before
deadline
</li>
<li>
Practice submission deadline:
<em>9pm, Sunday, 03/03</em>
</li>
<li>
Review deadline: <em>9pm, Tuesday, 03/05</em>
</li>
<li>
這次作業的重點是 JavaScript,所以如果為了美觀,
可以使用別人的 CSS 檔案或者是套件,
不過,請自己刻 JavaScript 的 code, 不要使用任何
JavaScript 的框架、library 等, 但歡迎使用 ES6
或者是以後的 features。
</li>
</ul>
</li>
</ul>
<h3>After-Class Readings</h3>
<ul class="single-list">
<li>
找一本書、一個 online tutorial、甚至是影片,好好的把
JavaScript 學過一遍 --> Anything will do!!
</li>
<li>
More JavaScript Practice: Bouncing Ball
<a
href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_building_practice"
target="_blank"
>[mdn link]</a
>
</li>
</ul>
</div>
<div class="post">
<h2 class="post-header">Week #3 More on JavaScript (03/06)</h2>
<hr />
<h3>Lecture Notes</h3>
<ul class="single-list">
<li>
Administrative Information [<a
href="https://hackmd.io/p/rJDWle6L4#/"
target="_blank"
>slides</a
>]
</li>
<li>
More on JavaScript [<a
href="https://hackmd.io/p/H1Rqya5L4#/"
target="_blank"
>slides</a
>]
</li>
</ul>
<h3>JavaScript practice</h3>
<ul class="single-list">
<li>
Reference/Starter code for TODO list, download from
<a
href="https://github.com/ric2k1/ric2k1.github.io/blob/master/W3_0306/practice/todo_list_starter.tgz"
target="_blank"
>here</a
>
</li>
</ul>
<h3>Homework01 -- TODO List in pure JS</h3>
<ul class="single-list">
<li>
Preview:
<a
href="https://www.facebook.com/ric2k1/videos/pcb.786193475061908/10218102411928873/?type=3&theater&ifg=1"
target="_blank"
>demo</a
>
</li>
<li>
說明 [<a
href="https://hackmd.io/p/HyUbwNhLV#/"
target="_blank"
>slides</a
>]
</li>
<li>
作業注意事項:
<ul class="single-list">
<li>
Create a directory <b>"Homework01"</b> under
<b>"WebProg2019"</b>
</li>
<li>
In <b>"Homework01"</b>, finish the in-class
example and name the files as
<b>"index.html"</b>, <b>"main.js"</b> and
<b>"styles.css"</b>
</li>
<li>
Also in <b>"Homework01"</b>, create an
<b>"README.md"</b>
to describe the functionalities of your TODO
list
</li>
<li>
Add more files or directories as you wish, if
necessary
</li>
<li>
基本要求:
<ol>
<li>可建立數個 TodoItems</li>
<li>可新增刪除任意 TodoItem</li>
<li>可勾選已完成的 TodoItem</li>
<li>
在畫面上顯示已完成的 TodoItems 的不同
</li>
<li>統計並顯示未完成的 TodoItem 數量</li>
</ol>
</li>
<li>
其他進階功能,如:filter
已完成/未完成項目,一鍵刪除所有已完成項目,更多
TodoItems 的 properties (如:完成日期,負責人...
等),建立 TodoItems 的群組... 等,歡迎自行發揮
</li>
<li>
Remember to push to your github repo before
deadline
</li>
<li>
Homework submission deadline:
<em>9pm, Tuesday, 03/12</em>
<br />遲交一天內:扣 1/3 的成績
<br />遲交兩天內:扣 2/3 的成績
<br />遲交兩天以上:零分計算
</li>
<li>
這次作業的 CSS 檔案已包含所有基本要求所需的
styles,
請看懂它並且盡量使用,以求整體使用體驗的一致性,以利助教的批改。當然,如果你想要增加一些特別的效果,也歡迎自行增加一些
rules, 但請不要把 CSS 整個砍掉重練。
<br />此外,這次作業的重點是 JavaScript
的實作,請自己刻 JavaScript 的 code,
不要使用任何 JavaScript 的框架 (e.g.
React.js)、library 等, 但歡迎使用 ES6
或者是以後的 features。
</li>
</ul>
</li>
</ul>
<h3>After-Class Readings</h3>
<ul class="single-list">
<li>
p5.js --
<a href="https://p5js.org/" target="_blank">home</a> ,
<a href="https://p5js.org/examples/" target="_blank"
>examples</a
>
,
<a href="https://p5js.org/reference/" target="_blank"
>reference</a
>
</li>
<li>
找一本書、一個 online tutorial、甚至是影片,好好的把
JavaScript 學過一遍 --> Anything will do!!
</li>
</ul>
</div>
<div class="post">
<h2 class="post-header">
Week #4 More on JavaScript + p5.js (03/13)
</h2>
<hr />
<h3>Lecture Notes</h3>
<ul class="single-list">
<li>
Administrative Information [<a href="" target="_blank"
>slides</a
>]
</li>
<li>
More on JavaScript [<a
href="https://hackmd.io/p/BJBW8Eew4#/"
target="_blank"
>slides</a
>]
</li>
</ul>
<h3>JavaScript practice</h3>
<ul class="single-list">
<li>
p5.js practice [<a
href="https://github.com/ric2k1/ric2k1.github.io/blob/master/W4_0313/p5-practice.tgz"
target="_blank"
>ref source</a
>]
</li>
</ul>
<h3>
Homework02 -- Flappy Bird in
<a href="https://p5js.org/">p5.js</a>
</h3>
<ul class="single-list">
<li>
Preview:
<a
href="https://www.facebook.com/ric2k1/videos/pcb.786193475061908/10218102411288857/?type=3&theater&ifg=1"
target="_blank"
>demo</a
>
</li>
<li>
說明 [<a
href="https://hackmd.io/p/S1S9aOrDV#/"
target="_blank"
>slides</a
>]
</li>
<li>
Flappy Bird boilerplate reference [<a
href="https://github.com/ric2k1/ric2k1.github.io/blob/master/W4_0313/flappy-bird-boilerplate.tgz"
target="_blank"
>download</a
>]
</li>
<li>
作業注意事項:
<ul class="single-list">
<li>
Create a directory <b>"Homework02"</b> under
<b>"WebProg2019"</b>
</li>
<li>
In <b>"Homework02"</b>, finish the homework and
name the files as <b>"index.html"</b>,
<b>"sketch.js"</b> and
<b>"styles.css"</b>
</li>
<li>
Also in <b>"Homework02"</b>, create an
<b>"README.md"</b>
to describe the any special gamew features you
implement. If you don't have it, just write down
"No special features"
</li>
<li>
Add more files or directories as you wish, if
necessary
</li>
<li>
基本要求:
<ol>
<li>鳥可以受「空白鍵」控制來飛</li>
<li>可以隨著動作發出聲音</li>
<li>鳥的顏色、背景隨機出現</li>
</ol>
</li>
<li>
其他建議完成功能:
<ol>
<li>
有柱子作為障礙物,請可以判斷鳥是否有撞到柱子、天空、地板
</li>
<li>可計分、顯示「Game Over」、重玩</li>
<li>歡迎自行增加其他更有趣的功能</li>
</ol>
</li>
<li>
Remember to push to your github repo before
deadline
</li>
<li>
Homework submission deadline:
<em>9pm, Tuesday, 03/19</em>
<br />遲交一天內:扣 1/3 的成績
<br />遲交兩天內:扣 2/3 的成績
<br />遲交兩天以上:零分計算
</li>
<li>
這次作業的 CSS
檔案、圖檔、聲音檔已包含所有基本要求所需的
styles,
請看懂它並且盡量使用,以求整體使用體驗的一致性,以利助教的批改。當然,如果你想要增加一些特別的效果,也歡迎自行增加一些
rules or 影音檔, 但請不要把 CSS 整個砍掉重練。
<br />此外,這次作業的重點是 p5.js
的實作,請自己刻 p5.js 的 code, 不要使用其他
JavaScript 的框架 (e.g. React.js)、library 等,
但歡迎使用 ES6 或者是以後的 features。
</li>
</ul>
</li>
</ul>
<h3>After-Class Readings</h3>
<ul class="single-list">
<li>React tutorials (TBA)</li>
</ul>
</div>
<div class="post">
<h2 class="post-header">
Week #5 JavaScript Classes + Intro to React.js (03/20)
</h2>
<hr />
<h3>Lecture Notes</h3>
<ul class="single-list">
<li>
Administrative Information [<a
href="https://hackmd.io/p/H1_VFmk_V#/"
target="_blank"
>slides</a
>]
</li>
<li>
JavaScript Classes + Introduction to React.js [<a
href="https://hackmd.io/p/rkZfIccw4#/"
target="_blank"
>slides</a
>]
</li>
</ul>
<h3>In-class practices</h3>
<ul class="single-list">
<li>
JavaScript class practice [<a
href="https://github.com/ric2k1/ric2k1.github.io/blob/master/W5_0320/practice/class-practice.tgz"
target="_blank"
>ref source</a
>]
</li>
<li>React "Hello, World!" (No ref provided. DIY)</li>
<li>React "Score Card" (No ref provided. DIY)</li>
</ul>
<h3>
Practice03 -- A Static Blog Page in React.js
</h3>
<ul class="single-list">
<li>
沒有規定的外觀樣式,可以從網路上選以一個你喜歡樣本,以它為模型,用
React.js 刻一個靜態(i.e. 沒有互動功能)的網頁
</li>
<li>
You don't need to implement "edit", "post",
"add/delete", "search", or any kind of interactions.
</li>
<li>
Just a static page that is composed of title, menu,
sections, articles or photos, etc.
</li>
<li>
MUST use **React** to make it component-based so that
you can add more interactions later!
</li>
<li>
作業注意事項:
<ul class="single-list">
<li>
Create a directory <b>"Practice03"</b> under
<b>"WebProg2019"</b>
</li>
<li>
Create <b>own</b> and <b>review</b> directories
under
<b>Practice03</b>
</li>
<li>
The file names under <b>"Practice03"</b> can be
arbitrary. However, you must use
"create-react-app" to create this project. Make
sure TA can run your app with "npm start"
script.
</li>
<li>
Add more files or directories as you wish, if
necessary
</li>
<li>
Remember to push to your github repo before
deadline
</li>
<li>
Practice submission deadline:
<em>9pm, Sunday, 03/24</em>
</li>
<li>
Review deadline: <em>9pm, Tuesday, 03/26</em>
</li>
<li>
這次作業的重點是練習且學會寫基本的 (stateless)
React.js. 關於外觀,歡迎使用你選用的樣版的 CSS
file, 當然,你想要自己刻也是可以啦!
</li>
</ul>
</li>
</ul>
<h3>After-Class Readings --- React Tutorials</h3>
<ul class="single-list">
<li>
From official reactjs.org website:
<ul>
<li>
<a
href="https://reactjs.org/docs/getting-started.html"
>Getting started</a
>
</li>
<li>
<a
href="https://reactjs.org/tutorial/tutorial.html"
>A short tutorial</a
>
</li>
<li>
<a
href="https://reactjs.org/docs/thinking-in-react.html"
>Thinking in React</a
>
</li>
</ul>
</li>
<li>
React Fundamentals: 不錯且都很短的教學影片
<ul>
<li>
<a
href="https://egghead.io/lessons/react-hello-world-first-component"
>Hello World - First Component</a
>
</li>
<li>
<a
href="https://egghead.io/lessons/react-the-render-method"
>The Render Method</a
>
</li>
<li>
<a
href="https://egghead.io/lessons/react-introduction-to-properties"
>Introduction to Properties</a
>
</li>
<li>
<a
href="https://egghead.io/lessons/react-state-basics"
>State Basics</a
>
</li>
<li>
<a
href="https://egghead.io/lessons/react-owner-ownee-relationship"
>Owner Ownee Relationship</a
>
</li>
<li>
<a
href="https://egghead.io/lessons/react-using-refs-to-access-components"
>Using Refs to Access Components</a
>
</li>
<li>
<a
href="https://egghead.io/lessons/react-accessing-child-properties"
>Accessing Child Properties</a
>
</li>
<li>
<a
href="https://egghead.io/lessons/react-component-lifecycle-mounting-basics"
>Component Lifecycle - Mounting Basics</a
>
</li>
<li>
<a
href="https://egghead.io/lessons/react-component-lifecycle-mounting-usage"
>Component Lifecycle - Mounting Usage</a
>
</li>
<li>
<a
href="https://egghead.io/lessons/react-component-lifecycle-updating"
>Component Lifecycle - Updating</a
>
</li>
</ul>
</li>
</ul>
</div>
<div class="post">
<h2 class="post-header">Week #6 More on React.js (03/27)</h2>
<hr />
<h3>Lecture Notes</h3>
<ul class="single-list">
<li>
Administrative Information [<a href="." target="_blank"
>slides</a
>]
</li>
<li>
More on React.js [<a
href="https://hackmd.io/p/B1otLyN_4#/"
target="_blank"
>slides</a
>]
</li>
</ul>
<h3>
Pracrice04 -- TODO List in React.js
</h3>
<ul class="single-list">
<li>
Directory structures (also for Practice05)
<ul>
<li>
先在 <em>WebProg2019</em> 底下開個
<em>Practice04</em> and
<em>Practice05</em> 目錄,然後再各自底下用
create-react-app 產生 <em>“own”</em> project
目錄
</li>
<li>手動產生一個空目錄 <em>review</em></li>
<li>
HTML 的 entry 在 <em>public/index.html</em>,
然後 JaveScript 的在
<em>src/index.js</em>。把主要邏輯操作的
components 放在
<em>src/containers</em>
目錄,然後把一些沒有什麼邏輯,主要只是 render
畫面的 components 放在
<em>src/components</em> 目錄下面。
</li>
<li>
Make sure 在 own 底下執行
<em>npm start</em> 可以開啟你的
project,並且記得把 <em>node_modules</em> 加到
<em>.gitignore</em>, 不要上傳到 github.
</li>
</ul>
</li>
<li>就是把你 Homework01 的 TODO list 用 React 重寫一遍!</li>
<li>
練習重點:
<ul>
<li>
跟著 "<a
href="https://reactjs.org/docs/thinking-in-react.html"
>"Thinking in React</a
>" 思考一遍,create 適當的 classes。
</li>
<li>What are the states?</li>
<li>How do you add inverse data flow?</li>
</ul>
</li>
<li>
Practice submission deadline:
<em>9pm, Sunday, 03/31</em>
</li>
<li>Review deadline: <em>9pm, Tuesday, 04/02</em></li>
</ul>
<h3>
Pracrice05 -- Calculator in React.js
</h3>
<ul class="single-list">
<li>
請下載 starter's src from [<a
href="https://github.com/ric2k1/ric2k1.github.io/blob/master/W6_0327/practice/calculator-starter/src.tgz"
>here</a
>]
</li>
<li>
Copy to your <em>Practice05/own</em>, decompress it to
replace the original <em>src</em>
</li>
<li>
Implement under <em>src/{containers,components}</em>.
</li>
<li>
<em>npm start</em> to run, and <em>npm test</em> for
auto testing
</li>
<li>
利用提供的 CSS 做出來的 Calculator 長這樣:[<a
href="https://camo.githubusercontent.com/87ea4a738b93c32bc6a6c50c941b5a1d7163ffea/68747470733a2f2f7075752e73682f78336963582f323630303431643439342e706e67"
>here</a
>]
</li>
<li>
請注意 '0' 那格是兩倍大,請選用適當的 class 以利 npm
test
</li>
<li>
功能要求說明
<ul>
<li>
進階功能(可以不用做) —
正負號(+/-)、百分比(%)、小數點(.)
這三個按鍵只需要有 UI,不需要功能
</li>
<li>
重置計算機 — AC (all clear)
按鍵,需要可以把計算狀態 (state) 全清空
</li>
<li>
數字按鍵 —
會跟一般計算機一樣按了會累積之後要當運算元的數字。例如依序按下
6, 1, 9, 8,會產生 6198 來當作運算元
</li>
<li>
因為不實作小數當作運算元,所以第一個數字按零可以忽略
</li>
<li>
運算子按鍵 (+, -, x, ÷, =) --- 如果前面已經有
pending 的運算則先把前面的運算求值:按下 3, +,
6:這時候畫面還是 6,但再按(+, -, x, ÷,
=)任何一個就會更新運算結果;如果前面也是運算子,新的運算子會把舊的換掉;按下
3, +, -, 1, =:這時候結果為 2,+ 會被 -
換掉;如果前面是運算元,則先 pending 存至 state
</li>
</ul>
</li>
<li>
Practice submission deadline:
<em>9pm, Sunday, 04/07</em>
</li>
<li>Review deadline: <em>9pm, Tuesday, 04/09</em></li>
</ul>
<h3>After-Class Readings --- React Tutorials</h3>
<ul class="single-list">
<li></li>
</ul>
</div>
<div class="post">
<h2 class="post-header">
Week #7 <em>Spring Break (no class)</em> (04/03)
</h2>
<hr />
</div>
<div class="post">
<h2 class="post-header">
Week #8 Advanced Topics on React.js + React Router (04/10)
</h2>
<hr />
<h3>Lecture Notes</h3>
<ul class="single-list">
<li>
Administrative Information [<a href="." target="_blank"
>slides</a
>]
</li>
<li>
Advanced Topics on React.js + React Router [<a
href="https://hackmd.io/p/rJQwuMLYN#/"
target="_blank"
>slides</a
>]
</li>
</ul>
<h3>
Pracrice06 -- Serverless Blog Page with React Router
</h3>
<ul class="single-list">
<li>
Directory structures -- Please refer to Pracrice04
</li>
<li>
就是把你 Practce03 的 Static Blog Page 加上 React
Router!
</li>
<li>
練習重點:從 View -> modules -> pages -> routing -> data
</li>
<li>
Practice submission deadline:
<em>9pm, Sunday, 04/14</em>
</li>
<li>Review deadline: <em>9pm, Tuesday, 04/16</em></li>
</ul>
<h3>After-Class Readings</h3>
<ul class="single-list">
<li>
<a
href="https://reacttraining.com/react-router/web/guides/quick-start"
>React Router</a
>
</li>
</ul>
</div>
<div class="post">
<h2 class="post-header">
Week #9 Introduction to Node.js/Express/HTTP/Middleware
(04/17)
</h2>
<hr />
<h3>Lecture Notes</h3>
<ul class="single-list">
<li>
Administrative Information [<a href="." target="_blank"
>slides</a
>]
</li>
<li>
Introduction to Node.js/Express/HTTP/Middleware [<a
href="https://hackmd.io/p/HJegFNM54#/"
target="_blank"
>slides</a
>]
</li>
</ul>
<h3>
After-Class Readings: Read these before the next meeting!
</h3>
<ul class="single-list">
<li>
<a href="https://expressjs.com/" target="_blank"
>Express 官網關於 Middleware 以及 APIs 的描述</a
>
</li>
<li>
<a
href="https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/Tutorial_local_library_website"
target="_blank"
>MDN Express tutorials</a
>
</li>
<li>
下次上課前也請了解一下 Promise/Async/Await ---
<ul>
<li>
<a
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises"
target="_blank"
>MDN/Using Promise</a
>
</li>
<li>
<a
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"
target="_blank"
>MDN/Promise</a
>
</li>
<li>
<a
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function"
target="_blank"
>MDN/async function</a
>
</li>
</ul>
</li>
</ul>
</div>
<div class="post">
<h2 class="post-header">
Week #10 More on Backend and Database (04/24)
</h2>
<hr />
<h3>Lecture Notes</h3>
<ul class="single-list">
<li>
More on Backend and Database [<a
href="https://hackmd.io/p/r1QKoR3qN#/"
target="_blank"
>slides</a
>]
</li>
<li>
<a
href="https://github.com/ric2k1/ric2k1.github.io/blob/master/W10_0424/rics_chat_boilerplate.tgz"
target="_blank"
>A very simple chat app's boilerplate</a
>
</li>
</ul>
<h3>Midterm Individual Project</h3>
<ul class="single-list">
<li>題目自訂,一個人一組,佔學期總分 20%</li>
<li>
<em>Requirements</em>
<ul>
<li>Client-side programs in React.js</li>
<li>Server-side programs in Node.js</li>
</ul>
</li>
<li>
<em>Recommended</em>
<ul>
<li>Database to store persistent data</li>
<li>
Use "Promise" or "Async/Await" to ensure
asynchronous non-blocking communications
</li>
</ul>
</li>
<li>Deadline: 9pm, Tuesday, 05/21</li>
</ul>
</div>
<div class="post">
<h2 class="post-header">
Week #11 <em>F8 (no class)</em> (05/01)
</h2>
<hr />
</div>
<div class="post">
<h2 class="post-header">
Week #12 Promise/fetch/Async-Await (05/08)
</h2>
<hr />
<h3>Lecture Notes</h3>
<ul class="single-list">
<li>
Promise/fetch/Async-Await [<a
href="https://hackmd.io/p/BJa7HIUv4#/"
target="_blank"
>slides</a
>]
</li>
</ul>
<h3>Midterm Individual Project</h3>
<ul class="single-list">
<li>
規則說明 [<a
href="https://hackmd.io/p/HyGOHuAo4#/"
target="_blank"
>slides</a
>]
</li>
</ul>
</div>