« first day (970 days earlier)      last day (2027 days later) » 
01:00 - 04:0004:00 - 20:00

4:00 AM
This defines a function sort().
 
I've never used Autohotkey
 
And it makes it so that you can change internal_variable and it will be remembered when you call the function again.
As opposed to local and global variables.
 
Oh, I see.
Java has the concept of static, too.
I've never encountered static in JavaScript, though.
 
I believe JS doesn't, so you have to tinker with closures to get a similar effect?
 
In Java, a class can have a static variable (not a function, like in your case)
 
4:02 AM
I just use globals in JS, which is probably taboo, but it's amateur code, so bleh.
And Eslint warns me when I accidentally confuse locals and globals.
 
When I create a JavaScript file, my first line is often this
AppName = (function() { ... })();
I put all my variables inside that function() {...} so they are local to that function.
Thus the only global variable is AppName
 
Right!
And you could just leave out AppName =, couldn't you?
 
Yes, you could, but here's the thing
I use this format
AppName = (function() {
// do stuff ...
return {
documentReady: function() { // blah}
}
})();
 
Nested anonymous functions!
 
If you look closely at that, you'll see that the function() {...} has a return value which is an object.
Thus AppName = {documentReady: function() { ...}}
AppName becomes an object and I can invoke functions on it from outside.
 
4:06 AM
Hmm.
 
So, when the document finishes loading and is ready, an event you can listen for in JavaScript, I call the AppName.documentReady() method
AppName.documentReady() has access to all the variables inside the anonymous function.
But it's the only visible method in AppName
 
OK.
 
We often return a documentReady method, a setConfig method, and a setMessages method.
 
So it has to do with avoiding conflicts with other code while allowing your stuff to work with other stuff?
 
Thus when the document finishes loading, we set some configuration parameters, and set some messages (like the alert/confirm messages you see when you use the page)
Well, it only puts one variable in the global scope, but that variable has a lot of functionality.
So I think the answer to your question is yes.
This weekend has been good from a work perspective; things have been working on the first try!
Usually there's some bug or two or three that I have to fix before it works.
 
4:11 AM
Well done!
It's almost bed time for me.
 
I'm curious, is it easy for you to fall asleep?
 
Usually, kinda.
Why?
 
I'm just curious because sometimes I have trouble falling asleep.
 
I recite lines from the Odyssey until I fall asleep.
A life saver!
 
Haha
You would!
 
4:14 AM
I used to memorize and produce Roman emperors in order for that purpose, but it didn't work that well.
 
Neat.
 
I highly recommend memorizing foreign poetry, because of the rhythm.
Memorize a few more lines if you can't fall asleep.
 
It's nice to know I can still chat with you and Joonas even though I don't post on the forum all that much.
 
And practice them until you fall asleep or until you really know them well, in which case you memorize a few more lines.
Of course!
I don't post that much either...
What do you do when you can't sleep?
 
Lie awake all night!
:(
I hope I at least get some rest during those wakeful hours. Or maybe fall asleep when I don't notice it.
Argh, I have to go! The McDonald's where I'm writing you is closed (actually closed 20 minutes ago).
Headed home now, and then sleep.
Bonam noctem!
 
4:20 AM
Aww.
Bon voyage!
 
Thanks! good night!
 
@ktm5124 And try memorizing some Ovid or Homer when you can't sleep!
Then you can use those lines later to fall asleep.
Just start by memorizing two lines from Pyramus et Thisbe when you can't sleep, or a few more.
The act of memorising already makes one sleepy.
 
 
13 hours later…
5:42 PM
@ktm5124 I should point out that I have met brilliant mathematicians who do seem to appreciate having a significant net worth. But it's not the most important thing in life, and it doesn't have to mean they wouldn't share.
I've yet to meet anyone who does math for money. Perhaps because there isn't that much money in it?
 
6:15 PM
@Cerberus That has nothing to do with me, but I'll take it as a compliment anyway.
@ktm5124 Hi! I forget, are you in the UK now?
I'll be flying through Chicago pretty soon. I won't have time to leave O'Hare, but this time I won't just fly over.
 
6:33 PM
@JoonasIlmavirta You also have two children, but it has nothing to do with you?
 
@Cerberus I don't have children, but I'm 30.
I'm glad it counts as young!
 
@JoonasIlmavirta Hi! I'm in Chicago right now. Not leaving until the end of the month.
 
@ktm5124 I have a short overlay there next Monday.
 
@JoonasIlmavirta Oh, neat!
 
But unfortunately it probably doesn't make it much easier to meet up, as I'll be mostly enjoying the immigration queue I guess.
I've never had the chance to see Chicago.
 
6:41 PM
Where are you ultimately headed?
 
Seattle.
 
Seattle is nice. Better than Texas :)
It's fairly rainy over there, a bit like England.
 
@JoonasIlmavirta Quite!
 
I think one of the main attractions is the nature.
You have to go elsewhere for three-headed dogs.
 
@ktm5124 Seattle can be quite rainy, too. But the rains are mostly light, unlike in Texas.
Seattle feels far more European than Houston, and I like that. I feel welcome walking there. Not driving in Texas is weird.
 
6:44 PM
If you have time, you could take a ferry to the Puget Sound. You might want to look up the Puget Sound.
The Cascade Mountains are also famous.
 
@ktm5124 That could be worth consideration. There's another colleague visiting simultaneously, and I could ask if they're up for any excursions.
 
Yes, I like walkable cities. I wouldn't want to live anywhere else. I don't like driving every day.
 
UW campus is also nice.
I don't even have a car. I have a licence and I could afford one, but it'd only make my life harder.
 
I think Bill Gates used to - or still does - have a house on Orca Island in the Sound.
 
At least I think he still lives somewhere in the area, but I don't know any details.
For some reason Redmond comes to mind?
 
6:47 PM
He probably has more than one house. I think the one on Orca Island might be a summer house.
He also has a house in Chicago now :)
 
