Daniel-Mietchen / events

Materials related to events I might attend, and to talks I am giving
Creative Commons Zero v1.0 Universal
24 stars 15 forks source link

11 June 2019, Charlottesville: Software design and engineering #572

Closed Daniel-Mietchen closed 4 years ago

Daniel-Mietchen commented 5 years ago

as per https://education.cadre.virginia.edu/#/workshop/1556 and https://arcs.virginia.edu/software-design-devel

Daniel-Mietchen commented 5 years ago

fun piece of Python:

import this
Daniel-Mietchen commented 5 years ago
Daniel-Mietchen commented 5 years ago
Daniel-Mietchen commented 5 years ago
Daniel-Mietchen commented 5 years ago

look into refactoring environments to help improve code legibility

Daniel-Mietchen commented 5 years ago

rough outline of what a given piece of software is supposed to do

def solve_problem(data):
  return result
def get_input(filename):
  return data
def print_output(result):
  pass
def main():
  data=get_input(filename)
  result=solve_problem(data)
  print_output(result)
Daniel-Mietchen commented 5 years ago

Spyder allows for code folding (i.e. hiding portions of code), similar to JavScript "collapse"

Syntax checkers (linters) for Python:

Daniel-Mietchen commented 5 years ago

Python debugger pdb is built into Spyder

Daniel-Mietchen commented 5 years ago

For the Lab, I set up this Gdoc for further notes.