Edited, memorised or added to reading queue

on 09-Sep-2018 (Sun)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

adding article
you MUST have a user
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Wikipedia:FAQ - Wikipedia, the free encyclopedia
cal, legal, financial, safety, and other critical issues? 8 Who owns Wikipedia? 9 Why am I having trouble logging in? 10 How can I contact Wikipedia? How do I create a new page? <span>You are required to have a Wikipedia account to create a new article—you can register here. To see other benefits to creating an account, see Why create an account? For creating a new article see Wikipedia:Your first article and Wikipedia:Article development; and you may wi




Insects are the only invertebrates to have developed active flight capability
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Insect - Wikipedia, the free encyclopedia
ns, criss-crossing each other in a sandwich pattern, while the exocuticle is rigid and hardened . [ 22 ] :22–24 The exocuticle is greatly reduced in many soft-bodied insects (e.g., caterpillars ), especially during their larval stages. <span>Insects are the only invertebrates to have developed active flight capability, and this has played an important role in their success. [ 22 ] :186 Their muscles are able to contract multiple times for each single nerve impulse, allowing the wings to beat faster




pplication Programming Interface

The term API is an acronym, and it stands for “Application Programming Interface.”

Think of an API like a menu in a restaurant. The menu provides a list of dishes you can order, along with a description of each dish. When you specify what menu items you want, the restaurant’s kitchen does the work and provides you with some finished dishes. You don’t know exactly how the restaurant prepares that food, and you don’t really need to.

Similarly, an API lists a bunch of operations that developers can use, along with a description of what they do. The developer doesn’t necessarily need to know how, for example, an operating system builds and presents a “Save As” dialog box. They just need to know that it’s available for use in their app.

This isn’t a perfect metaphor, as developers may have to provide their own data to the API to get the results, so perhaps it’s more like a fancy restaurant where you can provide some of your own ingredients the kitchen will work with.

But it’s broadly accurate. APIs allow developers to save time by taking advantage of a platform’s implementation to do the nitty-gritty work. This helps reduce the amount of code developers need to create, and also helps create more consistency across apps for the same platform. APIs can control access to hardware and software resources.

APIs Make Life Easier for Developers

Let’s say you want to develop an app for an iPhone. Apple’s iOS operating system provides a large number of APIs—as every other operating system does—to make this easier on you.

If you want to embed a web browser to show one or more web pages, for example, you don’t have to program your own web browser from scratch just for your application. You use the WKWebView API to embed a WebKit (Safari) browser object in your application.

If you want to capture photos or video from the iPhone’s camera, you don’t have to write your own camera interface. You use the camera API to embed the iPhone’s built-in camera in your app. If APIs didn’t exist to make this easy, app developers would have to create their own camera software and interpret the camera hardware’s inputs. But Apple’s operating system developers have done all this hard work so the developers can just use the camera API to embed a camera, and then get on with building their app. And, when Apple improves the camera API, all the apps that rely on it will take advantage of that improvement automatically.

This applies to every platform. For example, do you want to create a dialog box on Windows? There’s an API for that. Want to support fingerprint authentication on Android? There’s an API for that, too, so you don’t have to test every different Android manufacturer’s fingerprint sensor. Developers don’t have to reinvent the wheel over and

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

What Is an API?
[emptylink] What Is an API? by Chris Hoffman on March 21st, 2018 You’ve likely seen the term “API” come up. Operating system, web browser, and app updates often announce new APIs for developers. But what is an API? A<span>pplication Programming Interface The term API is an acronym, and it stands for “Application Programming Interface.” Think of an API like a menu in a restaurant. The menu provides a list of dishes you can order, along with a description of each dish. When you specify what menu items you want, the restaurant’s kitchen does the work and provides you with some finished dishes. You don’t know exactly how the restaurant prepares that food, and you don’t really need to. Similarly, an API lists a bunch of operations that developers can use, along with a description of what they do. The developer doesn’t necessarily need to know how, for example, an operating system builds and presents a “Save As” dialog box. They just need to know that it’s available for use in their app. This isn’t a perfect metaphor, as developers may have to provide their own data to the API to get the results, so perhaps it’s more like a fancy restaurant where you can provide some of your own ingredients the kitchen will work with. But it’s broadly accurate. APIs allow developers to save time by taking advantage of a platform’s implementation to do the nitty-gritty work. This helps reduce the amount of code developers need to create, and also helps create more consistency across apps for the same platform. APIs can control access to hardware and software resources. APIs Make Life Easier for Developers Let’s say you want to develop an app for an iPhone. Apple’s iOS operating system provides a large number of APIs—as every other operating system does—to make this easier on you. If you want to embed a web browser to show one or more web pages, for example, you don’t have to program your own web browser from scratch just for your application. You use the WKWebView API to embed a WebKit (Safari) browser object in your application. If you want to capture photos or video from the iPhone’s camera, you don’t have to write your own camera interface. You use the camera API to embed the iPhone’s built-in camera in your app. If APIs didn’t exist to make this easy, app developers would have to create their own camera software and interpret the camera hardware’s inputs. But Apple’s operating system developers have done all this hard work so the developers can just use the camera API to embed a camera, and then get on with building their app. And, when Apple improves the camera API, all the apps that rely on it will take advantage of that improvement automatically. This applies to every platform. For example, do you want to create a dialog box on Windows? There’s an API for that. Want to support fingerprint authentication on Android? There’s an API for that, too, so you don’t have to test every different Android manufacturer’s fingerprint sensor. Developers don’t have to reinvent the wheel over and over. APIs Control Access to Resources APIs are also used to control access to hardware devices and software functions that an application may not necessarily have permission to use




Once I'm comfortable with the main lines, I create a PGN file with them (and eventually some key variations). There are far too many lines in an opening book to memorize them all, so when I go through a third time, this time looking at all the variations as well, I evaluate the variations as worth knowing or otherwise. Those deemed worthwhile get added to the file, while those that I would never intend / allow to be played are immediately forgotten
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

How do you read an opening book? : chess
main lines, this time looking at the short variations as well. These are typically tactical shots that one must be aware to avoid (or exploit), several of which may persist into the middlegame. <span>Once I'm comfortable with the main lines, I create a PGN file with them (and eventually some key variations). There are far too many lines in an opening book to memorize them all, so when I go through a third time, this time looking at all the variations as well, I evaluate the variations as worth knowing or otherwise. Those deemed worthwhile get added to the file, while those that I would never intend / allow to be played are immediately forgotten. As an example of what I mean, if you don't play the French as black, you don't need to book up on both the advance variation and the Tarrasch -- just pick one and always play that (at




When all is said and done, excluding traps, I like my PGN file to have no more than 10-20 variations. Annotations are also generally good, as you might forget some of the ideas, and it would be bad to memorize a line and forget whether it is good or a trap to avoid. I also go back through the games in the book and include the relevant ones in my PGN for reference.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

How do you read an opening book? : chess
is that you should probably make an effort to be aware of transpositions between lines that could take you from a variation that you are well prepared for into one that you know nothing about. <span>When all is said and done, excluding traps, I like my PGN file to have no more than 10-20 variations. Annotations are also generally good, as you might forget some of the ideas, and it would be bad to memorize a line and forget whether it is good or a trap to avoid. I also go back through the games in the book and include the relevant ones in my PGN for reference. Only now does it make sense to start trying to memorize. I like to do this with by practicing with physical pieces, but there is now software to help as well. The nice thing about this




There are six steps in the original technique:

  1. Decide on the task to be done.
  2. Set the pomodoro timer (traditionally to 25 minutes).[1]
  3. Work on the task.
  4. End work when the timer rings and put a checkmark on a piece of paper.[5]
  5. If you have fewer than four checkmarks, take a short break (3–5 minutes), then go to step 2.
  6. After four pomodoros, take a longer break (15–30 minutes), reset your checkmark count to zero, then go to step 1.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Pomodoro Technique - Wikipedia
