acheong08 / ChatGPT-API-agent

ChatGPT puppeteer for firefox
MIT License
78 stars 23 forks source link

Refactoring and quality of life improvements #3

Closed kihayu closed 1 year ago

kihayu commented 1 year ago

I hope you are doing well. I recently found your project, and think it has a lot of potential.

I made some refactoring and quality-of-life changes that I hope will make the code more maintainable and easier to work with. If you have any concerns about these changes or if any issues need to be addressed, please don't hesitate to let me know. I want to ensure that the project is as practical and functional as possible, and I'm happy to revert any changes that aren't meeting that goal or if you think that these changes wouldn't be as useful.

In the future, I would like to improve the stability of the extension. However, this will take more time and probably needs some more refactoring.

(85% of this text was generated by ChatGPT)

acheong08 commented 1 year ago

(85% of this text was generated by ChatGPT)

I should really start using ChatGPT to code. I'm still old school despite working with ChatGPT so much

acheong08 commented 1 year ago

Tested. It works well.

irgolic commented 1 year ago

Thanks @acheong08 for this wonderful solution, and @kihayu for contributing.

@kihayu, if you don't mind me asking – what exactly did your workflow in creating this pull request look like? Do you have any tricks to share?

kihayu commented 1 year ago

(85% of this text was generated by ChatGPT)

I should really start using ChatGPT to code. I'm still old school despite working with ChatGPT so much

I'm also new to using ChatGPT for coding. I think there was a misunderstanding. With the generated text I mean the description of the pr. The code was written by me.

acheong08 commented 1 year ago

Ah. That makes a lot more sense. The code is way too high quality to be by ChatGPT. Thank you so much for your contribution

kihayu commented 1 year ago

Thanks @acheong08 for this wonderful solution, and @kihayu for contributing.

@kihayu, if you don't mind me asking – what exactly did your workflow in creating this pull request look like? Do you have any tricks to share?

No problem. I can share how I developed these features. This is quite similar to how I do it at work.

acheong08 commented 1 year ago

I created a branch and named it so, that the naming represents the main changes in what I did. Regarding the "feature/" prefix, search for "git branch naming conventions" and read about it. It will help to keep things a bit more organized.

I will start doing that from now on. I have seen this style used in most large repos but never implemented it myself due to laziness.