wrote an aggregating weather api gateway but there's no rain anywhere in NL so can't even properly test it lol

it uses two sources, but one of them only covers NL

oh also something I'm not sure about yet, one of the sources doesn't provide temperature data, so currently the entries further away have no 'temp' key. Would it be better to keep it absent like this, or maybe have a string like "no data"

im sure you programming design nerds have Opinions, give em up!

@f0x think it's best to just omit it if there's no data rather than putting a string there, that way a) the payload is smaller and b) there's no way of having it fuck up strongly typed parsers that are looking for an int

@f0x yes but i think for the most part only if they try to access a null value before checking first whether or not it's there, which is their problem and not yours

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.