code logs -> 2019 -> Thu, 21 Feb 2019< code.20190220.log - code.20190222.log >
--- Log opened Thu Feb 21 00:00:37 2019
00:59 celmin|sleep is now known as celticminstrel
01:06 Kindamoody is now known as Kindamoody[zZz]
01:07 Derakon[AFK] is now known as Derakon
02:08 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
02:08 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
02:08 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
03:36
<&ToxicFrog>
After an entire evening of hacking, ttymor is now capable of distinguishing between "objects you can, in some manner, interact with" and "everything else in the world".
03:36
<&ToxicFrog>
Actual interaction is not yet possible, of course.
03:36
<&ToxicFrog>
So it's more like "objects you could in theory interact with if that part of the UI were wired up".
04:06 catalyst [Jessikat@Nightstar-5dv16h.cable.virginm.net] has quit [[NS] Quit: Leaving]
04:31
<@celticminstrel>
I don't understand that JS example at all. >_>
05:14 Derakon is now known as Derakon[AFK]
05:26 celticminstrel is now known as celmin|sleep
05:53 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code
05:53 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
06:27
<&jeroud>
I have acquired an intense dislike of all the swagger/OpenAPI code generators I have found.
06:28
<&jeroud>
Unfortunately, fighting with those is still better than implementing an API with dozens of document schemas and dozens calls by hand.
07:38 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [Ping timeout: 121 seconds]
08:10 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
08:10 mode/#code [+ao McMartin McMartin] by ChanServ
08:18 Kindamoody[zZz] is now known as Kindamoody
08:29 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
09:03
< simon_>
function name of the day: hj2data
09:03
< simon_>
"hj" means "human job", meaning "an ad that someone in the company has spent time on", as opposed to "robot job". except not all "human jobs" have that quality, of course.
09:03
< simon_>
"2"... because "_to_" is so wasteful.
09:04
< simon_>
and "data". that's simply true.
09:28
<~Vorntastic>
2 at least is a common abbreviation for that task
11:44
<&[R]>
celmin|sleep: 6 classes are defined, one helper function is defined, 4 classes tested (the other two are the base classes). JS has two ways to make a class, example is all about comparing how they work with properties that are objects.
12:40 catalyst [Jessikat@Nightstar-5dv16h.cable.virginm.net] has joined #code
13:36
<@celmin|sleep>
...
13:42
<&[R]>
If that didn't help I don't know what information you're missing :/
13:46 celmin|sleep is now known as celmin|away
13:46
<@celmin|away>
Hmm...
13:47
<@celmin|away>
So what exactly is the difference anyway?
13:47
<@celmin|away>
I can see that you got two different outputs.
13:48
<@celmin|away>
I've never used the class syntax (probably wasn't supported yet when I was doing JS).
13:48
<&[R]>
The prototype inheritance (Y and Z) end up having this.x be the same object on all instances of that class
13:49
<@celmin|away>
And the class inheritance... uses that object as a prototype for the instance object, or something like that?
13:50
<@celmin|away>
As if you'd run something like for(x in this) if(typeof(x)=='object') x = Object.create(x);
13:50
<&[R]>
In class inheritance the base class' constructor is forcibly called in the child class constructor, meaning each child class instance properly has their own instance of this.x
13:50
<@celmin|away>
Ohh.
13:51
<&[R]>
This is syntaxically enforced too
13:51
<@celmin|away>
Right, if you'd explicitly called the base class constructor, you would've gotten the same behaviour from both.
13:51
<&[R]>
Attempting to access this in a base class' constructor before you called super() will throw an Error
13:51
<&[R]>
Yeah
13:51
<@celmin|away>
Can you just not call super() at all
13:52
<&[R]>
Yup, so long as you don't reference this in the constructor :p
13:53
<&[R]>
Actually no, you'll get the same error even if you don't
13:53
<@celmin|away>
So it's kinda like Java then? I suppose it doesn't support multi-inheritance either.
13:53
<@celmin|away>
Which is understandable, admittedly.
13:54
<&[R]>
Right
13:54
<@celmin|away>
Mind you, it's not like prototype-based inheritance neatly supports that either.
13:55
<&[R]>
Eitherway, no I've gtg
13:55
<&[R]>
now*
13:55
<&[R]>
Peeace
13:55
<@celmin|away>
Me too actually.
13:55
<@celmin|away>
Bye.
13:58 Degi [Degi@Nightstar-45ieab.dyn.telefonica.de] has joined #code
15:38
<@TheWatcher>
Argh, why is curl ignoring this @
16:30 Degi [Degi@Nightstar-45ieab.dyn.telefonica.de] has quit [Connection reset by peer]
17:09 iospace [quassel@Nightstar-fkokc2.com] has quit [Ping timeout: 121 seconds]
17:17 iospace [quassel@Nightstar-fkokc2.com] has joined #code
17:17 mode/#code [+o iospace] by ChanServ
17:26 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
18:22 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
18:25 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [[NS] Quit: brb, reboot]
18:33 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
18:34 iospace [quassel@Nightstar-fkokc2.com] has quit [Operation timed out]
18:35 iospace [quassel@Nightstar-fkokc2.com] has joined #code
18:35 mode/#code [+o iospace] by ChanServ
18:50 Kindamoody|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
18:50 mode/#code [+o Kindamoody|autojoin] by ChanServ
18:56
< catalyst>
@
18:58 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
19:21 Kindamoody|autojoin is now known as Kindamoody
19:21 Degi [Degi@Nightstar-45ieab.dyn.telefonica.de] has joined #code
22:59
<&[R]>
TheWatcher: what's your use of it?
23:00
<&[R]>
Because curl does treat @ specially
23:00 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
23:00 mode/#code [+o himi] by ChanServ
23:01
<@TheWatcher>
[R]: using it to pull data from a file as part of a POST
23:01
<&[R]>
Ah, yeah it should be doing that
23:02
<@TheWatcher>
I probably screwed something up, in the end I just worked around it using cat in a $()
23:02
<&[R]>
Heh
23:21 Degi [Degi@Nightstar-45ieab.dyn.telefonica.de] has quit [Connection closed]
23:30 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Connection reset by peer]
--- Log closed Fri Feb 22 00:00:38 2019
code logs -> 2019 -> Thu, 21 Feb 2019< code.20190220.log - code.20190222.log >

[ Latest log file ]