master
Craig Oates 4 years ago
parent
commit
37361a16d2
  1. 48
      ScratchPad-Overview.md

48
ScratchPad-Overview.md

@ -1,24 +1,24 @@
The reason "ScratchPad.fsx" exists is to provide a way for you to interact with the code via F# Interactive (FSI). If you are new to the project, this is a good place to start. All the code within here has comments to help signify what it is doing or which part of the library it is using. So, I will avoid going through each line of code here and provide a link to the actual file for you. If you are unsure what F# Interactive is or how to use it, I have provided a link for that, also. They are as follows:
- [ScratchPad.fsx](https://git.abbether.net/craig.oates/Death-Socket/blob/master/DeathSocket/ScratchPad.fsx)
- [F# Interactive (FSI)](https://docs.microsoft.com/en-us/dotnet/fsharp/tutorials/fsharp-interactive/)
- [Scripting with F#](https://fsharpforfunandprofit.com/installing-and-using/) (it's a little dated but it contains enough information to get you going)
![scratchpad.fsx relationship](scratchpad-relationship.png)
If you decide to use "ScratchPad.fsx", you must build the project ("F5" in Visual Studio) beforehand. On top of that, you must change the path when referencing the "SkiaSharp" DLL. This is because I have hard-coded the path (yes, I'm lazy). So, within "ScratchPad.fsx", you should see something like the following at the top of the file,
```f#
(* NOTE: These paths need adjusting to match your computer.
=========================================================== *)
// Currently not working...
#r @"C:/Users/craig/.nuget/packages/skiasharp/1.60.3/lib/netstandard1.3/SkiaSharp.dll"
// This one should be fine.
#r @"C:/Users/craig/.nuget/packages/skiasharp/1.60.3/runtimes/win-x64/native/libSkiaSharp.dll"
```
Hopefully, the only thing you need to replace is `craig` with your username.
Last of all, I must ask you to consider all the code in "ScratchPad.fsx" as "throw-away" code. Although I have made an effort to organise it and add comments to make it easier to read, it is not part of the main library code. The file only exists for you to quickly test new ideas out and established code still works. It, also, operates as a "quick start guide" but that is a by-product I am exploiting. If I/you need to, this code can/should be deleted and replaced.
The reason "ScratchPad.fsx" exists is to provide a way for you to interact with the code via F# Interactive (FSI). If you are new to the project, this is a good place to start. All the code within here has comments to help signify what it is doing or which part of the library it is using. So, I will avoid going through each line of code here and provide a link to the actual file for you. If you are unsure what F# Interactive is or how to use it, I have provided a link for that, also. They are as follows:
- [ScratchPad.fsx](https://git.abbether.net/craig.oates/Death-Socket/src/branch/master/DeathSocket/ScratchPad.fsx)
- [F# Interactive (FSI)](https://docs.microsoft.com/en-us/dotnet/fsharp/tutorials/fsharp-interactive/)
- [Scripting with F#](https://fsharpforfunandprofit.com/installing-and-using/) (it's a little dated but it contains enough information to get you going)
![scratchpad.fsx relationship](scratchpad-relationship.png)
If you decide to use "ScratchPad.fsx", you must build the project ("F5" in Visual Studio) beforehand. On top of that, you must change the path when referencing the "SkiaSharp" DLL. This is because I have hard-coded the path (yes, I'm lazy). So, within "ScratchPad.fsx", you should see something like the following at the top of the file,
```f#
(* NOTE: These paths need adjusting to match your computer.
=========================================================== *)
// Currently not working...
#r @"C:/Users/craig/.nuget/packages/skiasharp/1.60.3/lib/netstandard1.3/SkiaSharp.dll"
// This one should be fine.
#r @"C:/Users/craig/.nuget/packages/skiasharp/1.60.3/runtimes/win-x64/native/libSkiaSharp.dll"
```
Hopefully, the only thing you need to replace is `craig` with your username.
Last of all, I must ask you to consider all the code in "ScratchPad.fsx" as "throw-away" code. Although I have made an effort to organise it and add comments to make it easier to read, it is not part of the main library code. The file only exists for you to quickly test new ideas out and established code still works. It, also, operates as a "quick start guide" but that is a by-product I am exploiting. If I/you need to, this code can/should be deleted and replaced.

Loading…
Cancel
Save