Why Nostr? What is Njump?
2024-01-19 14:16:57
in reply to

vnprc on Nostr: This was the line of code that inspired my original note: !!(resource.comment ?? ...

This was the line of code that inspired my original note:

!!(resource.comment ?? '').match(/^fee for/i) &&

I just pasted it into chatGPT (plus the conditional on the following line which I have left out for privacy) and got a detailed explanation of all the little javascript hacks you can see here. I am new to javascript so it's a great way to get up to speed.

This is easy mode. There is a lot more subtlety in using chatGPT to write new code. You have to get good at being really explicit and including all the relevant requirements and context. Even then it can be super frustrating. You have to discern when you are asking the wrong questions or asking it something it can't help you with. Keep in mind it is just regurgitating the accumulated knowledge of publicly available data. If your problem is in a niche domain, or uses special tools and methods, or if the project you are working on significantly departs from standard practice it will be less helpful. I have found it is much weaker with rust, for example. Probably because rust is more complex to reason about and the rust community is a tiny fraction of the size of the javascript community.

Overall it's a great learning aid to add to your toolbox. IMO the doomsayers are way off base. LLMs will only replace shitty developers. :)
Author Public Key
npub16vzjeglr653mrmyqvu0trwaq29az753wr9th3hyrm5p63kz2zu8qzumhgd