@quartata If I have an anonymous closure like: (function(){blah})(); I can declare variables in it and set them from within like global variables. If I make the closure have a name like myClosure = (function(){ blah })(); then I have to set the variables like myClosure.myVariable = 1234 is that right?
all you're doing is making a function and then calling it
if you return an object from that function, then you can access those attributes from outside the closure
but anything else that was inside the closure isn't available to you
but that object's "methods" (I use the term loosely because JS doesn't really have them in the class-based sense) can access them, because it was defined in the same scope as them and so it keeps them around
[ SmokeDetector | MS ] Blacklisted website in body, link at end of body, link following arrow in body, pattern-matching website in body, repeated URL at end of long post: Define Enhance Mind IQ? by Entratis 19 on superuser.com
Okay, thanks @quartata, @ArtOfCode! I've worked it out now. Basically, I was returning the function which changed a value in the closure. The variable I was returning was a snapshot in time of the variable in the closure instead of getting it from that closure every time. It meant that after I had run the function to change the value, I was still just looking at the value originally returned instead of getting it from the closure again.
@quartata if you use Postgres, the fulltext search is pretty decent. The major disadvantage of this kind of index is that you can only search from the beginning of a word. Arbitrary regexp are not possible.
@quartata An integer. So when I used my function to update that integer, the returned value obviously didn't change because it's just an integer. The solution is to return another function which goes into the closure and gets the integer.
I offered to do a screen recording of setting up the team for UX people to look at... suddenly feeling like I should add some dryly amused commentary and comedy music
Hey @Undo @ArtOfCode so we noticed that you've added gmail.com and icloud.com as allowable emails in the team that means pretty much anyone with those could join your team.
@Taryn I think the concern we were having was that we don't have enough emails to go around, so Art would have to do some... weird stuff.. to get people in.