Skip to content

Instantly share code, notes, and snippets.

@arpieb
Created May 25, 2017 17:23
Show Gist options
  • Save arpieb/c40f295ed5bb421134e2383e7334617f to your computer and use it in GitHub Desktop.
Save arpieb/c40f295ed5bb421134e2383e7334617f to your computer and use it in GitHub Desktop.
$ docker run atbaker/wikipedia-question-generator "Immutable object"
$ docker run atbaker/wikipedia-question-generator "Immutable object"
Analyzing 'Immutable object'
[
{
"answer": "contrast",
"question": "This is in __________ to a mutable object (changeable object), which can be modified after it is created.",
"similar_words": [
"antagonism",
"antipode",
"antithesis",
"conflict",
"contradiction",
"contradictoriness",
"contrariety",
"contrary"
],
"title": "Immutable object",
"url": "https://en.wikipedia.org/wiki/Immutable_object"
},
{
"answer": "change",
"question": "In some cases, an object is considered immutable even if some internally used attributes __________ but the object's state appears to be unchanging from an external point of view.",
"similar_words": [
"accident",
"accompaniment",
"appearance",
"avalanche",
"beginning",
"boom",
"case",
"collapse"
],
"title": "Immutable object",
"url": "https://en.wikipedia.org/wiki/Immutable_object"
},
{
"answer": "example",
"question": "For __________, an object that uses memoization to cache the results of expensive computations could still be considered an immutable object.",
"similar_words": [
"acquaintance",
"background",
"circumstance",
"datum",
"descriptor",
"evidence",
"fact",
"predictor"
],
"title": "Immutable object",
"url": "https://en.wikipedia.org/wiki/Immutable_object"
},
{
"answer": "readability",
"question": "Strings and other concrete objects are typically expressed as immutable objects to improve __________ and runtime efficiency in object-oriented programming.",
"similar_words": [
"speech intelligibility"
],
"title": "Immutable object",
"url": "https://en.wikipedia.org/wiki/Immutable_object"
},
{
"answer": "reason",
"question": "Other benefits are that they are simpler to understand and __________ about and offer higher security than mutable objects.",
"similar_words": [
"disincentive",
"incentive"
],
"title": "Immutable object",
"url": "https://en.wikipedia.org/wiki/Immutable_object"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment