Skip to content

Commit fb1bb0a

Browse files
committed
updates
1 parent 02eaae9 commit fb1bb0a

File tree

2 files changed

+40
-9
lines changed

2 files changed

+40
-9
lines changed

docs/src/lecture_03/lecture.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ Many fundamental objects can be iterated: Arrays, Tuples, Data collections...
457457

458458
Example: of interface ```Iterators```
459459
defined by "duck typing" via two functions.
460+
460461
|Required methods | Brief description|
461462
| --- | --- |
462463
|iterate(iter) | Returns either a tuple of the first item and initial state or nothing if empty|

docs/src/lecture_04/lecture_draft.md

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
11
# Package development
22

3+
4+
## Modules, namespaces
5+
- why namespaces
6+
- Too general name "create", "extend", "loss",
7+
- may not be an issue if used with different types
8+
- Julia syntax
9+
```julia
10+
module MySpace
11+
function test1
12+
println("test1")
13+
end
14+
function test1
15+
println("test1")
16+
end
17+
end
18+
```
19+
20+
- using .MySpace
21+
- export, import
22+
- conflicts (as )
23+
324
## namespaces & scoping
425
- local/global scope
526
- soft/hard
6-
- let
7-
- for loops?
8-
- (outer keyword)
9-
- differences in REPL?
1027

11-
## modules
12-
- exporting
13-
- conflicts
28+
- table of soft vs. hard
29+
1430

1531
## packages = modules
1632
- template structure src/, script/, tests/, docs/
@@ -30,11 +46,25 @@
3046

3147
## Unit testing
3248
- write tests
33-
- pitfals testing (checkbounds = yes)
49+
- check e.g. interfaces (i.e. missing functions)
50+
- @test, @testset
51+
- pitfals testing (checkbounds = yes)?
3452
- testing in github-actions
3553
- testing with RNG (version changes)
3654
- testing gradients (FiniteDifferences)
3755

3856
## Precompilation
3957
- new method -> invalidating methods
40-
- cache
58+
- cache
59+
60+
## Revise.jl
61+
- load before others
62+
- includet for files
63+
- adding deleting functions from module works
64+
65+
## Style Guide
66+
- docstrings
67+
- style
68+
- modules, types - CamelCase
69+
- functions, instances - lowercase
70+
- modifying function !

0 commit comments

Comments
 (0)