e design, the method has been adopted in pair programming contexts.[4] Contents 1 Underlying principles 2 Tools 2.1 Software 3 See also 4 References 5 External links Underlying principles[edit] <span>There are six steps in the original technique: Decide on the task to be done. Set the pomodoro timer (traditionally to 25 minutes).[1] Work on the task. End work when the timer rings and put a checkmark on a piece of paper.[5] If you have fewer than four checkmarks, take a short break (3–5 minutes), then go to step 2. After four pomodoros, take a longer break (15–30 minutes), reset your checkmark count to zero, then go to step 1. The stages of planning, tracking, recording, processing and visualizing are fundamental to the technique. In the planning phase, tasks are prioritized by recording them in a "To Do Toda




#cs #cs135 #racket #style
code that appears in a .pdf document (e.g., presentation slides and as- signments) may contain hidden or unusual symbols
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Never include Comment Boxes or images in your submissions. Do not copy-and-paste from the Interactions window or from .pdf documents into the Definitions window, or your assignment may become unmarkable.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Always follow a semicolon by a space to improve readability.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Additional comments should begin with capitals but do not need to end with periods.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Use in-line comments sparingly.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
file should start with a header to identify yourself, the term, the assignment and the problem.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Insert two consecutive blank lines between functions or “function blocks”, which include the documentation (e.g., design recipe) for the function.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Insert one blank line before and after the function definition: do not use more than one consecu- tive blank line within a function block.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
If you have many functions and/or large function blocks, you may want to insert a row of symbols (such as the * ’s used in the file header above) to separate your functions.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
If the question asks you to write more than one function, the file should contain them in the order specified by the assignment.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Helper functions are placed above the assignment function they are helping.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Indentation plays a big part in readability. It is used to indicate level of nest- ing, to align related subexpressions (e.g., arguments of a function), and to make keywords more visible. DrRacket’s built-in editor will help with these.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
If you start an expression (my-fn and then hit enter or return, the next line will automat- ically be indented a few spaces.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
However, DrRacket will never break up a line for you, and you can override its indentation simply by putting in more spaces or erasing them.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
DrRacket also provides a menu item for reindenting a selected block of code (Racket > Reindent) and even a keyboard shortcut reindenting an entire file (Ctrl+I in Windows).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
When to start a new line (hit enter or return) is a matter of judgment. Try not to let your lines get longer than about 70 characters, and definitely no longer than 80 characters.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Style marks may be deducted if you exceed 80 characters on any line of your assignment.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
In DrRacket there is a setting you can change to show you when you’ve exceeded the line length: Edit -> Preferences -> Editing tab -> General Editing sub-tab -> Maximum character width guide.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
your examples and tests may exceed the line length guidelines when there is no obvious place to break the line.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
If indentation is used properly to indicate level of nesting, then closing parentheses can just be added on the same line as appropriate.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Some styles for other programming languages expect that you place closing brackets on sep- arate lines that are vertically lined up with the opening brackets. However, in Racket this tends to negatively effect the readability of the code and is considered “poor style”.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
For conditional expressions, placing the keyword cond on a line by itself, and aligning not only the questions but the answers as well can improve readability (provided that they are short). However, this recommendation is not strictly re- quired. Each question must appear on a separate line, and long questions/answers should be placed on separate lines.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
choose names for functions and parameters that are descriptive, not so short as to be cryptic, but not so long as to be awkward. The detail required in a name will depend on context: if a function consumes a single number, call- ing that number n is probably fine.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
It is a Racket convention to use lower-case letters and hyphens, as in the identifier top-bracket-amount. The rare exception is when proper names are used such as Newton. In other languages, instead of top-bracket-amount one might write this as TopBracketAmount or top _ bracket _ amount, but avoid these styles when writing Racket code.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Flashcard 3302385388812

Question
Economic conditions are more important. A people may possess ordered institutions, a lofty moral code, and even a flair for the minor forms of and, like the American Indians; and yet if it remains in the hunting stage, if it depends for its existence upon the precarious fortunes of the chase, it will never quite pass from barbarism to civilization.
Answer
[default - edit me]

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







#cs #cs135 #racket #style
predicates that re- turn a Boolean value usually end in a question mark (e.g. zero?)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
functions that do conversion use a hyphen and greater-than sign to make a right arrow (e.g. string->number). This convention is also used in contracts. In some course materials you may see an actual arrow produced (e.g. string→number), but you should always type them as two characters (->).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
If the value of cost-per-minute changes, it is much easier to make one change to the definition of the constant than to search through an entire program for the value 0.75. When this value is found, it is not obvious if it refers to the cost per minute, or whether it serves a different purpose and should not be changed.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
As values used in testing and ex- amples become more complicated (e.g., lists, structures, lists of structures), it can be very helpful to define named constants to be used in multiple tests and examples.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
• Use one blank line before and after your function definition.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Make it clear where function blocks begin and end (i.e., two blank lines between function blocks).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Style marks may be deducted if you have poor headers, identifier names, whitespace, indentation or layout.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
If you hand in only code, even if it works perfectly, you will earn only a fraction of the marks available.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
The purpose statement has two parts: an illustration of how the function is applied, and a brief description of what the function does. The description does not have to explain how the computation is done; the code itself addresses that question.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
The purpose starts with an example of how the function is applied, which uses the same parameter names used in the function header.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Do not write the word “purpose”.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
The description must include the names of the parameters in the purpose to make it clear what they mean and how they relate to what the function does (choosing meaningful parameter names helps also). Do not include parameter types and requirements in your purpose statement — the contract already contains that information.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
If the description requires more than one line, “indent” the next line of the purpose 2 or 3 spaces.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
If your purpose requires more than two or three lines, you should probably consider re-writing it to make it more condensed. It could also be that you are describing how your function works, not what it does.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
If you find the purpose of one of your helper functions is too long or too complicated, you might want to reconsider your approach by using a differ- ent helper function or perhaps using more than one helper function.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
The contract contains the name of the function, the types of the arguments it con- sumes, and the type of the value it produces.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
If there are important constraints on the parameters that are not fully described in the contract, add an additional requires section after the contract. For example, this can be used to indicate a Num must be in a specific range, a Str must be of a specific length, or that a (listof ...) cannot be empty. Indent multiple requirements.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
The examples should be chosen to illustrate ‘typical’ uses of the function and to illuminate some of the difficulties to be faced in writing it.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Examples should cover each case described in the data definition for the type consumed by the function.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
The examples do not have to cover all the cases that the code addresses; that is the job of the tests, which are designed after the code is written.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
It is very useful to write your examples before you start writing your code. These examples will help you to organize your thoughts about what exactly you expect your function to do. You might be surprised by how much of a difference this makes.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Typically, for recursive data, your examples should include each base case and at least one recursive case.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Develop your purpose, contract and examples before you write the code for the function.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
use the provided basic tests when you submit your assignments. If your code does not pass these tests, then you should carefully check your submission for spelling errors and the like.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
You do not have to repeat your examples in your tests section. Your examples also count as tests.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Make sure that your tests are actually testing every part of the code. For example, if a conditional expression has three possible outcomes, you have tests that check each of the possible outcomes.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
your tests should be directed: each one should aim at a particular case, or section of code.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Some people write tests that use a large amount of data; this is not necessarily the best idea, because if they fail, it is difficult to figure out why.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Others write lots of tests, but have several tests in a row that do essentially the same thing. It’s not a question of quantity, but of quality.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
design a small, comprehensive test suite.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Never figure out the answers to your tests by running your own code. Work out the correct answers independently (e.g., by hand).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Do not use the word “helper” in your function name: use a descriptive function name.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Helper functions only require a purpose, a contract and at least one illus- trative example. You are not required to provide tests for your helper functions (but often it is a very good idea).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
we have seen students avoid writ- ing helper functions because they did not want to provide documention for them. This is a bad habit that we strongly discourage.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Writing good helper functions is an essential skill in software development and simply writing a purpose and contract should not discourage you from writing a helper function.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Marks may be deducted if you are not using helper functions when appropriate. Helper functions should be placed before the required function in your submission
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Functions we ask you to write require a full design recipe. Helper functions only require a purpose, a contract and an example.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
If we ask you to write two mutually recursive functions, only one of the functions requires tests.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
When using wrapper (primary) functions, only one of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use your judgement to choose the function where ex- amples and tests seem most appropriate.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
For functions defined with a local block, no tests or examples are necessary
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Add a blank line after each local function definition.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Add a blank line after each block of local constant definitions, as you would for non-local constant definitions.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
A user-defined type can be a structure (defined with define-struct) or simply a descriptive definition.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
With the exception of the Racket built-in types (e.g., Posn), every user- defined type used in your assignment must be defined at the top of your file (unless an assignment instructs you otherwise).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
User-Defined types that appear in contracts and other type definitions should be capitalized (use My-Type, not my-type).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
When you define a structure, it should be followed by a type definition, which specifies the type for each of the fields.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
A descriptive definition can be used to define a new user-defined type to improve the readability of contracts and other type definitions
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
For any non-trivial user-defined type, there is a corresponding template for a func- tion that consumes the new type.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Since a template is a general framework for a function that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is recommended, but not required unless otherwise specified.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
As you combine user-defined types, their templates can also be combined. See the course handouts for more examples.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
general guidelines at the beginning of this guide regarding whitespace, line lengths, having meaningful parameter names, etc. also apply to C.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Every function you write should have a purpose statement. The format in C is nearly identical to the Racket format.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Unlike in Racket, in C you do not have to indicate the contract types.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
NOTE: the effects and time components of the contract are only required once they have been introduced in the lectures.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
NOTE: whenever feasible, assert any conditions that appear in the requires section.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
In CS136, you may adopt any style but you should adhere to consistent usage of indentation, whitespaces, and code layout with the goal of making your code more readable.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
• No more than one C statement per line.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
• Add a space after commas in function calls and semicolons in for loops.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
• Add spaces around operators in expressions to make them easier to read.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
• Break long lines of code (more than 80 columns) onto 2 or more lines.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
Your code should be presented so that a matching pair of braces is easy to identify and all lines of code within a set of braces should be indented consistently.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
• Indentation should be consistantly 2 or 3 spaces (not tab characters).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
NOTE that in C (unlike Racket) it is not proper style to place all ending braces on one line (}}}).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
In C, the underscore character is often used to separate words within an identifier. No separating character, or a change in case are also common conventions.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#cs #cs135 #racket #style
An identifier in Racket named one-word? might look like one _ word, is _ one _ word, isoneword or isOneWord in C. The choice is yours on which convention you would like to use but try to be consistent
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#curiosity
Edgar Allan Poe is known for his dark, macabre writing. We're not sure if this is a case of life imitating art or vice versa, but Poe's personal life was similarly tragic. The famed poet died at the young age of 40 on October 7, 1849, and how it happened sounds like a page from one of his tales: it remains a mystery.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Unknown title
ptop_chromebook Smart Tab About Contact Press Jobs Team Blog Creators Advertise Privacy Terms History No One Knows How Edgar Allan Poe Died January 9, 2018 Written by Joanie Faletto 4,177 Share <span>Edgar Allan Poe is known for his dark, macabre writing. We're not sure if this is a case of life imitating art or vice versa, but Poe's personal life was similarly tragic. The famed poet died at the young age of 40 on October 7, 1849, and how it happened sounds like a page from one of his tales: it remains a mystery. The Tell-Tale Heartbreak The timeline of Poe's life can be described by the deaths of people around him. His mother passed away when he was two, at which point the three Poe children we




