News for hackers. Stuff that matters.
Re:Show HN: Free foreign exchange rates API by toomuchtodo on Saturday April 25, 2020 @02:03PM (#22979909)
Wouldn’t it be more reliable to ask the ECB to support JSON alongside xml? Or require them to provide JSON by law? Shims are fine, but technical debt. Fix the problem at the source.
Re:Show HN: Free foreign exchange rates API by hombre_fatal on Saturday April 25, 2020 @08:57PM (#22983217)
This doesn't make any sense to me. Whether you have to use xmlParse() or jsonParse() is completely inconsequential. It's like writing laws that require languages to have a built-in XML parser. Or a fetchAndParseXml() function.

If these kinds of laws infected tech, we'd still be maintaining government mandated SOAP/WSDL services and other overly complicated tech that someone somewhere thought was the global maximum.

Re:Show HN: Free foreign exchange rates API by sambe on Saturday April 25, 2020 @02:14PM (#22979986)
You'd enshrine in law a particular technical format? What is the cost of making such a law vs the cost of a different - but still very much usable - format?
Re:Show HN: Free foreign exchange rates API by toomuchtodo on Saturday April 25, 2020 @02:19PM (#22980028)
I would, with lifecycle and sunsetting requirements. Laws are requirements docs with more ceremony and stakeholder participation, but also with much more authority.
Re:Show HN: Free foreign exchange rates API by sambe on Saturday April 25, 2020 @03:05PM (#22980465)
That all seems well-intentioned and plausible in terms of how things should have been originally. However,

1) I can't help but think of all the problems that apply in general to specifying requirements (too vague, too constraining, too expensive to hammer out to sufficient precision).

2) That's different from changing it retroactively. Would you change it again when JSON goes out of fashion? Or mandate HTTPS? I've not read the OP in detail, but the impression I have is that the existing service is very much functional. Even ignoring the cost of changing the law, do we really want our public institutions to be in breach of law whenever fashions change? I'd rather let them set their own priorities to a large extent - for example, specify a very general, minimal set of requirements and do better when they have capacity to do so. I'm fine with people building on top of that where convenient. It seems like a good thing, in fact.

Re:Show HN: Free foreign exchange rates API by toomuchtodo on Saturday April 25, 2020 @03:46PM (#22980820)
I think your points are important, but it's likely we won't reach an agreement on this issue. Appreciate you raising the points though!
Re:Show HN: Free foreign exchange rates API by polote on Saturday April 25, 2020 @02:30PM (#22980131)
What is the issue with XML ?
Re:Show HN: Free foreign exchange rates API by LoSboccacc on Sunday April 26, 2020 @02:20AM (#22984985)
there's some hip environment that handles xml quite badly compared to json and people with little cross experience think the problem is xml
Re:Show HN: Free foreign exchange rates API by XCSme on Saturday April 25, 2020 @08:02PM (#22982819)
I don't see the problem with XML, especially today, when you can get a package/libray to parse any format the API might be in.
Re:Show HN: Free foreign exchange rates API by rixed on Sunday April 26, 2020 @12:39AM (#22984478)
Off-topic, and regularly repeated, but people up/downvoting based on (dis)agreement is the second biggest annoyance of web forums (right after Android keyboard autocompletion).