code logs -> 2017 -> Mon, 11 Dec 2017< code.20171210.log - code.20171212.log >
--- Log opened Mon Dec 11 00:00:20 2017
00:11 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection closed]
00:12 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
00:12 mode/#code [+o Kindamoody] by ChanServ
00:48 Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Connection closed]
00:58 Jessikat [Jessikat@Nightstar-q9s8ks.dab.02.net] has joined #code
01:06 Kindamoody is now known as Kindamoody[zZz]
03:16 mac [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has joined #code
03:16 mode/#code [+o mac] by ChanServ
03:17 macdjord [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
04:03 Jessikat` [Jessikat@Nightstar-g0b.tcr.132.82.IP] has joined #code
04:06 Jessikat [Jessikat@Nightstar-q9s8ks.dab.02.net] has quit [Ping timeout: 121 seconds]
04:40 Derakon is now known as Derakon[AFK]
04:40 Kindamoody[zZz] [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection closed]
05:04 Jessikat` is now known as Jessikat
05:11 Vornlicious [Vorn@Nightstar-l9n6ps.sub-174-210-1.myvzw.com] has joined #code
05:13 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
05:31 celmin|sleep [celticminst@Nightstar-dlquqe.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
05:57 himi [sjjf@Nightstar-dm0.2ni.203.150.IP] has quit [Operation timed out]
06:22
<&McMartin>
Oh hey, I've been playing video games so hard I completely forgot about AoC this weekend.
06:22
< Vornlicious>
Heh
06:23
< Vornlicious>
What language are you doing it in?
06:28
<&McMartin>
Mostly Python, occasional dips into C.
06:47 Kindamoody|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
06:47 mode/#code [+o Kindamoody|autojoin] by ChanServ
07:16 Degi [Degi@Nightstar-rid8gk.dyn.telefonica.de] has joined #code
07:36
<&McMartin>
There we go, all caught up.
07:37 macdjord [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has joined #code
07:37 mode/#code [+o macdjord] by ChanServ
07:39 mac [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
08:02 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
08:07 Vornlicious [Vorn@Nightstar-l9n6ps.sub-174-210-1.myvzw.com] has quit [Ping timeout: 121 seconds]
08:21 Jessikat [Jessikat@Nightstar-g0b.tcr.132.82.IP] has quit [[NS] Quit: Bye]
08:21 Jessikat [Jessikat@Nightstar-g0b.tcr.132.82.IP] has joined #code
08:21 Jessikat [Jessikat@Nightstar-g0b.tcr.132.82.IP] has quit [The TLS connection was non-properly terminated.]
08:26 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Ping timeout: 121 seconds]
08:26 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
08:26 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
08:28 Vorntastic [Vorn@Nightstar-l9n6ps.sub-174-210-1.myvzw.com] has joined #code
08:54 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Ping timeout: 121 seconds]
08:54 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
08:54 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
09:02 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Ping timeout: 121 seconds]
09:06 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
09:06 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
09:30 VirusJTG_ [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
09:31 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Ping timeout: 121 seconds]
09:32 Kindamoody|autojoin is now known as Kindamoody
09:38 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection closed]
09:41 Kindamoody|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
09:41 mode/#code [+o Kindamoody|autojoin] by ChanServ
09:49 Kindamoody|autojoin is now known as Kindamoody
09:52 You're now known as TheWatcher[d00m]
10:13 Vorntastic [Vorn@Nightstar-l9n6ps.sub-174-210-1.myvzw.com] has quit [Ping timeout: 121 seconds]
10:31 Vorntastic [Vorn@Nightstar-l9n6ps.sub-174-210-1.myvzw.com] has joined #code
10:51 You're now known as TheWatcher
12:16
<&jeroud>
Reminder about #aocspoilers. :-)
13:38 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection closed]
13:40 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
13:40 mode/#code [+o Kindamoody] by ChanServ
13:59 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
14:00 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
14:00 mode/#code [+o Kindamoody] by ChanServ
14:02 Kindamoody is now known as Kindamoody|afk
14:03 Kindamoody|afk [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection closed]
14:06
< simon_>
hmm
14:09 Kindamoody|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
14:09 mode/#code [+o Kindamoody|autojoin] by ChanServ
14:14
< Vorntastic>
Hmm?
14:22
< simon_>
I was trying to extend a library function that had the optional parameter { filter => 'all' } with another one, { companyid => [...] }, and I wasn't sure how to do this because I thought that 'filter' and 'companyid' were mutually exclusive. but I found out that they weren't. { filter => 'all' } actually means "select inactive ones, too", so it can make sense to want { filter => 'all', companyid => [...] }. s
14:22
< simon_>
o I'll just place them next to each other.
15:19 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
15:19 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:19 Vorntastic [Vorn@Nightstar-l9n6ps.sub-174-210-1.myvzw.com] has quit [[NS] Quit: Bye]
15:24 Degi [Degi@Nightstar-rid8gk.dyn.telefonica.de] has quit [Connection closed]
15:26 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
15:38 * simon_ yells at people breaking style guides in old commits that he won't fix because it messes up git blame history!
15:39
<~Vornicus>
clearly, rebase
15:39
<~Vornicus>
(don't.)
15:39
<@TheWatcher>
Clearly, iron bar to their head.
15:40
<@TheWatcher>
(... probalby don't. Depends how bad the violation is)
15:40
<~Vornicus>
a boot will probably be sufficient
15:40
< simon_>
I've literally went and fixed the style twice, and then hit undo a bunch of times, *twice*. I need to respect that some things will always smell.
15:42
< simon_>
it's not very bad. it's "just" indentation, and leaving empty ()s on perl sub calls when there are no arguments ($foo->bar() and $foo->bar do the same thing, but it's common to always leave them out because there aren't any good consistent rules about when to leave them in).
15:43
< simon_>
oh, and there's some subjective rule about having spaces inside argument lists when the expression "seems complicated enough", which is highly subjective, but the only no-go is to write $foo->bar( baz) (i.e. start with a space and don't end with one)
15:43
<@TheWatcher>
I note you could use git filter-branch to rewrite the commits to make the problems go away, but that's pretty icky.
15:45
<@TheWatcher>
Myself, I'd just fix them, commit the fixes with "Remove style guide violations" and an explanation for why/cites in the commit body, and be done, but meh.
15:45
< simon_>
TheWatcher, I've never used filter-branch.
15:45
< simon_>
TheWatcher, I'm tempted to first do the cleanup in one commit and then add my own stuff in a second one.
15:46
<@TheWatcher>
Never using filter-branch is a good state to be in >.>
15:46
< simon_>
I use rebase a lot, though. and with -i --autosquash ^_^
16:33 Jessikat [Jessikat@Nightstar-7t2.klt.132.82.IP] has joined #code
16:36
<~Vornicus>
okslep
16:41 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
17:03 Jessikat` [Jessikat@Nightstar-fct6ar.dab.02.net] has joined #code
17:06 Jessikat [Jessikat@Nightstar-7t2.klt.132.82.IP] has quit [Ping timeout: 121 seconds]
17:11 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
17:11 mode/#code [+qo Vornicus Vornicus] by ChanServ
17:19 VirusJTG_ [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [[NS] Quit: Leaving]
17:19 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
17:19 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
18:37
< simon_>
I had this problem on my last job, and it seems that I have it on this job.
18:38
< simon_>
it must be called something or somehow characterized, and I'm curious if there's a general solution.
18:39
< simon_>
so: in the database layer, there's a big mess of query functions with different kinds of parameters. my query needs some intersection of query parameters shared between different database-layer functions (e.g.: filter profiles based on 1) a list of company IDs, 2) a datetime interval, 3) inactive ones are okay, too.)
18:40
< simon_>
but there's either a) one that works for 1 and 2, but not 3, or 1 and 3, but not 2.
18:40
< simon_>
s/(?<=, or)/b\) /
18:43
< simon_>
this database layer is a pretty messy homebrew, but at my former job they used LINQ in C# and it was all very sweet until the point where the database layer (for some good reasons) refuses to export LINQ-like stuff and insists on materializing. so I lose the algebraic flexibility in favour~ of a fixed set of query functions.
18:43
< simon_>
what I did at my last job was rewrite those query functions in terms of one another, so the ones with fewer parameters were just special-cases of the ones with more.
18:50 * simon_ is slowly talking himself into refactoring the database layer. it seems that they're quite inconsistent. like, one takes a single datetime and another takes an interval. one says "this function honors(?!) only one argument", but then there are like three more arguments that were added later without the docs having been updated. yeah.
19:22 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
19:29 Degi [Degi@Nightstar-nheacj.dyn.telefonica.de] has joined #code
19:47 Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
19:50 Jessikat` [Jessikat@Nightstar-fct6ar.dab.02.net] has quit [[NS] Quit: Bye]
20:15 RchrdB [Richard@Nightstar-qe9.aug.187.81.IP] has joined #code
20:19 mac [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has joined #code
20:19 mode/#code [+o mac] by ChanServ
20:21 macdjord [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
21:32 Degi [Degi@Nightstar-nheacj.dyn.telefonica.de] has quit [[NS] Quit: Leaving]
21:54 Kindamoody|autojoin is now known as Kindamoody
21:59 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection reset by peer]
22:00 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
22:00 mode/#code [+o Kindamoody] by ChanServ
22:12 himi [sjjf@Nightstar-dm0.2ni.203.150.IP] has joined #code
22:12 mode/#code [+o himi] by ChanServ
22:15 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
23:27 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Client exited]
23:31 Kindamoody|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
23:31 mode/#code [+o Kindamoody|autojoin] by ChanServ
23:59 Kindamoody|autojoin is now known as Kindamoody
--- Log closed Tue Dec 12 00:00:22 2017
code logs -> 2017 -> Mon, 11 Dec 2017< code.20171210.log - code.20171212.log >

[ Latest log file ]