code logs -> 2019 -> Thu, 17 Oct 2019< code.20191016.log - code.20191018.log >
--- Log opened Thu Oct 17 00:00:57 2019
00:11 Kindamoody|afk is now known as Kindamoody
00:27 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
00:31 Kimo|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
00:31 mode/#code [+o Kimo|autojoin] by ChanServ
02:16 celmin|away is now known as celticminstrel
03:02 jerith [jerith@Nightstar-ip7ar2.slipgate.net] has quit [[NS] Quit: Lost terminal]
03:24 Degi [Degi@Nightstar-jhb3cl.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
03:25 Degi [Degi@Nightstar-p9qdif.dyn.telefonica.de] has joined #code
04:55 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code
04:55 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
05:09
<@sshine>
this line is still my favourite in my work's codebase:
05:09
<@sshine>
my $cache = ${ ${ $cache{$class} ||= {} }{ $class->dbname() } ||= {} }{$field} ||= {};
05:09
<@sshine>
it was written by the guy who was the CTO for 18 years.
05:10
<&McMartin>
Perl?
05:10
<@sshine>
yup.
05:12
<@sshine>
the moral is clear: get as much done in one line of code as you possibly can!!1 ;-)
05:31 Derakon is now known as Derakon[AFK]
06:14 celticminstrel [celticminst@Nightstar-ocfc15.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:16 celticminstrel [celticminst@Nightstar-ocfc15.dsl.bell.ca] has joined #code
06:16 mode/#code [+o celticminstrel] by ChanServ
06:17 celticminstrel [celticminst@Nightstar-ocfc15.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:45 macdjord [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [[NS] Quit: Deep inside, every housecat believes themself to be just a temporarily embarrassed tiger.]
07:59
<&[R]>
Calling a nonexistant member function isn't a critical error?
07:59
<&McMartin>
What language?
07:59
<&McMartin>
I can think of several where it is not.
07:59
<&McMartin>
Or where it only conditionally is.
08:00
<&McMartin>
(Smalltalk and ObjC, at least, have a catchall method that you can implement that gets called if anyone ever tries to call a method on you that does not exist; Python lets you fake this by overriding __dict__, I think.)
08:01
<&[R]>
<sshine> my $cache = ${ ${ $cache{$class} ||= {} }{ $class->dbname() } ||= {} }{$field} ||= {};
08:01
<&[R]>
Oh, I misparsed it
08:34 McMartin [mcmartin@Nightstar-ipm463.ca.comcast.net] has quit [[NS] Quit: reboot]
08:38 McMartin [mcmartin@Nightstar-ipm463.ca.comcast.net] has joined #code
08:38 mode/#code [+ao McMartin McMartin] by ChanServ
09:03
<@sshine>
Ruby, IIRC, will even let you override "identifier not found" error handling
09:04
<@sshine>
oh yes, this was part of the "wat" video: https://www.destroyallsoftware.com/talks/wat
09:05
<&McMartin>
"Well, this isn't wat, this is why Ruby is awesome, but if you actually do this... wat."
09:08
<~Vorntastic>
Ruby's got a lot of that
09:08
<@sshine>
there was a time where you had to sport these features to be The Next Perl.
09:23
<@sshine>
https://blog.knatten.org/2019/05/24/no-one-knows-the-type-of-char-char/
10:42 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
10:53
<@ErikMesoy>
What's the appropriate Java container for holding a series of int[] arrays of different sizes? From my understanding an int[][] array will pad them out with zeroes until they're the same size, which I don't want.
10:55
<@sshine>
ErikMesoy, an int[][] is rugged in Java, no?
10:56
<@sshine>
ErikMesoy, to get a square array in Java, new int[n*m] will do.
10:57
<@sshine>
ErikMesoy, an int[][] is an array of int[] references.
11:03
<@ErikMesoy>
Do you mean "ragged" ? I don't think it is; int[n][m] is definitely rectangular and int[][]; followed by attempting to clone into columns is an error.
11:05
<@ErikMesoy>
Is there some sneaky trick to making it ragged?
11:20
<&McMartin>
lose the m?
11:23
<@ErikMesoy>
Ooooooh. Didn't realize I can declare int[n][]. Definitely sneaky, thanks, that works.
13:20
<@sshine>
ErikMesoy, ah, yes. I didn't know you could actually initialize a square int[][] at once; I thought you needed to loop.
13:21
<@sshine>
s/square/rectangular/
13:21
<@sshine>
ErikMesoy, and yes, ragged. sorry, tired, messing up my vowels.
13:22
<@sshine>
it's kind of weird. when I get tired, my accent comes through in spelling. I spell fine, but I pronounce the words wrong in my head.
13:49 You're now known as TheWatcher[d00m]
15:13 You're now known as TheWatcher
15:26 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:26 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:29 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
16:30 Pink` [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
16:55 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:49 Kimo|autojoin is now known as Kindamoody
18:20 Derakon[AFK] [Derakon@Nightstar-f1lpvo.ca.comcast.net] has quit [Connection closed]
20:36 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
21:06
< Emmy>
Note to self: when messing with networks, do not mistake your default gateway for your own ip
21:10
< Emmy>
Yep, now it works. :D
21:10
< Emmy>
sez the silly person while typing on a laptop controlling the desktop right in front of me
21:54 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
22:45 Kindamoody is now known as Kindamoody[zZz]
23:09 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
--- Log closed Fri Oct 18 00:00:58 2019
code logs -> 2019 -> Thu, 17 Oct 2019< code.20191016.log - code.20191018.log >

[ Latest log file ]