New pages

Jump to navigation Jump to search
New pages
Hide registered users | Show bots | Hide redirects
  • 14:20, 30 April 2026Changing existing code base (hist | edit) ‎[1,484 bytes]WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Runtime evauation |Next: Last words |} == Required course material for the lesson == GitHub: [https://github.com/agormp Professor Anders Gorm Pedersen's repositories.] Used in teaching this week.<br> GitHub: [https://github.com/genenetwork/ Gene network.] A much larger and thus more complicated/confusing repo.<br> GitHub: [https://github.com/bioinform Th...")
  • 18:07, 19 March 2026Example code - Inheritance issues (hist | edit) ‎[9,924 bytes]WikiSysop (talk | contribs) (Created page with "The challenges in inheritance can not be demonstrated well in a powerpoint. Thus, I made this page with examples. You can copy the code in the section and add it together and run it. First I create a slightly bigger CatClass. <pre> class CatClass: ### Class variables genus = "Felis" species = "Catus" acts = {'scratch': "purrs", 'scare': "jumps high in the air", 'feed': "is very excited" } ### Instatiation def __init__(sel...")
  • 16:15, 6 March 2026Intermediate unit test (hist | edit) ‎[2,118 bytes]WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Beginning unit test |Next: Runtime evaluation |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_09-Testing.ppt Testing]<br> Online: [https://docs.pytest.org/ pytest documentation]<br> Resource: Example code - Unit test<br> Resource: Unit test - start of reverse polish notation clas...")
  • 14:54, 6 March 2026Unit test - start of reverse polish notation class (hist | edit) ‎[3,606 bytes]WikiSysop (talk | contribs) (Created page with "These are the two files, I made in class for unit test demo purposes. My original class in the file: ReversePolishCalc.py <pre> class ReversePolishCalc: def __init__(self): self.stack = list() def _checkstack(self, count): if len(self.stack) < count: raise IndexError("Stack does not contain enough elements to perform operaation") def push(self, vector): if isinstance(vector, (int, float, str)): vector = [...")
  • 14:31, 6 March 2026Intermediate classes (hist | edit) ‎[6,406 bytes]WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Beginning classes |Next: Beginning Unittest |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_07-Classes.ppt Classes]<br> Resource: Example code - Classes<br> == Subjects covered == Classes<br> Object Oriented Programming == Exercises to be handed in == The exercises will be about...")
  • 12:12, 21 February 2026Example code - parsing command line options (hist | edit) ‎[2,539 bytes]WikiSysop (talk | contribs) (Created page with "This is one selfmade way of dealing with command line parameters for your program. <pre> #!/usr/bin/env python3 # This program demonstrates a way to get arguments and options from command line import sys # You should use more appropriately named variable names than me. # I just don't know what your options are. # In my example two options are just present or not, but the third requires a number to follow. # By initalising the option to None, you can later tell that you...")
  • 14:43, 17 February 2026Collaborative git (hist | edit) ‎[6,268 bytes]WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Solo git |Next: Collaborative git |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_03-Git.ppt Git]<br> Optional - do you want to know more<br> Online: [https://coderefinery.github.io/git-intro/ Coderefinery's introduction to git] This is one of many git resources on the net.<br> Online:...")
  • 17:21, 11 February 2026Solo git (hist | edit) ‎[5,149 bytes]WikiSysop (talk | contribs) (Created page with "__NOTOC__ {| width=500 style="font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;" |Previous: Intermediate unix |Next: Collaborative git |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22118/22118_03-Git.ppt Git]<br> <!-- Resource: Example code - File Reading<br> --> == Subjects covered == * GitHub - short * Git - concepts == Exercises to be handed in == '''In exercises 2-9 the job i...")