Does he not have a house somewhere?
 
If you ever visit Chicago, there are two places I recommend you: (1) The Art Institute and the surrounding downtown area on Michigan Ave and (2) Hyde Park and the University of Chicago campus.
 
Jyväskylä at least, I'd guess...
 
Say what!? Is that Finnish? :)
 
@ktm5124 If I ever come there, it's likely to be for something scientific, so a campus might come automatically.
@ktm5124 I live in a city called Jyväskylä.
 
6:50 PM
Oh, cool.
 
It's often called Granivicus in Latin.
Does Chicago have a Latin name?
 
Hah, don't know
But our city motto is "urbs in horto"
That's because of our many parks and gardens
@Cerberus Woof!
 
That makes for better motto material than the many shootings.
 
I'd say so!
 
Mew!
 
6:58 PM
I suppose our second motto would be #blacklivesmatter
But the violence is really local to some south side neighborhoods - and not all of the south side at that.
 
Quam Plurimi Necentur
 
I've always lived in safe neighborhoods.
@Cerberus As many are killed?
 
Quam + superlative is a special construction.
 
I was robbed once, though, in Hyde Park.
 
And the verb is a subjunctive.
Oh! How did it happen? That sounds somewhat traumatic.
 
7:02 PM
Nah. I brushed it off pretty easily. A guy put his finger in his hoodie pocket and pretended to have a gun. He may have actually had a gun - I don't know. He asked for my phone and wallet.
How would you translate Quam plurimi necentur? My Latin is rusty.
 
Ugh.
That sucks.
What hour was it?
May as many as possible be killed.
 
I was going to guess that!! Darn.
 
I was responding to Joonas' suggestion for a motto...
 
It was around 10pm
 
@Cerberus How about a simple necaberis?
 
7:07 PM
@JoonasIlmavirta Lovely!
@ktm5124 Hmm I know about two people who were stabbed in the big park here.
One just once, the other into a coma.
At night.
 
Might I suggest urbs sanguinis as Chicago's motto?
 
Also lovely!
 
And far more poetic than mine!
 
Lol
 
Although yours benefits from its directness.
 
7:10 PM
proud of himself woof, woof!
Necaberis = You will be killed?
 
Perhaps our motto could be Urbs Squalida Peregrinis.
 
@ktm5124 Exactly!
 
Heh
That would kill tourism (no pun intended)
Though mine would too
@Cerberus Squalid city of the peregrine?
I have a dog's feeling I am off...
 
How about mors gratia mortis? Cerberus should approve!
 
@ktm5124 I like where you're going with this.
@ktm5124 City squalid with tourists, was what I was going for.
@JoonasIlmavirta Death is the grace of death?
Or is this rare praepositional gratia, Death for the sake of death?
I approve anyway.
 
7:23 PM
@Cerberus Precisely, as is more often said of art.
 
Ah, I am not familiar with that.
I only know l'art pour l'art.
 
Ars gratia artis.
 
The HP corpus doesn't have it!
So not Horace.
 
Here in the States it's the motto for the motion picture company MGM.
 
(I would have expected something like ars sui gratia.)
Ah.
 
7:25 PM
So whenever we watch movies we often see it.
Second paragraph
 
How mobile you are.
 
Well, I am on my mobile cell phone.
 
It's not only la donna that is mobile.
 
Isn't it paradoxical that the phrase "Ars gratia artis" is used commercially?
 
Heh.
Anche il gentiluomo!
 
7:29 PM
Devo già dormire.
 
So früh!
 
@ktm5124 It is indeed, but perhaps they're trying to fade away the commercial context.
Valetote canes!
 
Hupnoseias exaiphnes!
 
This conversation is over my head.
You know you're in trouble when there are NO google search results for "Hupnosaies exaiphnes!"
 
@ktm5124 Just translitterations from Greek!
May you fall asleep quickly.
 
7:41 PM
Oh!
 
01:00 - 04:0004:00 - 20:00

« first day (970 days earlier)      last day (2027 days later) »