Manuel pfp
Manuel
@manuelmaccou.eth
Trying to use GPT3.5 when learning basic JavaScript and it’s often wrong. It keep going back on what it said previously and apologizes for the mistake. Does GPT4 have this problem?
6 replies
0 recast
0 reaction

borodutch pfp
borodutch
@warpcastadmin.eth
gpt4 is *way* better
2 replies
0 recast
0 reaction

Manuel pfp
Manuel
@manuelmaccou.eth
It’s taking me 2 steps back every time I ask a question, and I don’t even know because I trust it’s response by default. I guess I’ll stop being cheap and pay the $20/month for 4 😑
1 reply
0 recast
0 reaction

borodutch pfp
borodutch
@warpcastadmin.eth
it is well worth it it saved me a lot of internet searching and trial and error today to rm all node modules from all the projects within a folder
1 reply
0 recast
0 reaction

Manuel pfp
Manuel
@manuelmaccou.eth
This is the question I had. I’m learning about destructuring. Consider… let x = [1, 2, 3] And.. const [y, z] = x Are all these statements true… x[0] = 1 x[1] = 2 y = 1 z = 2 Also, what happens to y when you change the values in the x array? Does y = x[0] forever?
2 replies
0 recast
0 reaction

borodutch pfp
borodutch
@warpcastadmin.eth
https://i.imgur.com/DFe9IRX.png
1 reply
0 recast
0 reaction

Manuel pfp
Manuel
@manuelmaccou.eth
Interesting! Thanks for this. I wonder if there’s ever a time when the values are linked after destructuring. Given this… const foo = ["one", "two", "three"]; const [red, yellow, green] = foo; gpt said this in the screenshot https://i.imgur.com/p6fynn2.jpg
2 replies
0 recast
0 reaction

ken pfp
ken
@kenergy.eth
Wouldn't some of these experiments make sense to test directly in the REPL? It sounds like you have a pretty good idea of the wonky JS behavior you're trying to figure out, might as well skip asking the LLM and test directly
1 reply
0 recast
0 reaction

timdaub pfp
timdaub
@timdaub.eth
for objects this might be the case because they‘re sometimes passed by reference
1 reply
0 recast
0 reaction