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