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