Interesting, but I never needed AI for coding. Well, twice, and I had to do changes, but would not use AI to generate code.
Interesting, but I never needed AI for coding. Well, twice, and I had to do changes, but would not use AI to generate code.
My small Python (~100 lines of codes) codes aren’t maintainable, but I’m happy with them. I don’t ever plan to work on serious projects with Python, so I can’t say much about it’s maintainability. But, from limited experience, I’d rather use C++, C#, or in my special case, G’MIC if maintainability matters to me.
In my experience, it is.
I had converted a Python code into G’MIC, and then some one else did a Python version of my own code. G’MIC is interpretative with JIT math parser. The results:
Reversing digits in a 1024x1024 RGB image.
Python: Without lookup table and numpy - 3+ minutes
Python: With lookup table and numpy - 6.5 s (Some one else machine, but it shouldn’t take that long)
G’MIC: Without lookup table - .3 s
G’MIC: With lookup table - .005 s
And I did Lavander Binary Map on my machine, you can find code for Python version in github/gmic-community/include/reptorian.gmic:
Python: 3 s (Without lookup table)
G’MIC:.15 s (Without lookup table)
G’MIC: .05 s (With lookup table)
Honestly, I find Python pretty bad for image processing in general.
I use Levels filter tool for that in Krita. Already non-destructive.
Scala does look nice. Just a quick syntax view makes me want to give it a whirl when I want an alternative to Python. I used to code in C++, and C#. I use G’MIC (DSL) as my main. Scala seems right up my alley.
When I do commit, I write up the title of what I did, and describe it, and then use periods for related commits. Just easier.
I’m just glad I have other options than just Python. Am not afraid of writing my solutions either. I rarely use Python these day.
Yes. Once you know how, you can see pitfalls with AI.