Live data from Hacker News

Jolie, the service-oriented programming language

jolie-lang.org

11–20 of 62 posts

Re: Jolie, the service-oriented programming language

#11
Was curious at first but got more disappointed the further I read.

The docs are overly wordy and in desperate need of editing.

It claims it's a language, but it looks more like a DSL on top of Java with non-obvious syntax.

It's been around since 2014? Is it used for anything serious? Or just riding the microservices gravy train?

Re: Jolie, the service-oriented programming language

#13
post #7

Looking at a Database example[0] doesn't make me want to write this more than using any other framework. [0] https://docs.jolie-lang.org/v1.11.x/language-tools-and-stand...

Maybe it's just a bad example, it doesn't look much different than what I can do in C#.

Why would you showcase a bad example if there was a better one?

Re: Jolie, the service-oriented programming language

#17
post #14
post #12

email:string( regex(".*@.*\\..*") ) This is incorrect regex for email. The correct one is https://pdw.ex-parrot.com/Mail-RFC822-Address.html

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.

Re: Jolie, the service-oriented programming language

#18
post #12

email:string( regex(".*@.*\\..*") ) This is incorrect regex for email. The correct one is https://pdw.ex-parrot.com/Mail-RFC822-Address.html

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

Re: Jolie, the service-oriented programming language

#19
post #12

email:string( regex(".*@.*\\..*") ) This is incorrect regex for email. The correct one is https://pdw.ex-parrot.com/Mail-RFC822-Address.html

At a certain point I think you're allowed to say you don't care if the person with this email address is capable of signing up or using your service:

very.”(),:;[]”.VERY.”very@\\ "very”.unusual@strange.example.com

Post reply on HN