• 0 Posts
  • 119 Comments
Joined 2 years ago
cake
Cake day: July 3rd, 2023

help-circle
  • I definitely agree, it’s all contextual. I worked in manufacturing for almost a decade which is very much process based. If something went wrong, we needed to know why so that it could be prevented.

    A lot of the work I’ve done has been project based, and I usually think of the people involved as the team. Unless there’s an outlier, the general successes and failures are team wins and losses. These sort of questions obviously aren’t for all situations, but when used properly, it can bring about engagement. Even from critics, at least when given the floor to speak, they may reveal some truths that need addressing.

    I have talked like this to children, which is good for them, but also condescendingly when I’ve felt it was warranted. I like to think in this situation it was a ‘moment to grow’ situation rather than condescension.






  • 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?