|
@katyaprigara | |||||
|
Advice needed: How would you name an intention/refactoring that transforms the code in the following way? Introduce/Extract <what>? pic.twitter.com/gtEaAr3IGH
|
||||||
|
||||||
|
Eugene Petrenko
@jonnyzzz
|
15. sij 2019. |
|
destruct fields
|
||
|
|
||
|
Ekaterina Prigara
@katyaprigara
|
15. sij 2019. |
|
In JS it’s called destructuring, but there’s quite a lot of ways to actually use it and you can’t just say “Introduce destructuring” :(
|
||
|
|
||
|
Richard
@richardiii
|
15. sij 2019. |
|
Sometimes it’s nice to refer to eslint docs when changing styles eslint.org/docs/rules/pre…
Doesn’t really help with the naming, but nice starting point
|
||
|
|
||
|
Ekaterina Prigara
@katyaprigara
|
15. sij 2019. |
|
Thanks, good tip!
|
||
|
|
||
|
Daniel Christopher
@danchristopher
|
15. sij 2019. |
|
Destructuring assignment
|
||
|
|
||
|
Ekaterina Prigara
@katyaprigara
|
15. sij 2019. |
|
Thanks! Wouldn't it be unexpected for you that as a result of it new variables will be introduced?
|
||
|
|
||
|
AL
@zhuravlik26
|
15. sij 2019. |
|
Would be interesting to know what people in this thread think about the idea of the author of this feature, i.e. "Introduce destructuring variables".
|
||
|
|
||
|
pkellner
@pkellner
|
12. ožu |
|
Resplattering
|
||
|
|
||
|
Loa of the Frontend
@shuvalov_js
|
16. sij 2019. |
|
"Why" is the question.
|
||
|
|
||
|
Ekaterina Prigara
@katyaprigara
|
16. sij 2019. |
|
I see a lot of use of destructuring assignments in projects now. The intentions we are going to add will make it easier to simplify the code using them.
|
||
|
|
||