Talk:Balanced brackets: Difference between revisions

Undiscussed deletion of two JavaScript contributions on June 5 2016
(added another thread. -- ~~~~)
(Undiscussed deletion of two JavaScript contributions on June 5 2016)
 
(One intermediate revision by one other user not shown)
Line 26:
==On "Constructing correctly balanced strings"==
I read the task as being primarily about checking for balanced strings and the generator being part of a check. I was hoping to find comments on how to generate longer strings with equal probability of being balanced or not.
The Tcl interpretaioninterpretation fits too though. --[[User:Paddy3118|Paddy3118]] 09:57, 24 February 2011 (UTC)
 
: I created the 3<sup>rd</sup> REXX programming example to generate &nbsp; ''all'' &nbsp; 20-character (or less) random possibilities (over 125,000 permutations). &nbsp; Of course, it didn't list each of the 125,477 unique strings, but it shows a count of balanced ''vs''. unbalanced strings. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 09:54, 10 September 2015 (UTC)
 
== usefulness of task ==
Line 37 ⟶ 39:
<br>I had a difficult time programming to catch errors like: <tt> xxx = ((a+ [b/c)] ) </tt>.
<br>Such a generalized task, I guess, would better be served with its own task. -- [[User:Gerard Schildberger|Gerard Schildberger]] 23:29, 31 March 2012 (UTC)
 
==Undiscussed deletions (JavaScript) on June 5 2016==
 
I notice that a couple of JavaScript contributions were deleted without discussion on June 5 2016, on the grounds (suggested in the edit comment) that they were felt to be 'over-engineered'.
 
Deletion will sometimes be constructive, but does needs to be discussed. In this case, for example, functional composition of JavaScript code was left unrepresented (the new example was imperative, and the deleted functional example was not replaced).
 
I have restored, for the moment, an ES6 version of a functional approach, which also provides visual indication of where the brackets become unbalanced. If you feel that it would really be better to delete it again, you are very welcome to make that argument here on the discussion page. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 11:19, 4 November 2016 (UTC)
9,655

edits