Reptorian

joined 1 year ago
[–] Reptorian@programming.dev 2 points 5 months ago

For small projects, rewriting is often superb. It allows us to reorganize a mess, apply new knowledge, add neat features and doodads, etc.

This. I'm coding to contribute to a open-source software with very small amount of coders, and with a non-mainstream Domain-Specific Language. A lot of the code I did before has been proven to work from times to time, but they all could benefit from better outputs and better GUI. So, I end up reengineering the entire and that'll take a really long time, however, I do a lot of tests to ensure it works.

[–] Reptorian@programming.dev 2 points 5 months ago

I have to say, I really like the concept behind this. May be another tool for parsing strings I have besides Python.

[–] Reptorian@programming.dev 2 points 5 months ago

Even simpler is repeat 10 { }

} just stands for done.

[–] Reptorian@programming.dev 1 points 6 months ago* (last edited 6 months ago) (1 children)

I don't think we do have a difference in opinion. What I'm saying is that some apps are done with many years of development, and in those case, C++ will likely be the only realistic option because it is way more time-consuming to switch. For example, Krita. I do agree that when there's a choice, C++ is less relevant these day.

[–] Reptorian@programming.dev 3 points 6 months ago (3 children)

C++ is still used for some popular applications, and it still is the only realistic option for these ones. I think there should be more Domain-Specific Languages. I want one for vector graphics like G'MIC is for raster graphics.

[–] Reptorian@programming.dev 2 points 7 months ago

I been meaning to learn Ruby to get around using Python. I like Ruby syntax better.

[–] Reptorian@programming.dev 2 points 8 months ago

This is great, even though if I code in Python, I'm not using it for performance reason, but for convenience.

[–] Reptorian@programming.dev 2 points 8 months ago* (last edited 8 months ago)

It's a bit of a pain to finish, but I'm basically working on creating an array of numbers to assist in sorting unicode characters, and I'm making string processing commands for the G'MIC scripting language. So, that means by hand, I have to sort hundreds of thousands of characters, and I sorted tens of thousands of them already. I already did string_permutations and you can find string_permutations at index or find index which that permutation can be found. However those commands needs the array of numbers for an additional sorting option I'll do.

[–] Reptorian@programming.dev 3 points 8 months ago

I kind of like it. I can understand where it start and end.

[–] Reptorian@programming.dev 1 points 8 months ago

Chances are there's probably something similar to dictionary in Python in your languages or at least it's a import/#include away. Although I don't use general programming languages at all, in my used language (G'MIC), I do something like dict$var=input where $var is a defined variable, and this way I can access input by doing ${dict$var} and that's similar to Python dictionary. In C++, there's hash table implementation out there via github. That being said, there are sometimes when you don't need a hashtable dependent on the hashmap, and sometimes, it's just as simple as basic mathematics to access data.

[–] Reptorian@programming.dev 1 points 8 months ago

Seems like a good idea, I'm hoping that the syntax is sane. As far as languages goes, I think you're missing out on G'MIC to compare as it does have things like FFT and other tools all for image processing which is just part of digital signal processing. And then, there's Python with libraries and so on.

[–] Reptorian@programming.dev 2 points 8 months ago

This is what I prefer too! I also some times prefer to use bitshift when it comes to division or multiplication of power of 2.

view more: next ›