These are chat archives for arenanet/api-cdi

12th
Mar 2016
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 00:32 UTC

Seriusly. Do MMO guys ever learn?

[T]he layoffs are occurring because [...] internal reclassification of “WildStar” from “in development” to “live” demanded a reorganization of operations. [...]

The reclassification means that Carbine’s focus will shift to maintaining its game over creating new content[...]

What the heck? Since when are MMOs ever "fully" released. A steady stream of new content is required.

Eearslya Sleiarion
@Eearslya
Mar 12 2016 00:35 UTC
RIP WildStar
codemasher @codemasher hides
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 12:48 UTC
Well Guild Wars 1 isn't the prime example of having an active playerbase. You can be sure, if the GW1 server weren't so lightweight the game would've been shut down long ago :)
smiley
@codemasher
Mar 12 2016 16:25 UTC
just found this again http://rampion.github.io/RegHex/
Eearslya Sleiarion
@Eearslya
Mar 12 2016 19:21 UTC
@codemasher Only after I submit a tweet at them do I realize they've been inactive for 2 years. Dammit.
smiley
@codemasher
Mar 12 2016 19:22 UTC
lol
Eearslya Sleiarion
@Eearslya
Mar 12 2016 20:04 UTC
@codemasher y u do dis
smiley
@codemasher
Mar 12 2016 20:05 UTC
i'm bored? :D
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 20:49 UTC
Suggestions: When should two objects from the api considered equal? If their ids match (and if applicable: their language). Does that suffice, or did I miss something?
TL;DR: sort recursive before diff
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 20:55 UTC
Does the item ID change? I'm not talking about their position in the returned array
I'm talking about this little bugger:
{
  "name": "Strong Soft Wood Longbow of Fire",
  "id": 28445, <------ This one here
  ...
}
smiley
@codemasher
Mar 12 2016 20:56 UTC
no, the id doesn't change, in case items change, the item referring to the prvious version will be removed (ie. legendaries)
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 20:56 UTC
good
that means an equality check based on the item ID and the language should suffice for hashing and equality
item position is irrelievant in GW2.NET anyways
smiley
@codemasher
Mar 12 2016 20:58 UTC
in case key order doesn't matter: yes, it does suffice
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 20:59 UTC
why would anyone build equality based on the order of items in a set (unless it is specifically a sorted set)...
That just begs for something in your face.
smiley
@codemasher
Mar 12 2016 20:59 UTC
it's more: why can't i expect the keys of the same response to be in the same position each time?
but hey, thanks node.
Pat Cavit
@tivac
Mar 12 2016 21:00 UTC
"Shit happens"
smiley
@codemasher
Mar 12 2016 21:00 UTC
theh, they're always lurking around the corner :D
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 21:01 UTC
well mathematics told us: sets are always unordered. A programmer should act accordingly.
smiley
@codemasher
Mar 12 2016 21:01 UTC
athough both claim to be "logical"
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 21:02 UTC
I hate C# lookups...
I guess it's alright, with them bein immutable, but somethimes this is just silly.
@codemasher if you need to compute hashes of JSON objects (for, e.g. equality) you'll need to order the keys yourself
or just use a library, e.g., https://github.com/mirek/node-json-hash
;)
i'm almost sure, @darthmaim and i discovered first that the keys are unsorted in each response
why the ksort? Doesn't array_multisort already leave the top-level array in a sorted order?
smiley
@codemasher
Mar 12 2016 21:15 UTC
nope
the behaviour of array_multisort is a myth to me anyway
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 21:17 UTC

the behaviour of array_multisort is a myth to me anyway

PHP in a nutshell

smiley
@codemasher
Mar 12 2016 21:18 UTC
that's all you got?, c'mon, keep it coming
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 21:19 UTC
Weakly Typed
ordered associative arrays
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 21:20 UTC
oh and up until now no void return xD
smiley
@codemasher
Mar 12 2016 21:21 UTC
i mean, you can have a lot of fun with it. i used the phpjs version to sort waypoints 's stuff to display it from the response
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 21:23 UTC
I started PHP once, I got cancer from it. For me it's ugly, slow, unsafe (cough magic strings cough), weakly typed.
If PHP would vanish tomorrow I wouldn't shed a single tear, au contraire I'd throw a party
smiley
@codemasher
Mar 12 2016 21:27 UTC
Robert Logiewa
@Ruhrpottpatriot
Mar 12 2016 21:59 UTC
wait, multithreading in PHP is still don via phtreads? Or did I mistake it for C?