• 0 Posts
  • 576 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle








  • Assuming “text” in your example is a placeholder for a 5 digit alpha string, it can be written like this in regex: /[a-zA-Z0-9]{5}/

    If ”text" is literal, then your statement is impossible.

    I think that when it gets to more complex expressions like a phone number with country code that accepts different formats, the verbosity of a higher level language will be more confusing, or at least more difficult to take in quickly.


  • How do you think that would look? Regex isn’t particularly complicated, just a bit to remember. I’m trying to picture how you would represent a regex expression in a higher level language. I think one of its biggest benefits is the ability to shove so much information into a random looking string. I suppose you could write functions like, startswith, endswith, alpha(4), or something like that, but in the end, is that better?





  • Nah, children fucking suck. All of them. I was born and raised in the middle of the US and since I was young I knew I never wanted children. I wouldn’t be a good parent so it would be unfair to bring a human into this shitty world and then have them rely on me to raise them. It’s irresponsible and quite frankly unethical to have kids just because procreation is necessary for the human species to to grow. There are plenty of people that want them that the rest of us aren’t required for sustainability.

    The world could use a couple of billion less people anyway.