Reptorian

joined 1 year ago
[–] [email protected] 2 points 7 months ago

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

[–] [email protected] 1 points 8 months ago

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

[–] [email protected] 4 points 10 months ago* (last edited 10 months ago) (1 children)

I only stick with these:

  • pull
  • add
  • commit
  • push

Easy.

[–] [email protected] 6 points 10 months ago* (last edited 10 months ago)

For raster graphics image processing, I'd highly recommend G'MIC. Otherwise, Python and especially for string using regex library. I wish there was a vector graphics version of G'MIC.

[–] [email protected] 1 points 11 months ago* (last edited 11 months ago)

I only do raster graphics image processing, so G'MIC it is. A entire coding language and it's a library in of by itself for that.

On non-DSL, don't have a fave. I'll choose one of these: Python, C++, C#.

[–] [email protected] 8 points 1 year ago* (last edited 1 year ago)

Every languages has their own pitfalls. The answer on picking a language is to pick whatever works for you. There may be even domain-specific languages if you're interested in a domain, and it can be way more flexible than general-purpose solutions for that domain too.

I use 4 languages.

  1. C++ for adding features to a program.
  2. C# for making .dll for an application (Paint.NET). Kinda similar purpose to what I do with G'MIC, except so much more limited.
  3. Python for processing strings
  4. G'MIC for creating/editing raster graphics images (volumetric too)

Now, I wish there was a vector equivalent to G'MIC, but there isn't.

[–] [email protected] 3 points 1 year ago

Also, highlighted the way you expect when you click next to braces works too.

[–] [email protected] 1 points 1 year ago

Braces too can be wrong. But, one is less likely to get it wrong. Modern editors often allows one to highlight matching braces immediately after selection, and rainbow braces(if available) makes it clear on the nest level.

[–] [email protected] 1 points 1 year ago

I didn't say it doesn't help. But, it alone does not really help for bad and long code, but you are correct in that it would be worse with the wrong indentation. Like you pointed out, the program could do the wrong thing if there is a wrong indentation where indentation matters which is one of my issue with something like Python. And languages with explicit exit scope tend to not have that issue while adding to the benefit of making longer code readable. Where white-space sensitive languages really shine on in my opinion are small codes, and that's where I think of using Python.

[–] [email protected] 6 points 1 year ago

From some one who used Python as it was the easiest solution to few of my problems, and having to experience languages with brackets and/or endif/fi/done as ways to limit scope, I find that having things like brackets and/or scope terminators easier to parse and less error-prone. I'm thinking about moving on to Ruby whenever I had a need where Python would be a good choice, but the time it takes for me to understand a new language is blocking me from that.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Well, artists would disagree on that point, and I do agree with the artist. I do think ML at this current state and near future do have a limit. I can't see ML doing anything complicated in 3D like a CAD automobile any time soon.

[–] [email protected] 1 points 1 year ago (4 children)

Indentations does not really help readability that much in case of really, really, long code, and in some cases, a code can execute without with unexpected result because of one single indentation being off. Both of these why I like things like curly braces/brackets and terminators like endif/fi/done/end/etc. But, at the end of the day, if there's a readability problem, then that's a sign that the code needs to be reworked on.

view more: next ›