Codeanywhere vs npm: What are the differences?
What is Codeanywhere? Online code editor, available on iOS, Android and more. Integrates with GitHub and Dropbox. A development platform that enables you to not only edit your files from underlying services like FTP, GitHub, Dropbox and the like, but on top of that gives you the ability to collaborate, embed and share through Codeanywhere on any device.
Codeanywhere and npm are primarily classified as "Cloud IDE" and "Front End Package Manager" tools respectively.
npm is an open source tool with 17.2K GitHub stars and 3.17K GitHub forks. Here's a link to npm's open source repository on GitHub.
reddit, Instacart, and Coursera are some of the popular companies that use npm, whereas Codeanywhere is used by Techstars, Accenture, and Bameslog. npm has a broader approval, being mentioned in 2642 company stacks & 2666 developers stacks; compared to Codeanywhere, which is listed in 5 company stacks and 6 developer stacks.
What is Codeanywhere?
What is npm?
Need advice about which tool to choose?Ask the StackShare community!
Sign up to add, upvote and see more prosMake informed product decisions
What are the cons of using Codeanywhere?
Sign up to get full access to all the companiesMake informed product decisions
Sign up to get full access to all the tool integrationsMake informed product decisions
But one also deals with broken third-party dependencies uploaded to npm way too often (even ignoring the malicious packages issues that have gotten a lot of press of late). And one mostly has to use nvm in order to pin a specific version of node itself in a maintainable way, and nvm is a mess.
We use Yarn because at the time we decided to adopt it, npm had some missing features and issues. We like the speed and determinism provided by Yarn. We could probably use npm at this point, but we have no real reason to switch from Yarn. If you have a convincing argument to switch from npm to Yarn please leave a comment on this decision!
So when starting a new project you generally have your go to tools to get your site up and running locally, and some scripts to build out a production version of your site. Create React App is great for that, however for my projects I feel as though there is to much bloat in Create React App and if I use it, then I'm tied to React, which I love but if I want to switch it up to Vue or something I want that flexibility.
So to start everything up and running I clone my personal Webpack boilerplate - This is still in Webpack 3, and does need some updating but gets the job done for now. So given the name of the repo you may have guessed that yes I am using Webpack as my bundler I use Webpack because it is so powerful, and even though it has a steep learning curve once you get it, its amazing.
The next thing I do is make sure my machine has Node.js configured and the right version installed then run Yarn. I decided to use Yarn because when I was building out this project npm had some shortcomings such as no
.lock file. I could probably move from Yarn to npm but I don't really see any point really.
I use Babel to transpile all of my #ES6 to #ES5 so the browser can read it, I love Babel and to be honest haven't looked up any other transpilers because Babel is amazing.
Finally when developing I have Prettier setup to make sure all my code is clean and uniform across all my JS files, and ESLint to make sure I catch any errors or code that could be optimized.
I'm really happy with this stack for my local env setup, and I'll probably stick with it for a while.
I use npm because I also mainly use React and TypeScript. Since several typings (from DefinitelyTyped) depend on the React typings, Yarn tends to mess up which leads to duplicate libraries present (different versions of the same type definition), which hinders the Typescript compiler. Npm always resolves to a single version per transitive dependency. At least that's my experience with both.
I think our #Frontend stack is pretty standard – but we have taken some deviations from a typical modern stack:
Yarn instead of npm. When yarn debuted, we never looked back. Now npm has pretty much caught up with speed and lockfiles, but yarn gives me confidence that my dependency installs are deterministic. Really interested in the plug-n-play (PnP) feature that removes the need for a node_modules folder, but haven't implemented this yet.
From a StackShare Community member: “I’m a freelance web developer (I mostly use Node.js) and for future projects I’m debating between npm or Yarn as my default package manager. I’m a minimalist so I hate installing software if I don’t need to- in this case that would be Yarn. For those who made the switch from npm to Yarn, what benefits have you noticed? For those who stuck with npm, are you happy you with it?"
Over time I think more and more that Codeanywhere is a waste of money.
They prioritise absolutely pointless features over general UX. Let's take a very simple situation... you're coding a page and suddenly you're logged out and redirected to the homepage login form, so everything you've coded leading up to that redirect is lost for good. You can't go back, even after you log in, and you can't get the code back because it didn't save (because you were not logged in).
I can think of at least 4 different, more practical ways in which session expiration could be handled to stop this frustration for users, but Codeanywhere would rather have their developers working on additional container support or new syntax highlighting for languages nobody has even heard of.
Do not waste your money on this garbage. I've been with them long enough to go through at least 2-3 serious situations that could have been prevented if the platform was properly developed.
Utilize npm private module to package shared library for different React / React Native clients. Shareable code goes here. Basically deliver Redux Store with Firebase integration and business logic in a library. Each React app utilizes this while delivering a device/target specific UI.
If you're using Node or Gulp, you can't help but use NPM in some form or another. Fortunately that's never a bad thing with the massive package repository and glowing ecosystem making it a breeze to work with.
We manages all of our packages, including Angular JS through npm. It is a very quick way of downloading / installing packages into your project.
Module is published as bpost on the npm registry. Tasks for the module are also defined as npm run tasks with commit hooks for git