Live data from Hacker News

Jolie, the service-oriented programming language

jolie-lang.org

51–60 of 62 posts

Re: Jolie, the service-oriented programming language

#51
post #17
post #14

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.

But why do you even need to validate that email? Send the subscriber a confirmation link - if they get it then it was valid, if not then it's on them to fix the situation in whatever way they find fit.

Re: Jolie, the service-oriented programming language

#52

I 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)

Jolie stands for 'pretty/beautiful/attractive' in feminine form in french and is sometimes used as a noon when mentioning a person more often in a condescending manner.

Re: Jolie, the service-oriented programming language

#53
post #24
post #18

Earlier 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.

Yeah, I agree, I think I'd have written that myself, but I don't think I'd reject it in review on that basis. I don't agree with sibling comment that it's 'shitty', it's trivially improved sure but it basically doesn't matter - if you want it to be actually correct you need to send an email to it for verification anyway.

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

#54

Earlier 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).

Yeah Julie/juliette are common as a first name but do not share etymology (comes from julius).

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

#55
post #37

Earlier 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...

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

#57

I 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)

Whenever Jolie is posted in a forum, the same discussion about its name is recreated.

It is, however, the first time that I see the 'airbender explanation'. Nicely done!

Re: Jolie, the service-oriented programming language

#58
post #37

Earlier 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".

Angelina Jolie is a stage name. She was born Angelina Jolie Voight. Jolie is a middle name there.

Re: Jolie, the service-oriented programming language

#59

Earlier quoted context omitted.

Seems like a backronym to me.

For those who don't know, jolie means pretty in french, and is a common woman's name.

I knew a woman whose last name was Jolie... Her parents named her Très ("très jolie" means very pretty).

Re: Jolie, the service-oriented programming language

#60
post #17
post #14

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.

A single massive and unreadable regex isn't an appropriate way to validate a spec that complex. With its complexity it can't be logically evaluated- only tested, whereas a function that breaks the spec out into steps/parts is going to be a lot more maintainable, readable, and auditable.
Post reply on HN