3 ms·
No, but you just assigned a name to a programming paradigm that has been on my mind for ten years. EDIT: since two of you asked. it's not a big deal, just tha
by logicallee 12y ago
No, but you just assigned a name to a programming paradigm that has been on my mind for ten years.
EDIT: since two of you asked. it's not a big deal, just that you should be able to use "it", "this" or "that" with your IDE and interactively (unscripted, or impromptu) get it to name your long variables. Likewise for what you mean by functions and so forth. Then you could say somethinhg like, "Siri, double the value before you pass it to the function, then take what it returns and if it is greater than zero...."
and it should be able to make some guesses as to which C++ block you meant. (i.e. present you 4-8 variations or interactively ask you, "Did you mean if the first value is greater than zero, or if the value the function returns is greater than zero?" Then after all that your impromptu session is not saved, only the one you ended up selecting is.
It's sort-of like Googling for code, but with the difference that the machine makes all sorts of different guesses, and you just pick the one you mean. (When you Google for code you're doing practically the same thing, entering a tree where you descend first by which link you click in the search results, and next by which answer you select on the page...)
I still think it must be faster than typing, but until there is an unscripted/impromptu programming environment we'll just have to wait to see....
- PhasmaFelis 12y agoI'm curious now.
- EC1 12y agoGo on..
- klipt 12y ago> "Siri, double the value before you pass it to the function, then take what it returns and if it is greater than zero...." y = 2x; if (y>0)... Seems way faster to type (or say), and much less ambiguous than using "it", "this" or "that" ;-)
- logicallee 12y agoy equals sign 2x semicolon if open parentheses y greater than zero close parantheses, open braces... of course it seems easier to you, after you've taken the time to learn a language and know the syntax by heart. Now do the same thing in a language and framework whose features you want to use but which you haven't learned yet.