Talk:Determine if a string is collapsible: Difference between revisions

m (moved a discussion topic (section) to be chronological order, added comments and discussed some concerns,)
 
Line 92:
 
: The test predicate, as stated by the task, is to determine if a string is collapsible,   '''and then, if so, collapse the string'''.   This requirement was met by all of the computer programming language entries, albeit some entries chose to add additional information,   but this was not part of the task's requirement.   Because of this, there doesn't '''need''' to be a separate test predicate.   I don't believe that there are defects in the test set   (I believe the test set of the five examples is adequate, adding any more would mean that all computer programming entries would have to be changed).   But if another test case (or cases) were added, it would mean all computer programming entries would need to be changed).   The task's requirements were written this way so that the programmer could/would choose the method of determination if a string is collapsible (or not),   and return the collapsed string   (or the unchanged string).   Nothing was mentioned that the calling program code has to be notified   (and indeed, some programming examples have the calling program do the determination and notification),   only that a string was to be returned,   either a collapsed string or the original string.   I intended that the programmer choose to use (or not use) any manner of predicate testing.   The need for a predicate test wasn't specifically required or requested, so there is no need for a separate test   (as it wasn't mentioned in the task's requirements).   If there is no requirement for a predicate test, there is no need to state its advantages or merits, but the programmer can choose to use a predicate test if they so desire if they wanted to implement a faster or more efficient version of a predicate test.     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 10:15, 25 June 2020 (UTC)
 
::The solutions do not determine if the string is collapsible. If a task were to determine if a is less than a+5 printing the two values out and leaving me to determine by examining the printout is not the task determining if a is less then a+5. The solutions as are collapse the input and printout both strings. I can determine if collapsing has occurred by examining the two printed strings, but the tasks have not done so.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 15:50, 25 June 2020 (UTC)
2,171

edits