As much as I love Python and I truly do, I might sharpen up on Go for web development. Seems more suited to the task.
Discussion
I don't like Python (but I'm bound to it by fate or something) but lately I did some stuff with golang and I really like it for web stuff.
Yeah Go is clean, simple, fast, and makes it easy to write with low resource use.
I'm just migrating from Nginx to Caddy right now. Caddy is amazing (I should have moved a lot sooner!) and the whole thing plus extensions are all written in Go.
I despise Python so much I spent the morning digging into Go so I could see if the btcd libraries could do what I wanted so I could avoid Python.
In the end, none of the bitcoin libraries I’ve tried in Ruby, Go, Python, or Rust have had everything I want/need.
Go is a nice intermediate ground between Ruby and Rust for me.
Having ChatGPT handy to answer basic questions about what libraries are available and how to accomplish different tasks in a new language by comparing it to features in languages I know well has been a godsend too. It removes most of the friction that has prevented me from exploring some of this stuff more in the past.
ChatGPT is indeed very useful for porting general programming knowledge to a new language for sure, it's great for that. Code it provides isn't always perfectly functional outside of basic tasks but it always gives a good start point and explains the logic.
I love Python myself, I just find it real easy and intuitive, but to each their own ofc. I like the look of Go too because it's similarly easy to learn and human readable.
I have found porting libraries and dependencies a bit annoying in Go but that's probably just because I need to get used to Go's way of doing it.
I like Python here because you just pip install and it's ready to go once you import it in your code. No fuss.
If I didn’t have Ruby I’d love Python too. But given the choice, Ruby fills my need for a dynamic “get shit done” language and the aesthetics are a better fit for me.
I basically just use ChatGPT as a research assistant to save me the time I would waste searching for ambiguous stuff. As the web has exploded over the last 20 years it’s gotten harder to just get up to speed on the current accepted options for tackling various problems. Now I’m able to use search engines in a much more targeted way to find the specific things ChatGPT has already clued me in about. It’s also a great way to explore a new to me API.
It would take me much longer to coerce ChatGPT into writing the code I want in the way I want it than it does to just type it myself once I know what I want. But it saves me a ton of time exploring options so I can decide what I want. Then I can shift to an iterative debugging session using something like Ruby’s pry or Python’s ipdb (which ChatGPT helped me find when I asked it about pry like tools for Python).
Yeah exactly that's the way to use ChatGPT. Have it explain how you'd do XYZ in the language you're learning and go yourself from there 👌