Talk:Sorting algorithms/Stooge sort: Difference between revisions

→‎ooRexx / NetRexx Questions: Reply to Walter's questions
m (→‎WP markup reference problem: Add header to separate unrelated discussions)
(→‎ooRexx / NetRexx Questions: Reply to Walter's questions)
Line 34:
What is the reason to use the underscores in the variables (in NetRexx and taken over to ooRexx?
--[[User:Walterpachl|Walterpachl]] 11:24, 5 July 2012 (UTC)
: Just personal style; I strongly disapprove of single character variables and the pseudo-code on which the solution was based used single characters. Adding underscore to the names was a less invasive change than renaming the variables (but would perhaps have made the code more self-explanatory: mea culpa). However using underscore in iterator names helps me find them easily and with iterators, concise is nice. Another plus is that it's easier to but the cursor between two characters when double-clicking than to try to grab a single character in some IDEs. --[[User:Alansam|Alansam]] 15:12, 5 July 2012 (UTC)
----
ooRexx solution:
Line 40 ⟶ 41:
I guess there is no relationship to java.util.List
--[[User:Walterpachl|Walterpachl]] 13:22, 5 July 2012 (UTC)
: In this case the solution is translated from NetRexx which uses the <tt>java.util.List</tt> collection. Java's <tt>List</tt> class uses <tt>get()</tt> and <tt>set()</tt> where ooRexx uses <tt>at()</tt> and <tt>put()</tt>. The <tt>NList</tt> class implements a clean way to add these methods to ooRexx's <tt>List</tt> as an aid to translation. --[[User:Alansam|Alansam]] 15:12, 5 July 2012 (UTC)
Anonymous user