Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Deuce: lightweight structured editing in Sketch-n-Sketch (ravichugh.github.io)
28 points by kasbah on Oct 24, 2017 | hide | past | favorite | 5 comments


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?


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.


Wow, the sketch n sketch logo is almost identical to that of the software company TechSmith, makers of Camtasia and Snagit.


And to elm-lang's http://elm-lang.org/ And to prague pride's https://www.praguepride.cz/


They're all an impression of a tangram puzzle: https://en.wikipedia.org/wiki/Tangram




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: