Hacker News new | ask | show | jobs
by hibbelig 2143 days ago
>> -extract method

> I don't know what this is, sorry

You mark/select/highlight some lines of code and then you hit a key, and this creates a method out of the code. The IDE is smart enough to see what is the "input" and what is the "output" of these lines of code, and will create a method with the right parameters and with the right return value. But usually, the IDE doesn't support all such code blocks, for example, if there is more than one "output".