← Back to course
5/6
Week 06 Β· Procedures and Abstraction

Friday

Impact Friday: Read the license
// Splitting a big problem into pieces you can reuse
⏱ about 20 min

Friday: Impact Friday: Read the License

Comet and Wren compare two shared libraries. Both can draw temperature charts for Beacon.

Greenhouse Helpers says anyone may use it, change it and share it, as long as they give credit.

Sprout Tools says the code is copyrighted, and nobody may change it or share it.

"Sprout Tools has prettier charts," Comet says.

Wren taps the license lines. "But we want to change the colors and share Beacon with other outposts."

Nova hovers between the two printouts. "Interesting," she says. "Which license fits what you plan to do?"

Comet reads both again, more slowly this time.

Who owns code?

Material created on a computer is the intellectual property of its creator, or of an organization.

Using material someone else created, without permission, and presenting it as your own is plagiarism. It may have legal consequences.

Material created by someone other than you should always be cited.

Licenses

A license tells you how you may use someone's work. Software licenses include copyright, freeware and many open-source licensing schemes.

Creative Commons is a public copyright license that lets an otherwise copyrighted work be shared freely.

Open source programs are made freely available and may be shared again and changed.

When two libraries meet the same need, a developer can choose the one with the least restrictive license.

Story libraryWhat its license allowsFits Beacon's plan?
Greenhouse HelpersUse, change and share, with creditYes: Beacon can change colors and share
Sprout ToolsUse only; no changes, no sharingNo: Beacon cannot be shared with it inside
CHOOSE THE LIBRARY
  • Read the question.
  • Tap your answer.
Beacon will change the chart colors and share the app. Which story library fits?
What must the crew do when they use Greenhouse Helpers?
Comet copies a chart procedure and puts only her own name on it. What is that?
StatementTrue or false?
Material created on a computer is the intellectual property of its creator or an organization.?
Code you find shared online is always free to change and share.?
Open source programs may be shared again and changed.?
Citing someone else's work is only needed if you change it.?
WHY THIS EXERCISEReading licenses and giving credit are part of using libraries responsibly.

Week review

Week reviewTrue or false?
A procedure may have parameters and return values.?
Arguments are the values passed to parameters when a procedure is called.?
Procedural abstraction means you must know how a procedure works inside.?
Splitting a program into subprograms is modularity.?
RANDOM(1, 3) could return 1, 2 or 3.?
WHY THIS EXERCISEThese ideas let Beacon grow without becoming a tangle of copied code.
ORDER THIS WEEK'S BEACON WORK
  • Tap a card.
  • Then tap its spot.
1First
2Next
3Then
4Last
Using someone else's work as your own, without permission, is called ____. Type one word.
WHY THIS EXERCISEKnowing the word helps you spot it and avoid it in your own projects.
A public copyright license that lets work be shared freely: Creative ____.
Programs made freely available to share and change are open ____.
On paper, design a short credit note for Beacon that names Greenhouse Helpers and the crew that wrote it.

What a week, developer. Tomorrow is Mission Quest: procedures your family can act out.

← Thursday