Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
imt3602-2021
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Johan Solsvik
imt3602-2021
Commits
079256d2
Commit
079256d2
authored
4 years ago
by
Jonas Johan Solsvik
Browse files
Options
Downloads
Patches
Plain Diff
fix rust= -> rust
parent
f0e38a01
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
proprog.md
+7
-7
7 additions, 7 deletions
proprog.md
with
7 additions
and
7 deletions
proprog.md
+
7
−
7
View file @
079256d2
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@


**Title:**
DID CLI
-
**Title:**
DID CLI
**Group:**
23, Identity Wallet, DID CLI
-
**Group:**
23, Identity Wallet, DID CLI
**Students**
: Jonas Johan Solsvik
-
**Students**
: Jonas Johan Solsvik
**Repo Bachelor Implementation**
: https://github.com/DIN-Foundation/bcs-ntnu-2021
-
**Repo Bachelor Implementation**
: https://github.com/DIN-Foundation/bcs-ntnu-2021
**Repo Bachelor Thesis**
: https://github.com/Arxcis/thesis-NTNU
-
**Repo Bachelor Thesis**
: https://github.com/Arxcis/thesis-NTNU
# 1 Group discussion
# 1 Group discussion
...
@@ -57,7 +57,7 @@ It takes 3-4 seconds to build DID-CLI in a debug-build. DID-CLI is barely 1000 L
...
@@ -57,7 +57,7 @@ It takes 3-4 seconds to build DID-CLI in a debug-build. DID-CLI is barely 1000 L
If a developer is used to a language like javascript, the Rust syntax may feel a bit verbose. This may scare developers away from Rust.
If a developer is used to a language like javascript, the Rust syntax may feel a bit verbose. This may scare developers away from Rust.
*Example of verbose syntax to do simple thing:*
*Example of verbose syntax
in Rust
to do simple thing:*
```
rust
```
rust
let
mut
entries
:
Vec
<
std
::
fs
::
DirEntry
>
=
std
::
fs
::
read_dir
(
dids_path
())
let
mut
entries
:
Vec
<
std
::
fs
::
DirEntry
>
=
std
::
fs
::
read_dir
(
dids_path
())
.unwrap
()
.unwrap
()
...
@@ -212,7 +212,7 @@ DID-CLI's init-function starts with creating a bunch of directories, if they don
...
@@ -212,7 +212,7 @@ DID-CLI's init-function starts with creating a bunch of directories, if they don
Let's discuss a refactoring we did of the
`read()`
-function and its corresponding
`read`
-command.
Let's discuss a refactoring we did of the
`read()`
-function and its corresponding
`read`
-command.
**read() before refactor**
**read() before refactor**
```
rust
=
```
rust
fn
read
(
dcem
:
&
str
)
->
Result
<
String
,
std
::
io
::
Error
>
{
fn
read
(
dcem
:
&
str
)
->
Result
<
String
,
std
::
io
::
Error
>
{
use
std
::
io
::
Write
;
use
std
::
io
::
Write
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment