| ▲ | system2 14 days ago |
| With the help of GPT, I think the bad habit part is non-existent anymore. Learning it from GPT really helps people nowadays. Ask ChatGPT 4.0 some questions, and you will be shocked by how well it describes the code. Just don't ask to fix indentations because it will do it line by line for hours. But it finds mistakes quickly and points you in the right direction. And of course, it comes up with random non-existent modules once in a while which is cute to me. |
|
| ▲ | airstrike 14 days ago | parent [-] |
| The bad habits I was thinking about were more in the line of not understanding how memory is being used (even something as simple as stack vs. heap allocation), not having a type system that forces you to think about the types of data structure you have in your system, and overall just being forced to design before coding |
| |
| ▲ | system2 13 days ago | parent | next [-] | | I ask for help from ChatGPT before I go all in, and it creates these old-fashioned ASCII graphics to show how the flow will be. I think newcomers will not have the bad habits we have/had. | | |
| ▲ | airstrike 13 days ago | parent [-] | | That's really not enough or the same, trust me. You can't outsource your entire understanding to ChatGPT, and I say this as someone who's keen on getting help from AI assistants to write boilerplate code, rubberduck bugs or debate design decisions |
| |
| ▲ | throwaway314155 12 days ago | parent | prev [-] | | Respectfully, many of those things aren't a concern from Python's point of view. And why should they be? If your program runs imperceptibly slower, or using an insignificant amount of extra memory, any attempts to fix this are considered a premature optimization that gets in the way of what is more important to pythonistas - developer experience and high level abstractions. Frankly, the comparison with Rust doesn't even really make sense. They are different tools for very different problems. | | |
| ▲ | airstrike 5 days ago | parent [-] | | Except it's not imperceptibly slower, it's orders of magnitude slower. |
|
|