3 ms·
Could you give an example of how ChatGPT helped you specifically with Rails?
by theonething 3y ago
Could you give an example of how ChatGPT helped you specifically with Rails?
- SkyPuncher 3y agoThe one that I use it the most for is writing ActiveMigrations while integrating with some of Postgres features. There's a lot of settings that get pass-thru to the DB, but aren't clearly documented. I know it's possible, I just can't remember the syntax. Same thing with some of the more advanced Model relationships. I just don't write _that_ many relationships, so I tend to forget how Rails wants certain things defined. Since a lot of things rely on config, rather than "normal" runtime code, it can be frustrating to debug. ChatGPT just gets me to the right answer. --- It's also pretty useful at gut checking DB design. There's been a few times where it's suggested a different approach than what I expected and I've preferred it's suggestions.
- theonething 3y agoWow, thanks. I gotta start checking out how to leverage ChatGPT more.