Flashcard 3303292669196

Question
Uncover one of these common problems with statistics. Step 1:
Answer
Who paid for the survey : self selection bias

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3303294766348

Question
Uncover problem with statistics Step 2:
Answer
Voluntary response sample, biased towards strong opinions, negative reports

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3303298174220

Question
Uncover common problems with statistics Step 3
Answer
Just because one factor is seemingly connected to another (correlation), that doesn’t necessarily imply causation (that one caused the other)!

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3303300533516

Question
Uncover common problems with statistics Step 4:
Answer
journal bias . Journals are likely to report positive results (for example, a drug trial that had a positive outcome), rather than a drug trial that failed.

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3303302892812

Question
Uncover common problems in statistics Step 5:
Answer
Sample size too limited in scope, unrepresentative of the studied population

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3303305252108

Question
Uncover common problems with statistics Step 6:
Answer
Misleading percentages => Unemployment “slowed by 50%” = previously 100,000 new unemployment claims per month => 50,000 new unemployed people a month.

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3303307087116

Question
Uncover common problems in statistics Step 7:
Answer
Beware of precise numbers : 3,150,023 households in the U.S. are dog owners = highly unlikely (and almost impossible) anyone has surveyed all of the households in the U.S. They surveyed a sample, 3,150,023 is an estimate (should have been reported as 3 million to avoid being misleading)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3303308922124

Question
Uncover common problems with statistics Step 0:
Answer
Question every statistic that you read.

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







#Attack_Defense
It will only be a masterpiece ifyou let it! It will of course be entertaining, but what Jacob really wants is to make you (yes YOU!) a better chess player. To do that he needs you to give the puzzles (the heart ofthe book) everything you've got... And then some
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Have you ever wondered why most players reach a certain level and stay there forever? They will make (rapid?!) progress as a junior but somewhere in their early twenties the learning curve just flatlines and they will keep the same rating until old age and the law of gravity forces a decline. A lot of these players play a lot of chess, and try to also study and train. So why do they stay at the same level? Well, chess is different from many other activities where you will, almost automatically, keep on getting better throughout your life
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
the brain needs a special map for these kinds of activities, so it has to be learned at an early age —
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
That explains why so many players get stuck at a certain level - their map is done!
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
But that's where Aagaard (and other heavyweights like Dvoretsky and Yusupov) come to the rescue! The books in this series are designed to change the 'chess map' in your brain! Jacob wants to transform that narrow path of finding good moves into a freeway where good moves flow!
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
So this is the promise: Ifyou read this book and give the puzzles all you've got, it will change the chess map in your brain and make you a better player.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Your brain doesn't want a new freeway, and it doesn't like change and it definitely doesn't like construction work right in the brain's chess-centre when the 'city' is already fully constructed. So it will fight against the improvements and it will fight hard!
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Example one: You are solving a puzzle and think you have the solution but there is something 'fuzzy' in one of the lines — so instead of insisting on being sure (forcing your brain to calculate deeper), you check the solution (doh!).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Example two: You are looking at a puzzle and can't decide between two moves, so you decide to check the first move in the solution (to see ifyou are on the right track).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Example three: You have successfully solved, let's say, five puzzles a day for three days, and then suddenly you run out of energy (feel drained) and don't touch the book for a week. When you finally pick it up again you just can't concentrate.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Flashcard 3306169961740

Tags
#cs #cs135 #racket #style
Question
An identifier in Racket named [...] might look like one _ word, is _ one _ word, isoneword or isOneWord in C. The choice is yours on which convention you would like to use but try to be consistent
Answer
one-word?

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
An identifier in Racket named one-word? might look like one _ word, is _ one _ word, isoneword or isOneWord in C. The choice is yours on which convention you would like to use but try to be consistent

Original toplevel document (pdf)

cannot see any pdfs







#cs #cs135 #racket #style
one _ word, is _ one _ word, isoneword or isOneWord
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on


Parent (intermediate) annotation

Open it
An identifier in Racket named one-word? might look like one _ word, is _ one _ word, isoneword or isOneWord in C. The choice is yours on which convention you would like to use but try to be consistent

Original toplevel document (pdf)

cannot see any pdfs




Flashcard 3306175204620

Tags
#cs #cs135 #racket #style
Question
An identifier in Racket named one-word? might look like one _ word, is _ one _ word, isoneword or isOneWord in C. The choice is yours on which convention you would like to use but try to be [...]
Answer
consistent

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
an> An identifier in Racket named one-word? might look like one _ word, is _ one _ word, isoneword or isOneWord in C. The choice is yours on which convention you would like to use but try to be <span>consistent <span>

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306176777484

