News for hackers. Stuff that matters.
Re:Deuce: lightweight structured editing in Sketch-n-Sketch by timthelion on Tuesday October 24, 2017 @05:11PM (#15545287)
Just some feedback. I just watched the video and it wasn't clear to me how the name suggestions are made. I presume that this is done by inspecting the code and looking at the function that is being called and figuring out which parameter is being passed and then basing the name off the name of the parameter?

If so, then why are there multiple suggestions?

Re:Deuce: lightweight structured editing in Sketch-n-Sketch by brianhempel on Wednesday October 25, 2017 @11:13PM (#15556091)
Correct: if adding a variable for a literal used as a parameter for a function call, the argument name in the function definition is used (provided we can figure out which function was called!).

There are multiple name suggestions when:

(1) Multiple items are being replaced and each replaced item had a different name.

(2) There would be a name collision. To resolve the collision, either one or the other variable can be renamed.

Re:Deuce: lightweight structured editing in Sketch-n-Sketch by RandallBrown on Tuesday October 24, 2017 @05:20PM (#15545337)
Wow, the sketch n sketch logo is almost identical to that of the software company TechSmith, makers of Camtasia and Snagit.
Re:Deuce: lightweight structured editing in Sketch-n-Sketch by timthelion on Tuesday October 24, 2017 @06:27PM (#15545755)
And to elm-lang's http://elm-lang.org/ And to prague pride's https://www.praguepride.cz/
Re:Deuce: lightweight structured editing in Sketch-n-Sketch by Confiks on Tuesday October 24, 2017 @07:46PM (#15546185)
They're all an impression of a tangram puzzle: https://en.wikipedia.org/wiki/Tangram