BassTurd

joined 1 year ago
[–] BassTurd 1 points 5 hours ago

The "something" is where the regex goes. For simple cases contains by itself does just fine, but for almost anything kind of dynamic input, it's going to not be capable of what regex does.

[–] BassTurd 4 points 15 hours ago

Also, fuck Elon.

[–] BassTurd 6 points 17 hours ago (1 children)

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.

[–] BassTurd 1 points 17 hours ago (1 children)

Anecdotally, every AI has generations to go before it's good enough to replace a person entirely. It's a solid tool for people that know how to code, but it's nothing more than hobby or reporting worthy to someone with limited to no programming experience. It does not make secure or efficient code, and it's only as good as the input, which will not be good from someone that doesn't understand how to code. Anyone that blindly trusts generated code and pushes into production, is insanely reckless and grossly unqualified to have that kind of power.

[–] BassTurd 5 points 18 hours ago (16 children)

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?

[–] BassTurd 4 points 2 days ago (1 children)

This dude just needs to take himself out of the equation for the world's sake.

[–] BassTurd 7 points 2 days ago

I had a sort of cramping sensation in one of my balls for a good year post surgery. The more active I was, the less bad it was. If I was active then not for more than a week, it would cramp in waves. It's gone now, and I would happily do it all over again. Mild intermittent discomfort for a lifetime of peace of mind.

[–] BassTurd 7 points 2 days ago

Somebody's a little upset that their general is dead. Cry about it some more.

[–] BassTurd 1 points 2 days ago

The good old Oedipus complex, where you mean one thing but fuck your mother.

[–] BassTurd 8 points 4 days ago (2 children)
[–] BassTurd 24 points 6 days ago

I hope these motherfuckers get tetanus and fucking die. Something self inflicted, I'm not calling for violence, but ultimately ending with them ceasing to live. I'd accept heart attack, stroke, natural causes, whatever, but it would be a little sweeter if it were something a vaccine could prevent. Or COVID, I'd like to see them succumb to that. The possibilities....

[–] BassTurd 2 points 1 week ago

You're making bad arguments to defend what I think is a bad opinion. You can ignore me if you want, but I'm not going to just let dumb, no effort comments to me just go unchecked because you want "chill".

view more: next ›