Tags
#cs #cs135 #racket #style
Question
In C, the [...] character is often used to separate words within an identifier. No separating character, or a change in case are also common conventions.
Answer
underscore

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
In C, the underscore character is often used to separate words within an identifier. No separating character, or a change in case are also common conventions.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306180447500

Tags
#cs #cs135 #racket #style
Question
In C, the underscore character is often used to separate words within an [...]. No separating character, or a change in case are also common conventions.
Answer
identifier

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
In C, the underscore character is often used to separate words within an identifier. No separating character, or a change in case are also common conventions.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306182020364

Tags
#cs #cs135 #racket #style
Question
In C, the underscore character is often used to separate words within an identifier. No [...], or a change in case are also common conventions.
Answer
separating character

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
In C, the underscore character is often used to separate words within an identifier. No separating character, or a change in case are also common conventions.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306183593228

Tags
#cs #cs135 #racket #style
Question
In C, the underscore character is often used to separate words within an identifier. No separating character, or a [...] are also common conventions.
Answer
change in case

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
In C, the underscore character is often used to separate words within an identifier. No separating character, or a change in case are also common conventions.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306185166092

Tags
#cs #cs135 #racket #style
Question
NOTE that in C (unlike Racket) it is not proper style to place all ending [...].
Answer
braces on one line (}}})

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
NOTE that in C (unlike Racket) it is not proper style to place all ending braces on one line (}}}).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306186738956

Tags
#cs #cs135 #racket #style
Question
• Indentation should be consistantly [...].
Answer
2 or 3 spaces (not tab characters)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
• Indentation should be consistantly 2 or 3 spaces (not tab characters).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306188311820

Tags
#cs #cs135 #racket #style
Question
Your code should be presented so that a matching [...] is easy to identify and all lines of code within a set of braces should be indented consistently.
Answer
pair of braces

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Your code should be presented so that a matching pair of braces is easy to identify and all lines of code within a set of braces should be indented consistently.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306189884684

Tags
#cs #cs135 #racket #style
Question
Your code should be presented so that a matching pair of braces is easy to identify and all lines of code within a [...] should be indented consistently.
Answer
set of braces

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Your code should be presented so that a matching pair of braces is easy to identify and all lines of code within a set of braces should be indented consistently.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306191457548

Tags
#cs #cs135 #racket #style
Question
• Break long lines of code (more than 80 columns) onto [...] lines.
Answer
2 or more

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
• Break long lines of code (more than 80 columns) onto 2 or more lines.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306193030412

Tags
#cs #cs135 #racket #style
Question
• Break long lines of code (more than [...] columns) onto 2 or more lines.
Answer
80

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
• Break long lines of code (more than 80 columns) onto 2 or more lines.

Original toplevel document (pdf)

cannot see any pdfs







#Attack_Defense
These are all standard brain-tactics to avoid changes. There are many more (your brain is pretty good at this) so you need a strategy to get the job done!
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
1) Solve the puzzles with a friend. Just meet up and set up the positions and try to solve them (individually of course) - it makes it easier to concentrate when you are competing with a friend.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
2) Set a goal and give yourself a reward for achieving it. I do this all the time -an example could be that I allow myself to buy something (Thank you for the iPad, Jacob!) after doing the first 50 puzzles.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
3) Insist on doing at least one puzzle a day for at least a month — make it a top priority (say to yourself that you are not allowed to eat anything on any given day before at least one puzzle is solved).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Attacking chess is conceptually quite simple: the idea is that an advantage in a small area of the board can be more important than a breakdown on the rest of the board, if that small part of the board is where the king is located.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
The superiority is fleeting in nature and swift in execution.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
It is not that material does not matter, it is needed in order to deliver mate, but it comes second to the other great force of life, and chess, time.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Include all the Pieces in the Attack As a chess trainer this is the obvious place to start teaching how to attack, because this is the place where most of the readers will fail in their own games.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
this is where most amateur chess players go astray.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Including all the pieces in the attack is about overpowering your opponent in his keep, about having enough foot soldiers to give up in order for the one lonely killer to make it to the opponent's king
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Many attacks fail because the last piece is missing in the attack. The piece that could have been there to clear the way, or even slip in the knife.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Obviously it is not always possible to bring all your pieces into the attack, but to be a good attacking player you need to develop a good feeling of when you can and when you cannot. In order to do this you need a good feeling for:
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Momentum: I would say that they are the soul of strategic chess, because the game is taking place around the structures the pawns establish, and creating the positions that benefit your pieces is what chess strategy is all about.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Dynamic chess on the other hand is all about momentum.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
If an attack is hanging on a knife edge and success by no means seems certain, it is not the pawn structure or the body count that matters the most, it is the speed with which the attack is carried out.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
But there are a few things we can do: we can avoid wasting time; we can threaten something that forces our opponent to make moves that do nothing for his defence — and so on...
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
A good feeling formomentum -anunderstanding ofhow to bend the laws ofthe physics inorder to progress the attack - is needed if you want to become a good attacker.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Many strong players have never fully developed this and in my opinion not understood that it exists, instead thinking that their attacks failed due to miscalculation.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Colour is a simple idea: that only the Rook and the King are truly colour blind
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
The Queen has some leanings, while the Knight, Bishop and Pawn can only control one colour of squares at one time.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
For this reason it is standard that weaknesses will form on one colour of squares. This happens because we place our pawns to support our pieces. But this also means that the pieces at times will not support the pawns; it is a matter of rank.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
their attacking potential, I would rate them like this: queen, knight, bishop, pawn, rook and king; though I am a bit uncertain that the rook and pawn should be ordered that way around.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Attacks are very difficult to carry out without queens or knights, but happen without pawns, rooks and kings all the time.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
For this reason it is natural that attacks will happen quite frequently in harmony on one colour ofsquares. A good feeling for this is a strong asset for the attacking player.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Quantity beats Quality A logical follow-on from the basic ideas that pieces can only attack a square once, that time is more important than material and that rooks are not very agile attackers, is that the exchange sacrifice is a big part of attacking chess.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
But there are other sacrifices that can propel the attack from promising to decisive; all based on the same underlying principle as include all the pieces in the attack: a piece that does not participate in the attack has no value for the attack
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
For this reason the quantity of attackers is often more important than the firepower of the attackers themselves. A mate delivered with a pawn is just as valid as a mate delivered with a queen;
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Attack the Weakest Square With this theme we are into basic chess theory; which is also relevant for attacki n g chess, of course. An attack of any sort, being the type we discuss in this book, or the slow creeping up of a bigger army, which is what can happen if our attack fails, will be directed at the weaknesses in the position
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
A chain always breaks at its weakest link, as does a window pane. Only in rare cases where the force is so massive that it can go through anything, is this not the case. Understanding where all of the opponent's weaknesses are and being quick to spot them is an important part ofbeing a good chess player.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Attack the Strongest Square This is more a technique than a theme; based on diversion. You attack one square that the opponent seemingly is in full control of, but because he has to defend it all the same, he will have to make concessions elsewhere in his position.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Evolution/Revolution: The principle is quite simple: attacks happen in waves. First we build up our forces, looking for the right moment to go from mobilization to attack. The mobilization is the evolution; the execution that changes the position for good is the revolution.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
What I am trying to teach with this theme is that the wave goes down as well as up. After the position changes, the conditions for our forces will have changed again, and it is often time to build up (evolution) a bit more before making further revolutions. It is an understanding ofhow a short regrouping can be vital for any attack being successful; even ifwe have invested a pawn, piece, rook, queen, or army in the attack. 'Don't panic!' is the short version, because this is all about psychology.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Kill zone: We are the aggressors, the colonialists, the oppressors. We need to create the death ground for the opponent's king — and then we have to make sure he does not escape from it!
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Only Move At the heart of defensive chess is the concept of the only move; that there are positions where only one move does not lose and we are able to find this. It can of course also be the only move that fends off the attack, while others allow the opponent to escape unharmed from an overreaching attack.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
There will be a lot of techniques with which we can find the only move. Elimination is the most common one, but it does not really matter. The main thing is that we do not play a move that we should have worked out was doomed to fail.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Comparison We always choose the wrong rook, as Bent Larsen used to say. In this short chapter, the job will among others be to choose the right rook; to decide ifyou should throw in the check or not and so on. Using the technique of comparison we can more easily make this decision.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Prophylaxis In defending, nothing is more important than a good fe eling for your opponent's ideas, options and desires. Knowing what they are, when to react against them, when to ignore them or just slightly rejig your plans to take them into consideration, is priceless. The question "what is my opponent's idea?" should be one we ask ourselves often. In this chapter not asking it will be a blockade to solving the exercises.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Active Defence Attack is the best defence; or so the saying goes. As with most things in life, this is true, but only sometimes. There are times when a dubious-looking position can be saved with a perpetual check, forcing a drawable endgame or just by reacting actively to seemingly devastating threats. Just because we are on the defensive, we should not be blind to reacting actively.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Black has the most attractive minor pieces one could ever wish for; but still mate does not come easily. What should Black do in order to strengthen his attack and take it to a conclusion?
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
The fate of a mating attack is usually decided by controlling a few key squares more than the opponent. For this reason it is not necessary to have a material advantage or even in some cases a general lead in development (it can be enough to have a lead in development in a small part of the board, though this is only rarely what happens). Local superiority is what it is all about
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
It is not hard logically to understand that an attack will work better when more pieces are included in it, just as it is not hard to understand that the support of teammates in most situations will lead to an increased chance of scoring a goal.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
What makes it complicated is when we have to weigh this consideration against those of material, momentum and other strategic factors. As well as just remembering to include the last piece when all the other pieces are active and so many options exist (and they are almost working; only one special ingredient is needed -the last piece!).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
The general advice is to include as many pieces in the attack as you can without losing your momentum. At all times consider if there is a way to include the last piece in the attack, but do not let the attack stall in order to manoeuvre it into position.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Attacking chess is about dynamics and exploiting a lead in development and thus almost the antithesis to manoeuvring.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Attack_Defense
Often we will lose a pawn or more in our ambition to include all the pieces in the attack, not stopping to recapture or move the threatened piece.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Flashcard 3306282683660

