How can a small program be easier to change?

A named function groups a responsibility behind a clear input and output.

Computer science & programmingTopic · Selected readingSome background helpful
Background and goal

Try the short introduction first, or bring equivalent reading experience. Obtain the specified text before beginning the longer reading.

Split a word-count script into reading, counting and reporting functions; explain each boundary.

Useful preparation

Start here if the background is new. Equivalent experience is enough.

Your pathway

5 steps · 14 hours
  1. 01

    Locate the reading

    0.25h · week 1
    Reading notes and task
    First fifteen minutesCheck the edition or article version and locate the passages below. Write the question you want the reading to resolve.
    Your outputEdition and passage record
  2. 02

    Study the opening

    4h · week 1
    Python tutorial: modules

    Python Software Foundation · reference

    Python tutorial: defining functions and modules

    Free full text

    Open the reading
    Reading notes and task

    Python tutorial: modules. A named function groups a responsibility behind a clear input and output.

    Try thisRead Python tutorial: defining functions and modules. Reconstruct the central argument using premises and a conclusion.
    Your outputArgument reconstruction
    Check your understanding

    Answer this question in your own words: How can a small program be easier to change?

    Hint

    Name the claim, then explain why a reader might accept it.

    Compare with an example answer

    A named function groups a responsibility behind a clear input and output.

    What to look for

    • States a claim that addresses the question
    • Connects the claim to a passage or observation
    • Separates the author’s argument from personal agreement

    Common mistake: Summarising a biography instead of explaining the argument.

    Start this pathway to keep your answers in My learning.

  3. 03

    Read for contrast

    5h · week 2
    Python tutorial: modules

    Python Software Foundation · reference

    Python tutorial: defining functions and modules

    Free full text

    Open the reading
    Reading notes and task

    Python tutorial: modules. A named function groups a responsibility behind a clear input and output.

    Try thisRead Python tutorial: defining functions and modules. Compare two passages that put pressure on your initial interpretation.
    Your outputTwo-passage comparison
  4. 04

    Develop an example

    3h · week 3
    Reading notes and task
    Try thisSplit a word-count script into reading, counting and reporting functions; explain each boundary.
    Your outputWorked example
    Check your understanding

    What would make your activity a convincing example?

    Hint

    Split a word-count script into reading, counting and reporting functions; explain each boundary.

    Compare with an example answer

    A useful response carries out the task: Split a word-count script into reading, counting and reporting functions; explain each boundary. It records the observation or passage used and explains how it bears on the question.

    What to look for

    • Completes the specific task
    • Shows evidence or reasoning rather than only a conclusion
    • Identifies an alternative explanation or reading

    Common mistake: Presenting an opinion without showing the example it rests on.

    Start this pathway to keep your answers in My learning.

  5. 05

    Write a considered response

    1.75h · week 4
    Reading notes and task
    Try thisWrite a response to “How can a small program be easier to change?” that uses both passages and tests its own conclusion. More functions do not automatically improve a design.
    Your outputReasoned response with references
    Check your understanding

    What is one conclusion this reading does not establish?

    Hint

    Test the boundary: More functions do not automatically improve a design.

    Compare with an example answer

    More functions do not automatically improve a design.

    What to look for

    • States a specific limit
    • Explains why the reading does not warrant the stronger conclusion
    • Distinguishes a limitation from dismissing the work

    Common mistake: Treating a useful interpretation as an unrestricted fact.

    Start this pathway to keep your answers in My learning.

All 1 resources

Background, different viewpoints, and further reading.

  • Python tutorial: modules

    Python Software Foundationreferencecore

    A named function groups a responsibility behind a clear input and output.

    Python tutorial: defining functions and modules