author | Christian Urban <urbanc@in.tum.de> |
Fri, 05 Oct 2018 11:25:53 +0100 | |
changeset 193 | ae307c3de4ee |
parent 192 | a112e0e2325c |
parent 191 | f78b18c4c886 |
child 194 | 060b081523de |
permissions | -rw-r--r-- |
192 | 1 |
CS quotes |
2 |
https://henrikwarne.com/2016/04/17/more-good-programming-quotes/ |
|
3 |
https://henrikwarne.com/2017/09/16/more-good-programming-quotes-part-2/ |
|
4 |
||
181 | 5 |
|
192 | 6 |
=================== |
7 |
“To have another language is to possess a second soul.” |
|
8 |
||
9 |
― attributed Charlemagne, Emperor of the Carolingian Empire (Western Europe) |
|
191 | 10 |
|
11 |
||
192 | 12 |
------------------- |
13 |
FP strongly discourages changing the state of a variable once initialized. This has a profound effect upon concurrency. If you can’t change the state of a variable, you can’t have a race condition. If you can’t update the value of a variable, you can’t have a concurrent update problem. |
|
14 |
------------------- |
|
15 |
||
16 |
8. Forced Null-Checks |
|
17 |
||
18 |
In Java, the method signature of a public method does not tell you if |
|
19 |
a returned value can be null or not. Take this signature for instance: |
|
20 |
||
21 |
public List<Item> getSelectedItems() |
|
181 | 22 |
|
192 | 23 |
What happens when no item is selected? Does this method then return |
24 |
null? Or does it return an empty list? We do not know for sure without |
|
25 |
looking into the implementation of this method (except we are very |
|
26 |
lucky in this case that the signature has a good javadoc description |
|
27 |
of the return type). There are two mistakes a developer could possibly |
|
28 |
make: (1)fForgetting to check the return value for null when it can be |
|
29 |
null, resulting in the famous NullPointerException, or; (2) checking |
|
30 |
it for null although it never can be null, resulting in needless code. |
|
181 | 31 |
|
192 | 32 |
|
140 | 33 |
|
34 |
||
122 | 35 |
why functional programming matters |
36 |
http://queue.acm.org/detail.cfm?id=2038036 |
|
37 |
||
192 | 38 |
why pure functions |
39 |
http://www.deadcoderising.com/2017-06-13-why-pure-functions-4-benefits-to-embrace-2/ |
|
122 | 40 |
|
41 |
||
42 |
BufferOverflow |
|
43 |
http://seclists.org/oss-sec/2017/q2/344 |
|
44 |
||
192 | 45 |
============ |
46 |
||
47 |
wartremover |
|
48 |
https://blog.knoldus.com/2017/06/15/remove-scala-warts-with-wartremover/ |
|
122 | 49 |
========= |
50 |
Intro Videos |
|
51 |
https://www.youtube.com/watch?v=ugHsIj60VfQ (30:00 slide about functions) |
|
52 |
||
53 |
https://www.youtube.com/channel/UC1VAdzkoY7M2e3msbW9Ur8w/videos?shelf_id=0&view=0&sort=dd |
|
54 |
||
55 |
||
56 |
=============== |
|
57 |
Scala warts |
|
58 |
http://www.lihaoyi.com/post/WartsoftheScalaProgrammingLanguage.html |
|
59 |
||
60 |
https://www.reddit.com/r/scala/comments/616n3y/could_anyone_recommend_scala_resources_that/ |
|
61 |
================ |
|
62 |
||
63 |
||
64 |
online compiler |
|
65 |
https://scalafiddle.io/ |
|
66 |
http://www.scala-lang.org/blog/2017/05/19/scastie.html |
|
67 |
||
68 |
||
69 |
------------------ |
|
70 |
Book |
|
71 |
http://twitter.github.io/effectivescala/ |
|
72 |
------------------- |
|
73 |
||
74 |
Very good explanation of what being functional programming means |
|
75 |
https://dotboris.github.io/2017/04/07/functional-programming/ |
|
76 |
||
77 |
||
95
4fa7231fede7
added link file
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
78 |
Source of exercises |
114 | 79 |
http://exercism.io |
122 | 80 |
https://www.scala-exercises.org/ |
81 |
http://www.sofiacole.com/technology/adopting-scala-the-next-steps/ |
|
114 | 82 |
|
83 |
||
115 | 84 |
https://medium.com/@markcanlasnyc/scala-saturday-functions-for-the-object-oriented-4218f9ed192b#.dw8x8zxvb |
85 |
||
86 |
-------------------- |
|
87 |
Map-Reduce in Scala |
|
88 |
||
89 |
https://madusudanan.com/blog/scala-tutorials-part-9-intro-to-functional-programming/ |
|
90 |
||
91 |
||
92 |
-------------------- |
|
93 |
bash scripting |
|
94 |
||
95 |
https://likegeeks.com/bash-script-easy-guide/ |
|
120 | 96 |
https://likegeeks.com/linux-bash-scripting-awesome-guide-part3/ |
97 |
||
98 |
||
99 |
------------------- |
|
100 |
collatz |
|
122 | 101 |
http://codepen.io/benlorantfy/pen/KWzXoX |
102 |
||
103 |
------------------- |
|
104 |
cheat sheets |
|
105 |
||
106 |
https://mbonaci.github.io/scala/ |
|
107 |
http://alvinalexander.com/downloads/scala/Scala-Cheat-Sheet-devdaily.pdf |
|
108 |
http://homepage.cs.uiowa.edu/~tinelli/classes/022/Fall13/Notes/scala-quick-reference.pdf |
|
109 |
||
110 |
https://www.youtube.com/watch?v=RZEZp8fqn_0 |
|
111 |
||
112 |
------------------- |
|
113 |
scala books |
|
114 |
http://underscore.io/training/ |
|
115 |
||
116 |
------------------- |
|
117 |
dependent types in Scala |
|
118 |
https://stepik.org/course/ThCS-Introduction-to-programming-with-dependent-types-in-Scala-2294/ |
|
119 |
||
120 |
||
121 |
-------------------- |
|
122 |
chess engine in scala |
|
123 |
http://marianogappa.github.io/software/2017/03/24/ostinato-a-chess-engine-written-in-scala-that-runs-on-the-browser-docker-and-the-repl/ |
|
124 |
https://en.lichess.org |
|
125 |
||
126 |
--------------------- |
|
127 |
scala code quality |
|
128 |
https://www.reddit.com/r/scala/comments/616n3y/could_anyone_recommend_scala_resources_that/ |