Tags
#cs #cs135 #racket #style
Question
• Add spaces around [...] in expressions to make them easier to read.
Answer
operators

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
• Add spaces around operators in expressions to make them easier to read.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306284256524

Tags
#cs #cs135 #racket #style
Question
• Add [...] around operators in expressions to make them easier to read.
Answer
spaces

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
• Add spaces around operators in expressions to make them easier to read.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306286877964

Tags
#cs #cs135 #racket #style
Question
• Add a space after [...] in function calls and semicolons in for loops.
Answer
commas

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
• Add a space after commas in function calls and semicolons in for loops.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306288450828

Tags
#cs #cs135 #racket #style
Question
• Add a [...] after commas in function calls and semicolons in for loops.
Answer
space

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
• Add a space after commas in function calls and semicolons in for loops.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306290023692

Tags
#cs #cs135 #racket #style
Question
• Add a space after commas in function calls and [...] in for loops.
Answer
semicolons

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
• Add a space after commas in function calls and semicolons in for loops.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306291596556

Tags
#cs #cs135 #racket #style
Question
• No more than one C [...] per line.
Answer
statement

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
• No more than one C statement per line.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306293169420

Tags
#cs #cs135 #racket #style
Question
• No more than [...] C statement per line.
Answer
one

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
• No more than one C statement per line.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306296839436

Tags
#cs #cs135 #racket #style
Question
In CS136, you may adopt any style but you should adhere to consistent usage of [...], whitespaces, and code layout with the goal of making your code more readable.
Answer
indentation

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
In CS136, you may adopt any style but you should adhere to consistent usage of indentation, whitespaces, and code layout with the goal of making your code more readable.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306299198732

Tags
#cs #cs135 #racket #style
Question
In CS136, you may adopt any style but you should adhere to consistent usage of indentation, [...], and code layout with the goal of making your code more readable.
Answer
whitespaces

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
In CS136, you may adopt any style but you should adhere to consistent usage of indentation, whitespaces, and code layout with the goal of making your code more readable.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306301033740

Tags
#cs #cs135 #racket #style
Question
In CS136, you may adopt any style but you should adhere to consistent usage of indentation, whitespaces, and code [...] with the goal of making your code more readable.
Answer
layout

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
In CS136, you may adopt any style but you should adhere to consistent usage of indentation, whitespaces, and code layout with the goal of making your code more readable.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306305490188

Tags
#cs #cs135 #racket #style
Question
NOTE: whenever feasible, [...] any conditions that appear in the requires section.
Answer
assert

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
NOTE: whenever feasible, assert any conditions that appear in the requires section.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306307063052

Tags
#cs #cs135 #racket #style
Question
NOTE: whenever feasible, assert any [...] that appear in the requires section.
Answer
conditions

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
NOTE: whenever feasible, assert any conditions that appear in the requires section.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306308635916

Tags
#cs #cs135 #racket #style
Question
NOTE: whenever feasible, assert any conditions that appear in the [...] section.
Answer
requires

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
NOTE: whenever feasible, assert any conditions that appear in the requires section.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306329345292

Tags
#cs #cs135 #racket #style
Question
NOTE: the [...] components of the contract are only required once they have been introduced in the lectures.
Answer
effects and time

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
NOTE: the effects and time components of the contract are only required once they have been introduced in the lectures.

Original toplevel document (pdf)

cannot see any pdfs







In part I of this book, I distill the enormous existing knowledge about color into a brief but complete foundation on the meaning, theories, and language of color.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




In part II, I provide practical information on art materials and hands-on exercises that clarify the theory and vocabulary of color.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Finally, in part III, I discuss harmonious color combinations, the meaning and symbolism of colors, and then suggest ways you can use this knowledge to incorporate the joy of color into your daily life.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Flashcard 3306340355340

Tags
#cs #cs135 #racket #style
Question
Unlike in Racket, in C you do not have to indicate the [...] types.
Answer
contract

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Unlike in Racket, in C you do not have to indicate the contract types.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306342714636

Tags
#cs #cs135 #racket #style
Question
Every function you write should have a [...] statement. The format in C is nearly identical to the Racket format.
Answer
purpose

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Every function you write should have a purpose statement. The format in C is nearly identical to the Racket format.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306345073932

Tags
#cs #cs135 #racket #style
Question
Every function you write should have a purpose statement. The format in C is [...] to the Racket format.
Answer
nearly identical

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Every function you write should have a purpose statement. The format in C is nearly identical to the Racket format.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306354248972

Tags
#cs #cs135 #racket #style
Question
general guidelines at the beginning of this guide regarding [...], line lengths, having meaningful parameter names, etc. also apply to C.
Answer
whitespace

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
general guidelines at the beginning of this guide regarding whitespace, line lengths, having meaningful parameter names, etc. also apply to C.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306356608268

Tags
#cs #cs135 #racket #style
Question
general guidelines at the beginning of this guide regarding whitespace, [...] lengths, having meaningful parameter names, etc. also apply to C.
Answer
line

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
general guidelines at the beginning of this guide regarding whitespace, line lengths, having meaningful parameter names, etc. also apply to C.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306358967564

Tags
#cs #cs135 #racket #style
Question
general guidelines at the beginning of this guide regarding whitespace, line lengths, having meaningful [...], etc. also apply to C.
Answer
parameter names

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
general guidelines at the beginning of this guide regarding whitespace, line lengths, having meaningful parameter names, etc. also apply to C.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306361326860

Tags
#cs #cs135 #racket #style
Question
As you combine [...], their templates can also be combined. See the course handouts for more examples.
Answer
user-defined types

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
As you combine user-defined types, their templates can also be combined. See the course handouts for more examples.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306362899724

Tags
#cs #cs135 #racket #style
Question
As you combine user-defined types, their [...] can also be combined. See the course handouts for more examples.
Answer
templates

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
As you combine user-defined types, their templates can also be combined. See the course handouts for more examples.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306365783308

