Lars Eklund
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
1
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Programming formalisms - [Course website](https://uppmax.github.io/programming_formalisms/) - [Meeting notes](https://uppmax.github.io/programming_formalisms/meeting_notes/) ## Invitation ### Living document Feb 12 version Richel The goal of this highly-interactive 5-day course is to be able to develop academic software that you can trust to be 'good enough'. We assume you have written code 'that (sometimes) just works'. The course follows a formal development process from start to finish, with a selection of topics and best practices we think are most important, with the goal of developing academic software that is actually good enough. - When: May 5-9 from 9:00-16:00 each day - Where: online, Zoom links will be sent out - [Course material](https://uppmax.github.io/programming_formalisms/) - [More info and registration (soon to open)](https://docs.uppmax.uu.se/courses_workshops/programming_formalisms/) ### Living document Feb 12 (First update) This full 5-day course aims to give scientists, bioinformaticians and other research engineers with some experience in programming and scripting an understanding of the underlying principles of software development, design, and programming. The course aims to strengthen the understanding of more advanced programming concepts, ability to produce more reusable scripts through modular programming and to enable a better understanding of how to evaluate a script or programs performance. We will cover a formal development process form start to finish. We use Test-Driven Development as a good example of a development process, requirements modeling, risk assessment and structured design. Some of the topics covered are modular development and (code) reusability, testing and optimization. We will cover theory with bridging practical examples and applications to enhance the theoretical understanding of the principles. When: May 5-9, at 9:00-16:00 [More information and registration (opens soon)]( https://docs.uppmax.uu.se/courses_workshops/programming_formalisms/). ### Old This full 5-day course aims to give scientists, bioinformaticians and other research engineers with some experience in programming and scripting an understanding of the underlying principles of software development, design, and programming. The course aims to strengthen the understanding of more advanced programming concepts, ability to produce more reusable scripts through modular programming and to enable a better understanding of how to evaluate a script or programs performance. We will cover a formal development process form start to finish. We use Test-Driven Development as a good example of a development process, requirements modeling, risk assessment and structured design. Some of the topics covered are modular development and (code) reusability, testing and optimization. We will cover theory with bridging practical examples and applications to enhance the theoretical understanding of the principles. When: November 18-22, onboarding: November 15 For more information and registration, please visit: https://www.uu.se/en/centre/uppmax/study/courses-and-workshops/programming-formalisms. ## arbetsdok för projekt ### Beskrivning #### Brief ```text Do some analysis on data from an Uppsala weather station. ``` Details - You have a temperature data file (Uppsala) - Build a program that performs and presents some analysis - graph of running means - other statistics - daily maximums/min - yearly maximums/min - meta data extraction - name of station - dates , times and varible from which column - presentation - header of graphs (name) - axis labels - When the program is run, user should be able to decide which analysis to perform, for instance wit arguments from the commandline. - How? - modular design - Different teams get different tasks focus - Start with Uppsala file - If time allows make program more general: - make possible to read other files (defined by) - there is a document that connects filenames to stations - argument can be station name and the program reads the right file #### The outline of the project ... - needs analysis and risk assesment - uses Python and matplotlib plot the data - uses `scipy` and `numpy` alternatively writing the functions from scratch, depending on the needs in Algorithms and TDD sections. - uses modular design to be able to swap out the prediction functions. - uses object oriented design and development #### Technical requirements possibility for different file names and arguments defining what program should do. modularity seems interesting --> modularity session split and mentioned earlier in the project start previous brief: !!! info "The brief" We want to see (an approximation and cleanly looking) hourly daily temperature data from Uppsala, using a long-lasting dataset that recorded the temparature a couple of times per day. It needs to be approximate, as there are only few recordings per day. - It needs to be cleanly looking as [Björn takes over here!] - We want to have the average curve be displayed to reduce noise of visualization. - This project is based of the works of Bergström and Moberg [Bergström and Moberg 2002](https://www.smhi.se/polopoly_fs/1.175744!/Bergstr%C3%B6m_Moberg_Uppsala.pdf) The outline of the project ... - needs analysis and risk assesment - uses Python and matplotlib plot the data - uses `scipi` and `numpy` alternatively writing the functions from scratch, depending on the needs in Algorithms and TDD sections. - uses modular design to be able to swap out the prediction functions. - uses object oriented design and development opendata-download-metobs.smhi.se/ portal to get station data: https://www.smhi.se/data/meteorologi/ladda-ner-meteorologiska-observationer/airtemperatureInstant/97530 smhi-opendata_1_97530_20250122_131109.csv Example from Uppsala airport with data and meta data in same file. However, in Swedish Questions for team(s) OK, we know that we should do something with the data (we give hints) What data do we have? How to read it? What about quality flags? What to include? Is reformatting needed? How can we get information about station name and label our results accordingly? Which functions needed? Modules that do different statistics? Use many/all stations to find dependence on latitude altitude? Needed from us? Translation of metadata or have one Swedish speaker in each group Cons filename does not tell the station name ugly files with metadata in same file Pros meta content in same file more possible analyses to be made with several stations Suggestion from Björn Many raw files (perhaps not all stations in Sweden) collected in a data folder Different teams get different tasks focusing on different modules/analyses In the end build a main program which user run with arguments to perform the needed analysis I am happy there is some love for the project, in our efforts to make a simpler student project. However, I do wonder we are falling in the trap to making it complex again :-) Many raw files (perhaps not all stations in Sweden) collected in a data folder Seems great to me! We start with the simplest files :-) Different teams get different tasks focusing on different modules/analyses Sounds good. It is close to our use of issues 👍 In the end build a main program which user run with arguments to perform the needed analysis Can do. We do not discuss program arguments yet anywhere and I will volunteer to put some time in that if it does not fit better elsewhere. ### Design https://github.com/UPPMAX/programming_formalisms/commit/1349dc589d9dfde13cc39087216ee3e77f99bfdf !**Answer** First! we ask ourself what is the scope and magnitude of this project - This is a small project expected for the team to finish in about one week - The project will be driven and implemented by a small team of distributed developers. - the aim of the project is to teach the team the SDLC process **conclusion**- The project needs and goes through more formalized steps than a regular project of similar size. The projects needs a minimal risk assessment and and needs determination Second! Determination of business and legal space. The project operates inside an open non-profit open source scope, The Data Protection Impact assessment is not needed for this data set since it is open and readily available , it non sensitive non personal data with minimal economic impact. This project is conducted inside a educational setting in Sweden and therefor the legal space is simple. With that out of the way(Usually not conducted for small project but included here for completeness) Third! first iteration of Needs gathering The brief gives us - make graph of running means - other statistics - daily maximums/min - yearly maximums/min - meta data extraction - name of station - dates , times and varible from which column - presentation - header of graphs (name) - axis labels Needs/requirments matix: Requirement ID | Requirement Description | Acceptance Criteria | Test Cases -------------|------------------------|-----------------|-----------------------| R1|Open source development|the development process follows the principles of open source development| In each step, evaluate the accessability and openness R2|Analysis|the program performs and presents some analysis related to temperature|| R3|File IO|The software should be able to read and parse the data in the SMHI station data csv files| forth! Risks Remember to think of both primary and secondary/derived risks We start looking at the Risk involved in the software project. -Over engineering - In this kind of small project the risk of a project failing is increased with the risk of making the solutions significantly more complicated than they need to be -risk of Fifth! second iteration of needs analyzis

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully