--- Log opened Sat Jun 19 00:00:58 2021 |
00:14 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection closed] |
00:19 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed] |
00:22 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
03:42 | | Degi_ [Degi@Nightstar-7d39ls.pool.telefonica.de] has joined #code |
03:43 | | Degi [Degi@Nightstar-468uas.pool.telefonica.de] has quit [Operation timed out] |
03:43 | | Degi_ is now known as Degi |
06:15 | | Kindamoody[zZz] is now known as Kindamoody |
06:32 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code |
06:32 | | mode/#code [+qo Vorntastic Vorntastic] by ChanServ |
09:08 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
10:52 | <~Vorntastic> | Ok. Luaunit latest includes skip which helps a little bit doesn't offer the ability to topological sort the tests |
10:54 | <~Vorntastic> | (which is important as my requirement is that tests run if all their dependencies succeed, which i can't check until all their dependencies have themselves run) |
11:04 | <~Vorntastic> | Which means I'm going to have to jum^H^H^H modify the thing that selects which tests to do |
11:06 | <~Vorntastic> | A little tricky with suites. |
11:23 | <@gnolam> | Vorntastic: I have decided to read "Luaunit" as "Luau-nit" rather than "Lua-unit". |
11:23 | <~Vorntastic> | Correct |
11:45 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code |
12:48 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
12:48 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection reset by peer] |
13:21 | | celticminstrel [celticminst@Nightstar-h2dpj8.dsl.bell.ca] has quit [Ping timeout: 121 seconds] |
13:24 | | celticminstrel [celticminst@Nightstar-i2519i.dsl.bell.ca] has joined #code |
13:24 | | mode/#code [+o celticminstrel] by ChanServ |
13:59 | | gnolam_ [quassel@Nightstar-j9ajs0.priv.bahnhof.se] has joined #code |
14:27 | | gnolam__ [quassel@Nightstar-j9ajs0.priv.bahnhof.se] has joined #code |
14:27 | | gnolam__ [quassel@Nightstar-j9ajs0.priv.bahnhof.se] has quit [[NS] Quit: Gone] |
14:27 | | gnolam_ [quassel@Nightstar-j9ajs0.priv.bahnhof.se] has quit [[NS] Quit: http://quassel-irc.org - Chat comfortably. Anywhere.] |
14:28 | | gnolam_ [quassel@Nightstar-j9ajs0.priv.bahnhof.se] has joined #code |
14:50 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code |
14:50 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
15:35 | | abudhabi_ [abudhabi@Nightstar-q3681i.adsl.tpnet.pl] has joined #code |
15:38 | | abudhabi [abudhabi@Nightstar-pv65tv.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
18:31 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity] |
22:04 | <&[R]> | I'm looking at someone's implimentation of a Flyweight pattern, and I'm confused as hell. Seems completely pointless and a whole bunch of extra assignments that don't really matter. |
22:05 | <&[R]> | https://termbin.com/4ku0 |
22:05 | <&[R]> | Is the implimentation bad? |
22:08 | | Kindamoody is now known as Kindamoody|afk |
22:08 | <&[R]> | https://en.wikipedia.org/wiki/Flyweight_pattern <-- WTF is the PHP code doing? |
22:09 | <&[R]> | How is that an example? |
22:12 | <~Vornicus> | let's see |
22:13 | <~Vornicus> | the php is, uh, "interning", coffee flavor strings, storing indexes to them instead of full strings |
22:19 | <&[R]> | I feel it's overcomplicated with the lamda's |
22:22 | <~Vornicus> | probably |
22:22 | <&[R]> | What about the termbin link? |
22:22 | <&[R]> | That's the bit that's more relevant to my confusion |
22:39 | <&[R]> | Okay, one mystery solved. flyFn inherits from El, which is why it has all those member functions. Then because the Flyweight has .dom it can just use all those functions as if it were the full Element. But why not just get the Element? There's a dictionary for those, is getting a reference of /that/ really that much more expensive than grabing the dom and shoving it into the Flyweight? |
22:40 | <&[R]> | Like, I'm not actually sure the Flyweight is helping out here, and is just adding needless lookups and assignments |
22:41 | <&[R]> | ... unless they're doing that to non managed Dom things |
22:41 | <&[R]> | Which would make a ton more sense, since they'd have to make a new Element which /would/ be quite expensive. |
22:41 | <&[R]> | But the documentation doesn't suggest that's what's supposed to happen |
22:41 | <&[R]> | I'm going to blame the docs |
22:42 | <&[R]> | (El == Ext.Element, FYI) |
22:45 | <&[R]> | > Ext.fly(document.body).getWidth() |
22:45 | <&[R]> | 1918 |
22:45 | <&[R]> | Yeah... |
23:23 | | Kindamoody|afk is now known as Kindamoody |
23:25 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds] |
--- Log closed Sun Jun 20 00:01:00 2021 |