Live data from Hacker News

WalmartLabs open sources the application platform that powers Walmart.com

techcrunch.com

41–50 of 77 posts

Re: WalmartLabs open sources the application platform that powers Walmart.com

#43

For what it's worth, the walmart.com websites takes forever to load (> 10 seconds) on my single core laptop in Firefox. edit: I should also state that my OS is Ubuntu.

It loads pretty quickly on my iPhone, about 1 second.

Re: WalmartLabs open sources the application platform that powers Walmart.com

#44
post #26

Earlier quoted context omitted.

A lot of folks have debated whether there is a need or a place for a "Rails for Node" platform that brings together a set of blessed libraries that work well together and a set of tools for rapidly building software with that set of tools. In that sense at least, Electrode seems to have some structural similarities to Rails. Do you see Electron as potentially having a Rails-like role of bringing together libraries an…

Internally, we do have a set of blessed libraries to keep the site and teams unified. To ensure we don't go stale, we usually have a team or so experimenting with something that we can bring into "Electrode Core". Externally, for the "Electrode Core", we will continue to maintain a set of libraries that play well together, but I expect to see people doing their own thing. I see what we are doing with core as more of…

I'll grant this is a subtle point, but why did you choose to use the word "archetype", borrowing a term to describe what most understand to be generated boilerplate code? Why not call it a framework, or an app generator? Why did you, collectively I will assume, choose to assign a new term to an existing concept?

Re: WalmartLabs open sources the application platform that powers Walmart.com

#46

Earlier quoted context omitted.

Internally, we do have a set of blessed libraries to keep the site and teams unified. To ensure we don't go stale, we usually have a team or so experimenting with something that we can bring into "Electrode Core". Externally, for the "Electrode Core", we will continue to maintain a set of libraries that play well together, but I expect to see people doing their own thing. I see what we are doing with core as more of…

I'll grant this is a subtle point, but why did you choose to use the word "archetype", borrowing a term to describe what most understand to be generated boilerplate code? Why not call it a framework, or an app generator? Why did you, collectively I will assume, choose to assign a new term to an existing concept?

The archetype terminology comes from the use of Builder; you can get a rundown of what an archetype really is here, independently of its usage in Electrode: https://formidable.com/open-source/builder/

Framework and app generator are really quite far off from what an archetype provides. An archetype is like an npm module template, but not one that is used to generate code files and then discarded, but more like a live "superclass" of a module; think inheritance but for npm modules.

The basic idea is that if you have dozens or hundreds of similar modules (for, say, React components), with similar build + testing needs, you can use the same archetype for all of them. A generator like yeoman could spit out boilerplate for you, but then what if your boilerplate changes? Your packages quickly get out of sync with your latest best practices. Having some components on Babel 5 and some upgraded to Babel 6, for example, was a real pain. You have to go through your dozens of packages and bring them up to date. Archetypes on the other hand are intended to be encapsulated boilerplate that packages basically "inherit" from at runtime.

Hope that helps!

Re: WalmartLabs open sources the application platform that powers Walmart.com

#47
post #8

Given Walmart's deep contributions and investments in the Backbone ecosystem [0], which were impressive in their own right, I'm even more impressed that they seem to have switched to a React-based front end stack in a few years. That seems pretty agile for a company the size of Walmart. [0] https://github.com/walmartlabs/thorax

Although it is great that this happened and I applaud open source contributions, especially by bigger companies, I wonder what the reasons for such a rewrite were. And why the online platform manager approved it. People often try to convince me of shiny-new-thing-39432 and sometimes we try on a non-risk project and usually we find out it's the same or (more often) worse than what we used before. I like React and theo…

Probably a total redesign.

Re: WalmartLabs open sources the application platform that powers Walmart.com

#48

For what it's worth, the walmart.com websites takes forever to load (> 10 seconds) on my single core laptop in Firefox. edit: I should also state that my OS is Ubuntu.

Same here, 10ish on OSX with Chrome.

DOMContentLoaded: 1.48s document.ready: 1.88s

MBP Mid 2014, OSX 10.11, Chrome 53

Re: WalmartLabs open sources the application platform that powers Walmart.com

#50
post #47

Earlier quoted context omitted.

Although it is great that this happened and I applaud open source contributions, especially by bigger companies, I wonder what the reasons for such a rewrite were. And why the online platform manager approved it. People often try to convince me of shiny-new-thing-39432 and sometimes we try on a non-risk project and usually we find out it's the same or (more often) worse than what we used before. I like React and theo…

Probably a total redesign.

In fact design-wise, the React-powered site is identical to the previous one.
Post reply on HN