LINKS
author Christian Urban <urbanc@in.tum.de>
Wed, 16 Jan 2019 12:20:34 +0000
changeset 253 ec7a12806c3f
parent 251 3dd550b9b0e3
child 264 ecd989eee8bd
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
251
3dd550b9b0e3 updated
Christian Urban <urbanc@in.tum.de>
parents: 229
diff changeset
     1
online tutorial for scala
3dd550b9b0e3 updated
Christian Urban <urbanc@in.tum.de>
parents: 229
diff changeset
     2
3dd550b9b0e3 updated
Christian Urban <urbanc@in.tum.de>
parents: 229
diff changeset
     3
https://hub.mybinder.org/user/sbrunk-almond-examples-yw61qxqu/lab
3dd550b9b0e3 updated
Christian Urban <urbanc@in.tum.de>
parents: 229
diff changeset
     4
=====================
3dd550b9b0e3 updated
Christian Urban <urbanc@in.tum.de>
parents: 229
diff changeset
     5
253
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents: 251
diff changeset
     6
Scala best practices 
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents: 251
diff changeset
     7
https://nrinaudo.github.io/scala-best-practices/index.html
ec7a12806c3f updated
Christian Urban <urbanc@in.tum.de>
parents: 251
diff changeset
     8
=====================
251
3dd550b9b0e3 updated
Christian Urban <urbanc@in.tum.de>
parents: 229
diff changeset
     9
194
060b081523de updated
Christian Urban <urbanc@in.tum.de>
parents: 193
diff changeset
    10
codejudge
060b081523de updated
Christian Urban <urbanc@in.tum.de>
parents: 193
diff changeset
    11
 
060b081523de updated
Christian Urban <urbanc@in.tum.de>
parents: 193
diff changeset
    12
https://www.codejudge.net/docs/reference
060b081523de updated
Christian Urban <urbanc@in.tum.de>
parents: 193
diff changeset
    13
060b081523de updated
Christian Urban <urbanc@in.tum.de>
parents: 193
diff changeset
    14
060b081523de updated
Christian Urban <urbanc@in.tum.de>
parents: 193
diff changeset
    15
Race Track game
060b081523de updated
Christian Urban <urbanc@in.tum.de>
parents: 193
diff changeset
    16
Game of life
229
5549016ab10f updated
Christian Urban <urbanc@in.tum.de>
parents: 194
diff changeset
    17
5549016ab10f updated
Christian Urban <urbanc@in.tum.de>
parents: 194
diff changeset
    18
===================
5549016ab10f updated
Christian Urban <urbanc@in.tum.de>
parents: 194
diff changeset
    19
https://meta.plasm.us/posts/2013/03/28/better-scala-syntax-highlighting-for-hakyll/
194
060b081523de updated
Christian Urban <urbanc@in.tum.de>
parents: 193
diff changeset
    20
060b081523de updated
Christian Urban <urbanc@in.tum.de>
parents: 193
diff changeset
    21
===================
192
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    22
CS quotes
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    23
https://henrikwarne.com/2016/04/17/more-good-programming-quotes/
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    24
https://henrikwarne.com/2017/09/16/more-good-programming-quotes-part-2/
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    25
181
31ba76ce016d updated
Christian Urban <urbanc@in.tum.de>
parents: 177
diff changeset
    26
192
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    27
===================
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    28
“To have another language is to possess a second soul.”
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    29
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    30
― attributed Charlemagne, Emperor of the  Carolingian Empire (Western Europe)
191
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    31
f78b18c4c886 updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    32
192
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    33
-------------------
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    34
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
    35
-------------------
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    36
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    37
8. Forced Null-Checks
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    38
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    39
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
    40
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
    41
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    42
public List<Item> getSelectedItems()
181
31ba76ce016d updated
Christian Urban <urbanc@in.tum.de>
parents: 177
diff changeset
    43
192
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    44
What happens when no item is selected? Does this method then return
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    45
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
    46
looking into the implementation of this method (except we are very
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    47
lucky in this case that the signature has a good javadoc description
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    48
of the return type). There are two mistakes a developer could possibly
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    49
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
    50
null, resulting in the famous NullPointerException, or; (2) checking
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    51
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
    52
192
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    53
140
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
    54
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
    55
122
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    56
why functional programming matters
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    57
http://queue.acm.org/detail.cfm?id=2038036
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    58
192
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    59
why pure functions
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    60
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
    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
BufferOverflow
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    64
http://seclists.org/oss-sec/2017/q2/344
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    65
192
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    66
============
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    67
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    68
wartremover
a112e0e2325c updated
Christian Urban <urbanc@in.tum.de>
parents: 187
diff changeset
    69
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
    70
=========
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    71
Intro Videos
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    72
https://www.youtube.com/watch?v=ugHsIj60VfQ (30:00 slide about functions)
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
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
    75
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
===============
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    78
Scala warts
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    79
http://www.lihaoyi.com/post/WartsoftheScalaProgrammingLanguage.html
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    80
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    81
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
    82
================
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    83
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    84
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    85
online compiler
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    86
https://scalafiddle.io/
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    87
http://www.scala-lang.org/blog/2017/05/19/scastie.html
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    88
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    89
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    90
------------------
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    91
Book
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    92
http://twitter.github.io/effectivescala/
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    93
-------------------
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    94
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    95
Very good explanation of what being functional programming means
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    96
https://dotboris.github.io/2017/04/07/functional-programming/
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    97
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
    98
95
4fa7231fede7 added link file
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    99
Source of exercises
114
5378491337c0 updated
Christian Urban <urbanc@in.tum.de>
parents: 95
diff changeset
   100
    http://exercism.io
122
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   101
    https://www.scala-exercises.org/
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   102
    http://www.sofiacole.com/technology/adopting-scala-the-next-steps/
114
5378491337c0 updated
Christian Urban <urbanc@in.tum.de>
parents: 95
diff changeset
   103
5378491337c0 updated
Christian Urban <urbanc@in.tum.de>
parents: 95
diff changeset
   104
115
b35eff7f0f5a updated
Christian Urban <urbanc@in.tum.de>
parents: 114
diff changeset
   105
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
   106
b35eff7f0f5a updated
Christian Urban <urbanc@in.tum.de>
parents: 114
diff changeset
   107
--------------------
b35eff7f0f5a updated
Christian Urban <urbanc@in.tum.de>
parents: 114
diff changeset
   108
Map-Reduce in Scala
b35eff7f0f5a updated
Christian Urban <urbanc@in.tum.de>
parents: 114
diff changeset
   109
b35eff7f0f5a updated
Christian Urban <urbanc@in.tum.de>
parents: 114
diff changeset
   110
https://madusudanan.com/blog/scala-tutorials-part-9-intro-to-functional-programming/
b35eff7f0f5a updated
Christian Urban <urbanc@in.tum.de>
parents: 114
diff changeset
   111
b35eff7f0f5a updated
Christian Urban <urbanc@in.tum.de>
parents: 114
diff changeset
   112
b35eff7f0f5a updated
Christian Urban <urbanc@in.tum.de>
parents: 114
diff changeset
   113
--------------------
b35eff7f0f5a updated
Christian Urban <urbanc@in.tum.de>
parents: 114
diff changeset
   114
bash scripting
b35eff7f0f5a updated
Christian Urban <urbanc@in.tum.de>
parents: 114
diff changeset
   115
b35eff7f0f5a updated
Christian Urban <urbanc@in.tum.de>
parents: 114
diff changeset
   116
https://likegeeks.com/bash-script-easy-guide/
120
564b4baec85e updated
Christian Urban <urbanc@in.tum.de>
parents: 115
diff changeset
   117
https://likegeeks.com/linux-bash-scripting-awesome-guide-part3/
564b4baec85e updated
Christian Urban <urbanc@in.tum.de>
parents: 115
diff changeset
   118
564b4baec85e updated
Christian Urban <urbanc@in.tum.de>
parents: 115
diff changeset
   119
564b4baec85e updated
Christian Urban <urbanc@in.tum.de>
parents: 115
diff changeset
   120
-------------------
564b4baec85e updated
Christian Urban <urbanc@in.tum.de>
parents: 115
diff changeset
   121
collatz
122
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   122
http://codepen.io/benlorantfy/pen/KWzXoX
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   123
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   124
-------------------
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   125
cheat sheets
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
https://mbonaci.github.io/scala/
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   128
http://alvinalexander.com/downloads/scala/Scala-Cheat-Sheet-devdaily.pdf
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   129
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
   130
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   131
https://www.youtube.com/watch?v=RZEZp8fqn_0
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   132
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   133
-------------------
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   134
scala books
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   135
http://underscore.io/training/
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   136
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   137
-------------------
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   138
dependent types in Scala
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   139
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
   140
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   141
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   142
--------------------
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   143
chess engine in scala
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   144
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
   145
https://en.lichess.org
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   146
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   147
---------------------
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   148
scala code quality
90dd9c6162b3 updated
Christian Urban <urbanc@in.tum.de>
parents: 120
diff changeset
   149
https://www.reddit.com/r/scala/comments/616n3y/could_anyone_recommend_scala_resources_that/