Questions and notes from workshop day 3

This document contains the shared notes activities, some direct identifiers have been removed.

Icebreakers

What programming language(s) are you normally working with (add an o for your answer):

What does testing your code mean for you? How do you test?

Other questions

Automated testing

:::info

Exercise Automated testing on your computer

Exercise Local-1: Set up the example and test, run it and break it to see what happens :::

Questions about the exercise:

pytest -v example.py
bash: pytest: command not found...
Failed to search for file: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer.

ok, i will do, thanks

Test Design

:::info

Exercise

-> https://coderefinery.github.io/testing/test-design/#pure-and-impure-functions

Design-1 - 5 , try whichever exercise you are interested in , you can also try 7-10, but they are a little more complex :)

Design 6 will be demonstrated after the break

:::

Demo of Design-6

Automated remote testing

Your questions here:

:::info

Exercise

Try out exercise CI-1- Create and use a workflow on GitHub or a pipeline on GitLab

:::

Questions continued:

Feedback for this morning session

We will continue with modular code development after a one hour break. Please let us know how this session felt for you, by adding a o for your answer below.

This automated testing session was:

too fast:o too slow: right speed:oo too slow sometimes, too fast other times:ooo too advanced: o too basic: right level:o I will use what I learned in this session:ooo I would recommend this session to others:oo I would not recommend this session to others:o

Anything else you would like to say about this session:

Modular Code Development

:::info

Exercise

Look at the starting point and think about what you would do to improve the code.

If you want you can clone the code: https://github.com/coderefinery/modular-type-along-exercise

:::

Your questions here:

git clone https://github.com/coderefinery/weather-analysis-exercise.git
cd weather-analysis-exercise
conda activate coderefinery

To follow along with the history : https://github.com/coderefinery/weather-analysis-exercise/tree/main

:::warning Sorry, we lost some of the notes, please ask again if something is unclear below :heart: But please know that this is also the ideal time to lean back and watch. You can try by yourself outside of the workshop and we are happy to help with any issued that are coming up also then via support@coderefinery.org :::

Read more about encapsulation

Feedback for Day 6 of CodeRefinery workshop

:::success In the morning we covered automated testing and modular code development in the afternoon. Modulare code development lesson is the place where everything learned in the workshop comes together. If it went all a bit to fast, please know that we have the recordings available on YouTube in a bit (and you can re-watch on twitch still for 7 days). Feel free to come back to it and try yourself also outside of the workshop; contact support@coderefinery.org if you have any open questions. One possibe solution on making the code more modular can also be found here: https://coderefinery.github.io/modular-type-along/solution/

You can find all links from the concluding remarks here: https://github.com/coderefinery/workshop-outro :::

Today was (vote (add a o) for all that apply):

too fast:o too slow: right speed:oooo too slow sometimes, too fast other times:o too advanced:ooo too basic: right level:oo I will use what I learned today:ooo I would recommend today to others:oo I would not recommend today to others:o

One good thing about today:

One thing to improve for next time:

Any other feedback? General questions?


Funding

CodeRefinery is a project within the Nordic e-Infrastructure Collaboration (NeIC).

Privacy

Privacy policy

Follow us

Contact

support@coderefinery.org

Improve this page

Source code