Skip to content
Snippets Groups Projects
Commit 6682fedc authored by Theisen, Lambert's avatar Theisen, Lambert :fire:
Browse files

add more stuff

parent 089a6a58
Branches
No related tags found
No related merge requests found
Pipeline #1981 passed
# Sustainable Software Engineering # Sustainable Software Engineering
TODO
Link to lecture material ## Installation
1. **Clone the Repository:**
```
git clone https://github.com/username/project-name.git
```
2. **Navigate to the Project Directory:**
```
cd project-name
```
## Running the Project
1. **Start Julia:**
Open Julia REPL by running `julia` in your terminal.
2. **Activate and Instantiate the Project:**
```julia
using Pkg
Pkg.activate(".")
Pkg.instantiate()
```
3. **Run the Project:**
```julia
using SustainableSoftwareEngineering
add(1,2)
# 3
```
## Test the Project
1. **Start Julia:**
Open Julia REPL by running `julia` in your terminal.
2. **Activate, Instantiate and Test the Project:**
```julia
using Pkg
Pkg.activate(".")
Pkg.instantiate()
Pkg.test()
```
## Build Documentation of Project
1. **Start Julia:**
Open Julia REPL by running `julia` in your terminal.
2. **Activate, Instantiate and Test the Project:**
```julia
using Pkg
Pkg.activate(".")
Pkg.instantiate()
include("docs/make.jl")
```
3. **Open in browser**
```bash
# e.g.
firefox docs/build/index.html
```
## Troubleshooting
- Note that the following throws an error:
```julia
using SustainableSoftwareEngineering
add("a","b")
# ERROR: ...
```
## Example Files
- See [`examples` Folder](./examples)
## Contact
- Lambert Theisen
- `lambert.theisen@ians.uni-stuttgart.de`
push!(LOAD_PATH,"../src/") push!(LOAD_PATH,"../src/")
push!(LOAD_PATH,"src/") push!(LOAD_PATH,"src/")
using Documenter, SustainableSoftwareEngineering using SustainableSoftwareEngineering
using Documenter
makedocs( makedocs(
sitename="SustainableSoftwareEngineering.jl", sitename="SustainableSoftwareEngineering.jl",
remotes = nothing, remotes = nothing,
pages = Any[ pages = Any[
"Home" => "index.md", "Home" => "index.md",
"API" => "api.md",
# add all lecture material # add all lecture material
joinpath.( joinpath.(
"lecture", "lecture",
......
# Developer Documentation
## API
```@autodocs
Modules = [SustainableSoftwareEngineering]
Private = true
Order = [:function, :type]
```
## Index
```@index
```
# Example.jl Documentation # SustainableSoftwareEngineering.jl
Hi ## Table of Contents
```@contents
```
# Introduction to Git # Version Control: Introduction to Git
## What is Git? ## What is Git?
...@@ -37,7 +37,4 @@ git config --global user.email "your.email@example.com" ...@@ -37,7 +37,4 @@ git config --global user.email "your.email@example.com"
- https://aeturrell.github.io/coding-for-economists/wrkflow-version-control.html - https://aeturrell.github.io/coding-for-economists/wrkflow-version-control.html
- https://merely-useful.tech/py-rse/git-cmdline.html - https://merely-useful.tech/py-rse/git-cmdline.html
TODO
Addd some images to visualize
Add further reading
Explain gitignore and make example Explain gitignore and make example
# Julia Project Structure # Julia: Project Structure
This lecture focuses on the structure and management of Julia-specific projects. We will cover how to create a project using the Package Manager, the purpose of various directories and files, and best practices for maintaining a Julia project. This lecture focuses on the structure and management of Julia-specific projects. We will cover how to create a project using the Package Manager, the purpose of various directories and files, and best practices for maintaining a Julia project.
......
# Julia Documentation # Julia: Documentation
In this lecture, we'll explore how to effectively document Julia code. We'll cover the use of doc strings, introduce Documenter.jl for creating comprehensive documentation, and discuss how to build and host a documentation website. In this lecture, we'll explore how to effectively document Julia code. We'll cover the use of doc strings, introduce Documenter.jl for creating comprehensive documentation, and discuss how to build and host a documentation website.
......
# Testing in Julia # Julia: Testing
This lecture aims to provide a comprehensive guide on testing practices in Julia. We will explore the importance of unit tests, delve into coverage aspects, and discuss the integration of automatic testing using continuous integration (CI) tools. This lecture aims to provide a comprehensive guide on testing practices in Julia. We will explore the importance of unit tests, delve into coverage aspects, and discuss the integration of automatic testing using continuous integration (CI) tools.
......
export add export add
""" """
add(x, y) add(x, y)
Compute the sum of `x` and `y`. Compute the sum of `x` and `y`.
...@@ -9,10 +9,17 @@ Compute the sum of `x` and `y`. ...@@ -9,10 +9,17 @@ Compute the sum of `x` and `y`.
- `x::Int`: The first integer - `x::Int`: The first integer
- `y::Int`: The second integer - `y::Int`: The second integer
## Mathematical formula
```math
(x,y) \\mapsto x+y
```
# Examples # Examples
```julia ```julia
julia> add(2, 3) julia> add(2, 3)
5 5
```
""" """
function add(x::Int, y::Int) function add(x::Int, y::Int)
return x + y return x + y
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment