zlacker

[parent] [thread] 4 comments
1. Kranar+(OP)[view] [source] 2024-02-13 20:32:39
Sure, but consider not using it for complex tasks. My productivity has skyrocketed with ChatGPT precisely because I don't use it for complex tasks, I use it to automate all of the trivial boilerplate stuff.

ChatGPT writes excellent API documentation and can also document snippets of code to explain what they do, it does 80% of the work for unit tests, it can fill in simple methods like getters/setters, initialize constructors, I've even had it write a script to perform some substantial code refactoring.

Use ChatGPT for grunt work and focus on the more advanced stuff yourself.

replies(2): >>ekms+td >>hirvi7+Y41
2. ekms+td[view] [source] 2024-02-13 21:47:54
>>Kranar+(OP)
Is it better at those types of things than copilot? Or even just conventional boilerplate IDE plugins?
replies(1): >>Kranar+cl
◧◩
3. Kranar+cl[view] [source] [discussion] 2024-02-13 22:34:15
>>ekms+td
If there is an IDE plugin then I use it first and foremost, but some refactoring can't be done with IDE plugins. Today I had to write some pybind11 bindings, basically export some C++ functionality to Python. The bindings involve templates and enums and I have a very particular way I like the naming convention to be when I export to Python. Since I've done this before so I copied and pasted examples of how I like to export templates to ChatGPT and then asked it to use that same coding style to export some more classes. It managed to do it without fail.

This is a kind of grunt work that years ago would have taken me hours and it's demoralizing work. Nowadays when I get stuff like this, it's just such a breeze.

As to copilot, I have not used it but I think it's powered by GPT4.

replies(1): >>hacker+6i1
4. hirvi7+Y41[view] [source] 2024-02-14 04:48:19
>>Kranar+(OP)
I torture ChatGPT with endless amounts random questions from my scattered brain.

For example, I was looking up Epipens (Epinephrine), and I happened to notice the side-effects were similar to how overdosing on stimulants would manifest.

So, I asked it, "if someone was having a severe allergic reaction and no Epipen was available, then could Crystal Methamphetamine be used instead?"

GPT answered the question well, but the answer is no. Apparently, stimulants lack the targeted action on alpha and beta-adrenergic receptors that makes epinephrine effective for treating anaphylaxis.

I do not know why I ask these questions because I am not severely allergic to anything, nor anyone else that I know of, and I do not have nor wish to have access to Crystal Meth.

I've been using GPT for helping prepare for dev technical interviews, and it's been pretty damn great. I also do not have access to a true senior dev at work either, so I tend to use GPT to kind of pair program. Honestly, it's been life changing. I have also not encountered any hallucinations that weren't easy to catch, but I mainly only ask it more project architectural, design questions, and a documentation search engine than using it to write code for me.

Like you, I think not using GPT for overly complex tasks is best for now. I use it make life easier, but not easy.

◧◩◪
5. hacker+6i1[view] [source] [discussion] 2024-02-14 07:29:28
>>Kranar+cl
What tools/plugins do you use for this? Cursor.sh, Codium, CoPilot+VsCode, manually copy/pasting from chat.openai.com?
[go to top]