code logs -> 2019 -> Wed, 12 Jun 2019< code.20190611.log - code.20190613.log >
--- Log opened Wed Jun 12 00:00:43 2019
01:42 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
02:20 celmin|away is now known as celticminstrel
03:52 celticminstrel [celticminst@Nightstar-6an2qt.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
05:06 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code
05:06 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
06:25 Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [[NS] Quit: bbs]
06:26 Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code
06:26 mode/#code [+o Alek] by ChanServ
07:03 gnolam [lenin@Nightstar-hfrbpd.cust.bahnhof.se] has quit [[NS] Quit: Bleh]
08:08 * sshine puts on new perfume sample to surprise girlfriend. girlfriend says "smells like a circus in here!"
08:15
<~Vorntastic>
Um
08:36 Kindamoody[zZz] is now known as Kindamoody
08:50 Kindamoody is now known as Kindamoody|afk
09:52
<&Reiver>
...
10:04 * TheWatcher stabs the JSON spec developers
10:06
<@TheWatcher>
https://www.happyassassin.net/2017/09/07/a-modest-proposal/ THIS, DAMNIT
10:19
<@sshine>
there's a JSON spec?
10:20
<~Vorntastic>
Yes
10:21
<~Vorntastic>
Ecma-404
10:21
<@sshine>
I suppose the only thing missing is how to represent numbers.
10:22
<~Vorntastic>
Even that is in there
10:22
<@sshine>
"A number is very much like a C or Java number, except that the octal and hexadecimal formats are not used."?
10:22
<@sshine>
oh, Ecma-404.
10:23
<@sshine>
hrm
10:25
<@sshine>
Haskell's Aeson library assumes 'Scientific' (arbitrary-precision with exponent). I don't see anything in Ecma-404 that suggests otherwise, but I strongly assume that most JSON parsers boil numbers down to whatever's convenient in the given language, which isn't necessarily arbitrary-precision.
10:26
<@sshine>
in Perl, when creating JSON values, you have to refer to JSON->true and JSON->false because there is no native true/false in Python, and it'd get converted to either null, 0 or "" depending.
10:26
<@sshine>
s!(?<=no native true/false in )Python/Perl/g
10:27
<@sshine>
I think it converts JSON numbers to Perl numbers, which are sometimes ints, sometimes floats.
10:27
<@sshine>
actually, sometimes strings. *sigh*
10:28
<@sshine>
this is the canonical way in Perl to test if something is an integer: $something =~ m/^-?\d+$/ >_< (that last thing is an upset smiley, but probably also valid Perl.)
11:56 Vash [Vash@Nightstar-sjaki9.res.rr.com] has joined #code
12:52 You're now known as TheWatcher[d00m]
12:56
<&[R]>
TheWatcher[d00m]: Unfortunately, that's not happening (and yes, I hate it too). Since JSON was designed to be parsed by eval(), it has to support the eval() of all the shittier JS engines. JScript and Webkit both don't accept trailing commas, and I doubt MS' new JS engine does either. Spidermonkey and V8 do support it though.
12:56
<&[R]>
So blame MS and Apple for fucking it up
13:24 celticminstrel [celticminst@Nightstar-6an2qt.dsl.bell.ca] has joined #code
13:24 mode/#code [+o celticminstrel] by ChanServ
13:38
<@sshine>
"Hmm, this comment says 'descending', but it returns the elements in ascending order. Oh, the entire function is broken? Hmm, this other function's comments are also broken, but it's never being called anyways." ~~~ I wonder why I'm the only one at work who enjoys deleting code more than creating it.
13:43
<@celticminstrel>
Heh
13:51 You're now known as TheWatcher
13:52 celticminstrel is now known as celmin|away
14:35 Vash [Vash@Nightstar-sjaki9.res.rr.com] has quit [Connection closed]
14:45
<@sshine>
What's the difference between the subroutines "viewurl" and "get_view_url"? one is a static function and the other is a method. "viewurl" specifically loads the latest object of this entity type and calls "get_view_url" on it.
14:50
<~Vorntastic>
New headcanon: sshine is that dude from Death Note
14:51
<&ToxicFrog>
Deleting code is the best
14:52
<&ToxicFrog>
I doubt I'll ever achieve it, but my ambition here is to one day have deleted more code than I've added
14:55
<@sshine>
ToxicFrog, I prided myself for having done that at one job.
14:55
<@sshine>
ToxicFrog, it helped that I deprecated an entire data access layer.
14:56
<@sshine>
also, "showurl" is an object method, but "viewurl" is a static method. >_<
15:07
<@TheWatcher>
[R]: I just wish JSON parsers for other languages weren't quite so strict about it. If I had 20p for every time I've remove an item from an object or list in a JSON object, forgotten to remove the trailing comma, and been bitten in the arse by it, I'd have at least a few Canuckistan Pesos.
15:08
<&[R]>
Then there'd be the issue where JS ones are more strict and that'd be its own clusterfuck
15:08
<~Vorntastic>
My programming work has generally been creating things from whole cloth so I don't get anywhere near close
15:08
<@TheWatcher>
[R]: true
15:16
<&[R]>
Alright, almost have my image intake script able to detect groups of pictures based on time. Now it'll be way less manual (as I can just make a script to grab only specific groups of images, instead of grabbing them all and figguring out which ones belong there)
15:17
<&[R]>
Trying to do everything with bash/xs scripts was a stupid idea :/
15:49 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
15:49 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
15:49 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
15:50
<&ToxicFrog>
https://twitter.com/deniseyu21/status/1137884681259618304
15:56 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:56 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:26 Vash [Vash@Nightstar-sjaki9.res.rr.com] has joined #code
16:40 gnolam [quassel@Nightstar-e9kifc.cust.bredband2.com] has joined #code
16:40 mode/#code [+o gnolam] by ChanServ
16:41 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
17:00 gnolam [quassel@Nightstar-e9kifc.cust.bredband2.com] has quit [[NS] Quit: Gone again]
17:27 Kindamoody|afk is now known as Kindamoody
17:36 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
18:46 Vash [Vash@Nightstar-sjaki9.res.rr.com] has quit [[NS] Quit: Leaving]
20:11 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
20:33 Degi [Degi@Nightstar-20lu03.dyn.telefonica.de] has joined #code
23:02 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
--- Log closed Thu Jun 13 00:00:45 2019
code logs -> 2019 -> Wed, 12 Jun 2019< code.20190611.log - code.20190613.log >

[ Latest log file ]