Earlier quoted context omitted.
It only looks for a single leading “e” or “i”, not any number. I’m guessing those tweaks were added to capture specific proper nouns that weren’t captured by simpler “leading capital letter” regexes, like “iPad” or “eBay”.
"*" is "0 or more" and "+" is "1 or more", it looks for any number of "e" or "i" at the beginning and at least one capital letter. The diagram below the regex is wrong. Instead of [ie]*-?[A-Z]+ it looks like they wanted [ie]?-?[A-Z]
Natural occurring molecule rivals Ozempic in weight loss, sidesteps side effects
341–350 of 394 posts
Re: Natural occurring molecule rivals Ozempic in weight loss, sidesteps side effects
#342Earlier quoted context omitted.
Huh, I tried sharing the Zalgo answer here, but it didn't quite work, never knew HN wouldn't render those kinds of characters
It did, but I kinda went over the top with it once and dang had to tell me off, so it might be they added filtering.
Re: Natural occurring molecule rivals Ozempic in weight loss, sidesteps side effects
#343Earlier quoted context omitted.
One thing I always appreciated about CoffeeScript was its [heregex syntax]( https://coffeescript-cookbook.github.io/chapters/regular_exp... ), which made regexes clear and easy to document. Many CoffeeScript constructs were adopted into JavaScript and TypeScript, but unfortunately, heregexes weren't among them.
I agree. I'm pretty sure jashkenas got it from Ruby, which got it from Perl, with the `/x` flag (for extended regular expressions). Later languages have added support for the `x` flag, including C# and Rust. There is also a stage 1 proposal for JavaScript: https://github.com/tc39/proposal-regexp-x-mode
I probably use regexes the most in notepad++
Re: Natural occurring molecule rivals Ozempic in weight loss, sidesteps side effects
#344Re: Natural occurring molecule rivals Ozempic in weight loss, sidesteps side effects
#345Earlier quoted context omitted.
my grandma always said her knee hurts when it's about to rain
Not sure what this adds, I believe your grandma over any LLM
I have been waiting to ask someone this.
Re: Natural occurring molecule rivals Ozempic in weight loss, sidesteps side effects
#346Earlier quoted context omitted.
"*" is "0 or more" and "+" is "1 or more", it looks for any number of "e" or "i" at the beginning and at least one capital letter. The diagram below the regex is wrong. Instead of [ie]*-?[A-Z]+ it looks like they wanted [ie]?-?[A-Z]
There was a product called the eeePC or so. It was a "netbook."
Re: Natural occurring molecule rivals Ozempic in weight loss, sidesteps side effects
#347Earlier quoted context omitted.
There’s negative cardiovascular effects from excess muscle just as with excess fat. Normally that’s offset by the health effects of the exercise required to gain and maintain them as well as the lack of medical conditions that prevent exercise etc. But a fat person losing weight should inherently lose muscle mass long term assuming no changes to lifestyle.
I was looking for this comment! Not a doctor, but as I understand it muscle is roughly equivalent to fat as far as your heart’s workload is concerned. I thought I also read that muscle movement helps with blood return.
Re: Natural occurring molecule rivals Ozempic in weight loss, sidesteps side effects
#348Earlier quoted context omitted.
Is that an anti-pattern to put the comment inside the function vs above
Function documentation goes inside functions in Python, explicitly making them self-documenting. That can then be automatically picked up by any other code (like tooling for automatically generating API documentation) formalized as PEP 257, https://peps.python.org/pep-0257 Python will literally assign the content of your docstring (a triple-quoted string at the start of a function) to a special double underscored ("d…
Re: Natural occurring molecule rivals Ozempic in weight loss, sidesteps side effects
#349Earlier quoted context omitted.
Even so, competition from other GLP-1 drugs and generic semaglutide should make prices and profits lower.
If the companies combined can meet demand
Re: Natural occurring molecule rivals Ozempic in weight loss, sidesteps side effects
#350They are not gonna tell us the source of the molecule? I wanna know which berries or legumes to consume... damnit!!!