Tags
#cs #cs135 #racket #style
Question
Since a [...] is a general framework for a function that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is recommended, but not required unless otherwise specified.
Answer
template

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Since a template is a general framework for a function that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is recommende

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306367356172

Tags
#cs #cs135 #racket #style
Question
Since a template is a general [...] for a function that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is recommended, but not required unless otherwise specified.
Answer
framework

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Since a template is a general framework for a function that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is recommended, but not required unl

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306368929036

Tags
#cs #cs135 #racket #style
Question
Since a template is a general framework for a [...] that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is recommended, but not required unless otherwise specified.
Answer
function

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Since a template is a general framework for a function that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is recommended, but not required unless otherwise s

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306371288332

Tags
#cs #cs135 #racket #style
Question
Since a template is a general framework for a function that consumes the new [...], we also always write a contract as part of the template. For each new data definition, writing a template is recommended, but not required unless otherwise specified.
Answer
type

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Since a template is a general framework for a function that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is recommended, but not required unless otherwise specified.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306374434060

Tags
#cs #cs135 #racket #style
Question
Since a template is a general framework for a function that consumes the new type, we also always write a [...] as part of the template. For each new data definition, writing a template is recommended, but not required unless otherwise specified.
Answer
contract

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Since a template is a general framework for a function that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is recommended, but not required unless otherwise specified.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306376793356

Tags
#cs #cs135 #racket #style
Question
Since a template is a general framework for a function that consumes the new type, we also always write a contract as part of the template. For each new [...], writing a template is recommended, but not required unless otherwise specified.
Answer
data definition

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Since a template is a general framework for a function that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is recommended, but not required unless otherwise specified.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306378628364

Tags
#cs #cs135 #racket #style
Question
Since a template is a general framework for a function that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is [...], but not required unless otherwise specified.
Answer
recommended

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
> Since a template is a general framework for a function that consumes the new type, we also always write a contract as part of the template. For each new data definition, writing a template is <span>recommended, but not required unless otherwise specified. <span>

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306380987660

Tags
#cs #cs135 #racket #style
Question
For any [...] user-defined type, there is a corresponding template for a func- tion that consumes the new type.
Answer
non-trivial

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
For any non-trivial user-defined type, there is a corresponding template for a func- tion that consumes the new type.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306382822668

Tags
#cs #cs135 #racket #style
Question
For any non-trivial [...], there is a corresponding template for a func- tion that consumes the new type.
Answer
user-defined type

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
For any non-trivial user-defined type, there is a corresponding template for a func- tion that consumes the new type.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306384395532

Tags
#cs #cs135 #racket #style
Question
For any non-trivial user-defined type, there is a corresponding [...] for a func- tion that consumes the new type.
Answer
template

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
For any non-trivial user-defined type, there is a corresponding template for a func- tion that consumes the new type.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306386754828

Tags
#cs #cs135 #racket #style
Question
For any non-trivial user-defined type, there is a corresponding template for a [...] that consumes the new type.
Answer
func- tion

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
For any non-trivial user-defined type, there is a corresponding template for a func- tion that consumes the new type.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306388327692

Tags
#cs #cs135 #racket #style
Question
For any non-trivial user-defined type, there is a corresponding template for a func- tion that consumes the [...].
Answer
new type

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
For any non-trivial user-defined type, there is a corresponding template for a func- tion that consumes the new type.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306389900556

Tags
#cs #cs135 #racket #style
Question
A [...] can be used to define a new user-defined type to improve the readability of contracts and other type definitions
Answer
descriptive definition

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
A descriptive definition can be used to define a new user-defined type to improve the readability of contracts and other type definitions

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306391473420

Tags
#cs #cs135 #racket #style
Question
A descriptive definition can be used to define a new [...] to improve the readability of contracts and other type definitions
Answer
user-defined type

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
A descriptive definition can be used to define a new user-defined type to improve the readability of contracts and other type definitions

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306393046284

Tags
#cs #cs135 #racket #style
Question
A descriptive definition can be used to define a new user-defined type to improve the readability of [...] and other type definitions
Answer
contracts

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
A descriptive definition can be used to define a new user-defined type to improve the readability of contracts and other type definitions

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306394619148

Tags
#cs #cs135 #racket #style
Question
A descriptive definition can be used to define a new user-defined type to improve the readability of contracts and other [...]
Answer
type definitions

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
A descriptive definition can be used to define a new user-defined type to improve the readability of contracts and other type definitions

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306396192012

Tags
#cs #cs135 #racket #style
Question
When you [...] a structure, it should be followed by a type definition, which specifies the type for each of the fields.
Answer
define

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
When you define a structure, it should be followed by a type definition, which specifies the type for each of the fields.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306397764876

Tags
#cs #cs135 #racket #style
Question
When you define a [...], it should be followed by a type definition, which specifies the type for each of the fields.
Answer
structure

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
When you define a structure, it should be followed by a type definition, which specifies the type for each of the fields.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306399337740

Tags
#cs #cs135 #racket #style
Question
When you define a structure, it should be followed by a [...], which specifies the type for each of the fields.
Answer
type definition

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
When you define a structure, it should be followed by a type definition, which specifies the type for each of the fields.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306400910604

Tags
#cs #cs135 #racket #style
Question
When you define a structure, it should be followed by a type definition, which specifies the [...] for each of the fields.
Answer
type

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
When you define a structure, it should be followed by a type definition, which specifies the type for each of the fields.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306402483468

Tags
#cs #cs135 #racket #style
Question
When you define a structure, it should be followed by a type definition, which specifies the type for each of the [...].
Answer
fields

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
When you define a structure, it should be followed by a type definition, which specifies the type for each of the fields.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306404056332

Tags
#cs #cs135 #racket #style
Question
[...] that appear in contracts and other type definitions should be capitalized (use My-Type, not my-type).
Answer
User-Defined types

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
User-Defined types that appear in contracts and other type definitions should be capitalized (use My-Type, not my-type).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306405629196

Tags
#cs #cs135 #racket #style
Question
User-Defined types that appear in contracts and other type definitions should be [...] (use My-Type, not my-type).
Answer
capitalized

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
User-Defined types that appear in contracts and other type definitions should be capitalized (use My-Type, not my-type).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306407202060

Tags
#cs #cs135 #racket #style
Question
With the exception of the Racket built-in types (e.g., P[...]), every user- defined type used in your assignment must be defined at the top of your file (unless an assignment instructs you otherwise).
Answer
osn

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
With the exception of the Racket built-in types (e.g., Posn), every user- defined type used in your assignment must be defined at the top of your file (unless an assignment instructs you otherwise).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306408774924

Tags
#cs #cs135 #racket #style
Question
With the exception of the Racket [...] (e.g., Posn), every user- defined type used in your assignment must be defined at the top of your file (unless an assignment instructs you otherwise).
Answer
built-in types

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
With the exception of the Racket built-in types (e.g., Posn), every user- defined type used in your assignment must be defined at the top of your file (unless an assignment instructs you otherwise).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306410347788

Tags
#cs #cs135 #racket #style
Question
With the exception of the Racket built-in types (e.g., Posn), every [...] used in your assignment must be defined at the top of your file (unless an assignment instructs you otherwise).
Answer
user- defined type

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
With the exception of the Racket built-in types (e.g., Posn), every user- defined type used in your assignment must be defined at the top of your file (unless an assignment instructs you otherwise).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306411920652

Tags
#cs #cs135 #racket #style
Question
With the exception of the Racket built-in types (e.g., Posn), every user- defined type used in your assignment must be defined at the [...] (unless an assignment instructs you otherwise).
Answer
top of your file

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
With the exception of the Racket built-in types (e.g., Posn), every user- defined type used in your assignment must be defined at the top of your file (unless an assignment instructs you otherwise).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306413493516

Tags
#cs #cs135 #racket #style
Question
A [...] can be a structure (defined with define-struct) or simply a descriptive definition.
Answer
user-defined type

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
A user-defined type can be a structure (defined with define-struct) or simply a descriptive definition.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306415066380

