Comment by jibal

Comment by jibal a day ago

8 replies

The point is that those terms are ambiguous ... and if you mean the length in grapheme clusters, it can be quite expensive to calculate it, and isn't the right number if you're dealing with strings as objects that are chunks of memory.

zwnow a day ago

[flagged]

  • zahlman a day ago

    It is not possible to write correct code without understanding what you dismiss here.

  • tomsmeding a day ago

    If the validation rules don't specify (either explicitly or implicitly) what the "length" in the rule corresponds to (if it concerns a natural-language field, it's probably grapheme clusters), then either you should fix the rule, or you care only about checking the box of "I checked the validation rules", in which case it's a people problem and not a technology problem.

  • dwb a day ago

    You are in the wrong job if you don’t want to think about “nerd shit” while programming.

    • zwnow a day ago

      Idk it pays my bills and I have success at work so I must do something right.

      • dwb a day ago

        Well I just hope I don’t have to use any of the software you build. What a shameful attitude.