Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why does a company who makes shoes writes a "JSON parsing framework" ?


An actual likely explanation since the other comments are busy being cynical: Their library was authored in August 2015, which was roughly a year after Swift's initial release. It's very likely that they critically needed one of the features in the Features section of their README and nothing off-the-shelf at the time offered it.


Because they also make apps that integrate with the fitness trackers housed in some of their shoes.


I think parent probably means, why do they write their own instead of using one of the several off-the-shelf solutions available.


Hey look at these other companies writing their own software too. It's crazy:

A taxi company: https://github.com/uber A hotel company: https://github.com/airbnb A clothing company: https://github.com/gilt


We're talking about JSON parsing here: a solved problem. Do those companies write their own JSON parsers? I don't think so.


I'm sure they had no idea it was a solved problem in Swift and are very embarrassed...

The level of arrogance to think we know better than the developers working at a company on what they should / shouldn't write is astounding.

Nike doesn't need to justify anything to any of us, though as someone who writes apps using Swift, it looks distinctly different from other JSON parsers. I'll explore using it in a future project.

Thanks for contributing to open source, Nike!


> The level of arrogance to think we know better

Somewhat prevalent here on HN, I've noticed. Middlebrow dismissals and condescending comments that fail to consider context seem to be even more regular than normal lately, though that's probably just my mind playing tricks on me.


A "solved" problem? I think that is a ridiculous thing to say. Just because people know how to parse json does not mean there aren't solutions that are more performant or useable. Shit maybe they just wanted to parse and collect frequency counts of keys or something all in the same pass? There are reasons to do so.


We're talking about JSON parsing here: a solved problem.

Solved for your use case(s), you mean. You're saying that you cannot imagine a reasonable circumstance under which off-the-shelf solutions wouldn't fit your needs? (Hint: if you write code for a living, this very scenario is why you have a job.)


Welcome to Developers 2.0, where writing a program means duct-taping together 500+ 'micro libraries' (each of which has a dependency tree like fucking crab grass) with maybe a dozen lines of bootstrap code.


<3


I bet they were on the fence about it and decided let's just do it.


Even worse - They write their own url encoders:

https://github.com/uber/multidimensional_urlencode


Yes it amuses / frustrates me that people site working with JSON as a reason for using node.js. Every mainstream language can parse and create JSON trivially.


The first commit was in July 2015, 9 months after Swift was initially released.

It's very possible that an "off the shelf" solution didn't exist yet.


There also is a SNKRS app that allows you to buy limited edition shoes. Must have for every sneaker head!


Because they needed one? Companies should not be scared of making what they need if nothing exists to meet their needs.

“If it’s a core business function – do it yourself, no matter what.”

— In Defense of Not-Invented-Here Syndrome, Joel Spolsky, 2001 (http://www.joelonsoftware.com/articles/fog0000000007.html)

Also, this story from 1967 or 1968:

“[…] Our company is so scared of data bases that it will not even create a group by that name, deemed “too emotional”! It ends up creating a group called “basic data.” The managers have taken six months to achieve this play on words. Things have moved fast in other areas, however: there is growing international demand for better software within our sister companies. I am sent to Holland to represent GLOBGAS-France at a meeting that also includes GLOBGAS-UK, Deutche-GLOBGAS, and other related organizations. The meeting lasts two days and concludes with an exceptionally fine dinner at an executive’s home in a suburb of Amsterdam. Our host goes around the table to ask each of up what we feel is the best investment the company can make in the computer field. The answer from each expert is “a generalized data-base system.” Our host looks very stern and there is silence.

Then he states, “I understand your needs, and the Group is aware of this requirement. But we are not in the software business. We are in the oil business.”

We bow our heads, as befits young and well-educated European engineers when the boss has spoken. But there is a young Texan GLOBGAS-US with us, and he feels no such constraint.

“Well, now,” he says, “down there in Houston we spend about sixty million bucks on programming each year. I reckon we’re in the software business.”

— The Network Revolution¹, Jacques F. Vallee, 1982 (https://books.google.com/books?id=6f8VqnZaPQwC&pg=PA61)

① http://www.jacquesvallee.net/network_revolution.html


Because "Just do it!"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: