Earlier quoted context omitted.
That is an absurdly complex regex
Email address specs turn out to be rather complicated. I really wish people wouldn't code their own checks rather than use already existing standards. Some languages like Java even include proper checks in their standard library: https://java.net/projects/javamail Several jobs back I had no end of arguments with some Java devs about not writing their own checks, that kept routinely failing on legitimate addresses.
Jolie, the service-oriented programming language
51–60 of 62 posts
Re: Jolie, the service-oriented programming language
#52I assume this language is named after Jolie in Avatar The Last Airbender? ( https://avatar.fandom.com/wiki/Zhu_Li_Moon - the pronunciation is the same)
Re: Jolie, the service-oriented programming language
#53Earlier quoted context omitted.
It's a pragmatic one. It has no false negatives, and there's rarely a reason to care about false positives. (Especially not where a stricter regex would (be the only mechanism to) catch it, but a fake-but-valid address wouldn't trivially bypass it.)
At the very least, I assume .+ at the start is a better choice. The RFC says: addr-spec = local-part "@" domain ; global address atom = 1* word = atom / quoted-string so I think the bit in front of the @ has to be non-empty.
Otherwise we can start saying not just not empty, it also needs no other @s etc. and before you know it we're rivalling the actually correct attempt up-thread. If you just want to catch typos, encourage entering real address (not just a space or full stop to fill mandatory field) then any basic thing is something, a compromise between legibility and how much it'll catch, we know there's a tonne of (mainly adversarial) bad input it'll miss, that's fine.
Re: Jolie, the service-oriented programming language
#54Earlier quoted context omitted.
For those who don't know, jolie means pretty in french, and is a common woman's name.
I don't think I've heard heard of someone named Jolie. According to data from INSEE (France's Census Bureau equivalent), since 1925, only 6 babies were named Jolie in 2011 and then 5 more in 2018. There's a Joline which you'd pronounce pretty much like jolie as the n is very weak, but it's barely more popular. Anyway, jolie does mean pretty, but it's not really a name (11~0 at this scale).
A more common last name is Joly which is old form from joli, the masculine form of jolie.
Re: Jolie, the service-oriented programming language
#55Earlier quoted context omitted.
I don't think I've heard heard of someone named Jolie. According to data from INSEE (France's Census Bureau equivalent), since 1925, only 6 babies were named Jolie in 2011 and then 5 more in 2018. There's a Joline which you'd pronounce pretty much like jolie as the n is very weak, but it's barely more popular. Anyway, jolie does mean pretty, but it's not really a name (11~0 at this scale).
I'm pretty sure you've heard of at least one person named Jolie: https://en.wikipedia.org/wiki/Angelina_Jolie - but of course she's not French, I guess her parents picked the name because it sounded nice, and she thought it sounded so nice that she picked it as her stage name...
I'm guessing the other commenters are right, GP probably meant "Julie".
Re: Jolie, the service-oriented programming language
#56Re: Jolie, the service-oriented programming language
#57I assume this language is named after Jolie in Avatar The Last Airbender? ( https://avatar.fandom.com/wiki/Zhu_Li_Moon - the pronunciation is the same)
It is, however, the first time that I see the 'airbender explanation'. Nicely done!
Re: Jolie, the service-oriented programming language
#58Earlier quoted context omitted.
I'm pretty sure you've heard of at least one person named Jolie: https://en.wikipedia.org/wiki/Angelina_Jolie - but of course she's not French, I guess her parents picked the name because it sounded nice, and she thought it sounded so nice that she picked it as her stage name...
Yeah, but that's a last name. I was talking about first names which is usually what people mean when they say a common name. I'm guessing the other commenters are right, GP probably meant "Julie".
Re: Jolie, the service-oriented programming language
#59Re: Jolie, the service-oriented programming language
#60Earlier quoted context omitted.
That is an absurdly complex regex
Email address specs turn out to be rather complicated. I really wish people wouldn't code their own checks rather than use already existing standards. Some languages like Java even include proper checks in their standard library: https://java.net/projects/javamail Several jobs back I had no end of arguments with some Java devs about not writing their own checks, that kept routinely failing on legitimate addresses.