Tags
#cs #cs135 #racket #style
Question
A user-defined type can be a [...] (defined with define-struct) or simply a descriptive definition.
Answer
structure

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
A user-defined type can be a structure (defined with define-struct) or simply a descriptive definition.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306416639244

Tags
#cs #cs135 #racket #style
Question
A user-defined type can be a structure (defined with [...]) or simply a descriptive definition.
Answer
define-struct

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
A user-defined type can be a structure (defined with define-struct) or simply a descriptive definition.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306418212108

Tags
#cs #cs135 #racket #style
Question
A user-defined type can be a structure (defined with define-struct) or simply a [...].
Answer
descriptive definition

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
A user-defined type can be a structure (defined with define-struct) or simply a descriptive definition.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306420309260

Tags
#cs #cs135 #racket #style
Question
Add a [...] after each block of local constant definitions, as you would for non-local constant definitions.
Answer
blank line

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Add a blank line after each block of local constant definitions, as you would for non-local constant definitions.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306425814284

Tags
#cs #cs135 #racket #style
Question
Add a blank line after each block of [...] definitions, as you would for non-local constant definitions.
Answer
local constant

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Add a blank line after each block of local constant definitions, as you would for non-local constant definitions.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306427387148

Tags
#cs #cs135 #racket #style
Question
Add a blank line after each block of local constant definitions, as you would for [...] definitions.
Answer
non-local constant

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Add a blank line after each block of local constant definitions, as you would for non-local constant definitions.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306428960012

Tags
#cs #cs135 #racket #style
Question
Add a blank line after each [...] function definition.
Answer
local

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Add a blank line after each local function definition.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306430532876

Tags
#cs #cs135 #racket #style
Question
For functions defined with a [...], no tests or examples are necessary
Answer
local block

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
For functions defined with a local block, no tests or examples are necessary

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306432105740

Tags
#cs #cs135 #racket #style
Question
For functions defined with a local block, no [...] are necessary
Answer
tests or examples

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
For functions defined with a local block, no tests or examples are necessary

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306433678604

Tags
#cs #cs135 #racket #style
Question
When using [...] functions, only one of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use your judgement to choose the function where ex- amples and tests seem most appropriate.
Answer
wrapper (primary)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
When using wrapper (primary) functions, only one of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use your judgement to choo

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306435251468

Tags
#cs #cs135 #racket #style
Question
When using wrapper (primary) functions, only [...] of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use your judgement to choose the function where ex- amples and tests seem most appropriate.
Answer
one

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
When using wrapper (primary) functions, only one of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use your judgement to choose the function wher

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306436824332

Tags
#cs #cs135 #racket #style
Question
When using wrapper (primary) functions, only one of the functions requires tests. If the [...] function is the wrapper function, then include the examples and tests with it. Otherwise, use your judgement to choose the function where ex- amples and tests seem most appropriate.
Answer
required

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
When using wrapper (primary) functions, only one of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use your judgement to choose the function where ex- amples and tests seem most appropriate. </s

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306438397196

Tags
#cs #cs135 #racket #style
Question
When using wrapper (primary) functions, only one of the functions requires tests. If the required function is the [...] function, then include the examples and tests with it. Otherwise, use your judgement to choose the function where ex- amples and tests seem most appropriate.
Answer
wrapper

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
When using wrapper (primary) functions, only one of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use your judgement to choose the function where ex- amples and tests seem most appropriate.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306439970060

Tags
#cs #cs135 #racket #style
Question
When using wrapper (primary) functions, only one of the functions requires tests. If the required function is the wrapper function, then include the [...] with it. Otherwise, use your judgement to choose the function where ex- amples and tests seem most appropriate.
Answer
examples and tests

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
When using wrapper (primary) functions, only one of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use your judgement to choose the function where ex- amples and tests seem most appropriate.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306441542924

Tags
#cs #cs135 #racket #style
Question
When using wrapper (primary) functions, only one of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use [...] to choose the function where ex- amples and tests seem most appropriate.
Answer
your judgement

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
> When using wrapper (primary) functions, only one of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use <span>your judgement to choose the function where ex- amples and tests seem most appropriate. <span>

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306443115788

Tags
#cs #cs135 #racket #style
Question
When using wrapper (primary) functions, only one of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use your judgement to choose the function where [...] seem most appropriate.
Answer
ex- amples and tests

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
ly one of the functions requires tests. If the required function is the wrapper function, then include the examples and tests with it. Otherwise, use your judgement to choose the function where <span>ex- amples and tests seem most appropriate. <span>

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306444688652

Tags
#cs #cs135 #racket #style
Question
If we ask you to write two mutually recursive functions, [...] of the functions requires tests.
Answer
only one

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
If we ask you to write two mutually recursive functions, only one of the functions requires tests.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306448358668

Tags
#cs #cs135 #racket #style
Question
If we ask you to write two [...] functions, only one of the functions requires tests.
Answer
mutually recursive

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
If we ask you to write two mutually recursive functions, only one of the functions requires tests.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306449931532

Tags
#cs #cs135 #racket #style
Question
If we ask you to write two mutually recursive functions, only one of the functions requires [...].
Answer
tests

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
If we ask you to write two mutually recursive functions, only one of the functions requires tests.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306451504396

Tags
#cs #cs135 #racket #style
Question
Functions we ask you to write require a [...] design recipe. Helper functions only require a purpose, a contract and an example.
Answer
full

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Functions we ask you to write require a full design recipe. Helper functions only require a purpose, a contract and an example.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306453077260

Tags
#cs #cs135 #racket #style
Question
Functions we ask you to write require a full [...]. Helper functions only require a purpose, a contract and an example.
Answer
design recipe

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Functions we ask you to write require a full design recipe. Helper functions only require a purpose, a contract and an example.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306454650124

Tags
#cs #cs135 #racket #style
Question
Functions we ask you to write require a full design recipe. Helper functions only require [...].
Answer
a purpose, a contract and an example

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Functions we ask you to write require a full design recipe. Helper functions only require a purpose, a contract and an example.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306456222988

Tags
#cs #cs135 #racket #style
Question
[...] we ask you to write require a full design recipe. Helper functions only require a purpose, a contract and an example.
Answer
Functions

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Functions we ask you to write require a full design recipe. Helper functions only require a purpose, a contract and an example.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306457795852

Tags
#cs #cs135 #racket #style
Question
Marks may be deducted if you are [...] using helper functions when appropriate. Helper functions should be placed before the required function in your submission
Answer
not

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Marks may be deducted if you are not using helper functions when appropriate. Helper functions should be placed before the required function in your submission

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306459368716

Tags
#cs #cs135 #racket #style
Question
Marks may be deducted if you are not using helper functions when [...]. Helper functions should be placed before the required function in your submission
Answer
appropriate

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Marks may be deducted if you are not using helper functions when appropriate. Helper functions should be placed before the required function in your submission

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306460941580

Tags
#cs #cs135 #racket #style
Question
Marks may be deducted if you are not using helper functions when appropriate. Helper functions should be placed [...] the required function in your submission
Answer
before

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Marks may be deducted if you are not using helper functions when appropriate. Helper functions should be placed before the required function in your submission

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306462514444

Tags
#cs #cs135 #racket #style
Question
Marks may be deducted if you are not using helper functions when appropriate. Helper functions should be placed before the [...] function in your submission
Answer
required

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Marks may be deducted if you are not using helper functions when appropriate. Helper functions should be placed before the required function in your submission

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306464087308

Tags
#cs #cs135 #racket #style
Question
Writing good [...] functions is an essential skill in software development and simply writing a purpose and contract should not discourage you from writing a helper function.
Answer
helper

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Writing good helper functions is an essential skill in software development and simply writing a purpose and contract should not discourage you from writing a helper function.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306465660172

Tags
#cs #cs135 #racket #style
Question
Writing good helper functions is an essential skill in software development and simply writing a [...] should not discourage you from writing a helper function.
Answer
purpose and contract

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Writing good helper functions is an essential skill in software development and simply writing a purpose and contract should not discourage you from writing a helper function.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306467233036

