Talk:Generator (computer programming): Difference between revisions

Content deleted Content added
SineBot (talk | contribs)
m Signing comment by 75.73.1.89 - "Fuzzy definition?: "
Line 282:
The definition at the very start of the article is very hard to parse. It overuses analogy and is quite confusing. Perhaps later in the intro section it might be comprehensible, but at 0300 in the morning w/ a non-working GRUB2 EFI configuration hanging over my head, I just ditched trying to read the article and leave this short note waiting for the rest of my update to download.
 
'''PleaseThe startdefinition/intro is ambiguous and seems to muddle up the articlenotion withof awhat definition.'''is being E.g.iterated, ''"Inwhat athe programmingiterator languageis, aand generatorhow it is implemented..."''. Try to stay at a very non-computer science language level with the initial definition or include the WP article link for every bit of jargon you need to be clear. SoYou youcould, however, start by saying that a generator is aspecific typecase of an [[Iterator]]... WhatHowever, younearly shouldevery notCS saytopic ishas, thatsomeplace, ita isfairly likeclear andefinition array,using sincebasic itmathematics/logic isn'tterms anythingthat likemost anreasonable array.educated individuals You might usewithout a generator to access valuesdegree in an array. YouCS can useunderstand. a bucket to empty a bathtub full of soapy water, but don't confuse the bucket with the bathwater (and for heaven's sake, take the baby out first!).
 
What you should not say is that it is like an array, since it isn't anything like an array. You might use a generator to access values in an array, but it isn't the array. You can use a bucket to empty a bathtub full of soapy water, but don't confuse the bucket with the bathwater (and for heaven's sake, take the baby out first!).
 
Sorry, but most of my programming experience is with Java (w/o generators as a built in, but I am sure I have had to write thousands of them w/o ever knowing what the hell I was doing), or I would try my hand at a new intro. <!-- Template:Unsigned IP --><small class="autosigned">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/75.73.1.89|75.73.1.89]] ([[User talk:75.73.1.89#top|talk]]) 09:16, 13 January 2017 (UTC)</small> <!--Autosigned by SineBot-->