Tags
#cs #cs135 #racket #style
Question
Writing good helper functions is an essential skill in software development and simply writing a purpose and contract should not [...] you from writing a helper function.
Answer
discourage

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Writing good helper functions is an essential skill in software development and simply writing a purpose and contract should not discourage you from writing a helper function.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306468805900

Tags
#cs #cs135 #racket #style
Question
we have seen students avoid writ- ing [...] functions because they did not want to provide documention for them. This is a bad habit that we strongly discourage.
Answer
helper

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
we have seen students avoid writ- ing helper functions because they did not want to provide documention for them. This is a bad habit that we strongly discourage.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306470378764

Tags
#cs #cs135 #racket #style
Question
we have seen students avoid writ- ing helper functions because they did not want to provide documention for them. This is a bad habit that we strongly [...].
Answer
discourage

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
we have seen students avoid writ- ing helper functions because they did not want to provide documention for them. This is a bad habit that we strongly discourage.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306471951628

Tags
#cs #cs135 #racket #style
Question
we have seen students avoid writ- ing helper functions because they did not want to provide [...] for them. This is a bad habit that we strongly discourage.
Answer
documention

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
we have seen students avoid writ- ing helper functions because they did not want to provide documention for them. This is a bad habit that we strongly discourage.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306473524492

Tags
#cs #cs135 #racket #style
Question
Helper functions only require a [...]. You are not required to provide tests for your helper functions (but often it is a very good idea).
Answer
purpose, a contract and at least one illus- trative example

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Helper functions only require a purpose, a contract and at least one illus- trative example. You are not required to provide tests for your helper functions (but often it is a very good idea).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306475097356

Tags
#cs #cs135 #racket #style
Question
Helper functions only require a purpose, a contract and at least one illus- trative example. You are not required to provide [...] for your helper functions (but often it is a very good idea).
Answer
tests

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Helper functions only require a purpose, a contract and at least one illus- trative example. You are not required to provide tests for your helper functions (but often it is a very good idea).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306476670220

Tags
#cs #cs135 #racket #style
Question
Do not use the word “[...]” in your function name: use a descriptive function name.
Answer
helper

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Do not use the word “helper” in your function name: use a descriptive function name.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306478243084

Tags
#cs #cs135 #racket #style
Question
Do not use the word “helper” in your function name: use a descriptive [...] name.
Answer
function

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Do not use the word “helper” in your function name: use a descriptive function name.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306479815948

Tags
#cs #cs135 #racket #style
Question
Never figure out the answers to your tests by running [...]. Work out the correct answers independently (e.g., by hand).
Answer
your own code

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Never figure out the answers to your tests by running your own code. Work out the correct answers independently (e.g., by hand).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306481388812

Tags
#cs #cs135 #racket #style
Question
[...] figure out the answers to your tests by running your own code. Work out the correct answers independently (e.g., by hand).
Answer
Never

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Never figure out the answers to your tests by running your own code. Work out the correct answers independently (e.g., by hand).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306482961676

Tags
#cs #cs135 #racket #style
Question
Never figure out the answers to your tests by running your own code. Work out the correct answers [...] (e.g., by hand).
Answer
independently

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Never figure out the answers to your tests by running your own code. Work out the correct answers independently (e.g., by hand).

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306484534540

Tags
#cs #cs135 #racket #style
Question
design a [...], comprehensive test suite.
Answer
small

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
design a small, comprehensive test suite.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306486107404

Tags
#cs #cs135 #racket #style
Question
design a small, [...] test suite.
Answer
comprehensive

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
design a small, comprehensive test suite.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306487680268

Tags
#cs #cs135 #racket #style
Question
Others write lots of tests, but have several tests in a row that do essentially [...]. It’s not a question of quantity, but of quality.
Answer
the same thing

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Others write lots of tests, but have several tests in a row that do essentially the same thing. It’s not a question of quantity, but of quality.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306489253132

Tags
#cs #cs135 #racket #style
Question
Others write lots of tests, but have several tests in a row that do essentially the same thing. It’s not a question of [...], but of quality.
Answer
quantity

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Others write lots of tests, but have several tests in a row that do essentially the same thing. It’s not a question of quantity, but of quality.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306490825996

Tags
#cs #cs135 #racket #style
Question
Others write lots of tests, but have several tests in a row that do essentially the same thing. It’s not a question of quantity, but of [...].
Answer
quality

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Others write lots of tests, but have several tests in a row that do essentially the same thing. It’s not a question of quantity, but of quality.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306492398860

Tags
#cs #cs135 #racket #style
Question
Some people write tests that use a large amount of [...]; this is not necessarily the best idea, because if they fail, it is difficult to figure out why.
Answer
data

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Some people write tests that use a large amount of data; this is not necessarily the best idea, because if they fail, it is difficult to figure out why.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306493971724

Tags
#cs #cs135 #racket #style
Question
Some people write tests that use a large amount of data; this is not necessarily the best idea, because if they [...], it is difficult to figure out why.
Answer
fail

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Some people write tests that use a large amount of data; this is not necessarily the best idea, because if they fail, it is difficult to figure out why.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306495544588

Tags
#cs #cs135 #racket #style
Question
Some people write tests that use a large amount of data; this is not necessarily the best idea, because if they fail, it is [...] to figure out why.
Answer
difficult

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Some people write tests that use a large amount of data; this is not necessarily the best idea, because if they fail, it is difficult to figure out why.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306497117452

Tags
#cs #cs135 #racket #style
Question
your tests should be [...]: each one should aim at a particular case, or section of code.
Answer
directed

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
your tests should be directed: each one should aim at a particular case, or section of code.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306498690316

Tags
#cs #cs135 #racket #style
Question
your tests should be directed: each one should aim at a particular [...], or section of code.
Answer
case

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
your tests should be directed: each one should aim at a particular case, or section of code.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306500263180

Tags
#cs #cs135 #racket #style
Question
your tests should be directed: each one should aim at a particular case, or [...] of code.
Answer
section

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
your tests should be directed: each one should aim at a particular case, or section of code.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306501836044

Tags
#cs #cs135 #racket #style
Question
Make sure that your tests are actually [...] every part of the code. For example, if a conditional expression has three possible outcomes, you have tests that check each of the possible outcomes.
Answer
testing

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Make sure that your tests are actually testing every part of the code. For example, if a conditional expression has three possible outcomes, you have tests that check each of the possible outcomes.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306503408908

Tags
#cs #cs135 #racket #style
Question
Make sure that your tests are actually testing every part of the code. For example, if a conditional expression has three possible outcomes, you have tests that check [...] of the possible outcomes.
Answer
each

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Make sure that your tests are actually testing every part of the code. For example, if a conditional expression has three possible outcomes, you have tests that check each of the possible outcomes.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306504981772

Tags
#cs #cs135 #racket #style
Question
You do not have to [...] your examples in your tests section. Your examples also count as tests.
Answer
repeat

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
You do not have to repeat your examples in your tests section. Your examples also count as tests.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306506554636

Tags
#cs #cs135 #racket #style
Question
You do not have to repeat your examples in your tests section. Your examples [...] as tests.
Answer
also count

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
You do not have to repeat your examples in your tests section. Your examples also count as tests.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306508127500

Tags
#cs #cs135 #racket #style
Question
use the provided [...] tests when you submit your assignments. If your code does not pass these tests, then you should carefully check your submission for spelling errors and the like.
Answer
basic

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
use the provided basic tests when you submit your assignments. If your code does not pass these tests, then you should carefully check your submission for spelling errors and the like.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306509700364

Tags
#cs #cs135 #racket #style
Question
use the provided basic tests when you submit your assignments. If your code does not pass these tests, then you should carefully check your submission for [...] and the like.
Answer
spelling errors

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
use the provided basic tests when you submit your assignments. If your code does not pass these tests, then you should carefully check your submission for spelling errors and the like.

Original toplevel document (pdf)

cannot see any pdfs







Flashcard 3306511273228

Tags
#cs #cs135 #racket #style
Question
Develop your [...] before you write the code for the function.