Hacker News new | past | comments | ask | show | jobs | submit | painisRelative's comments login

It keeps me up at night too. I am thinking we should establish a list of all those politicians who have actively impeded efforts to fight climate change. then at least we will have a least for our children to work through when they decide on a fitting retribution


Will you be including Greenpeace and the Sierra Club for their scaremongering about nuclear power?


why drop bower support damn it!


Lodash dropped bower support in favor of npm because "16% use bower vs. 76% npm for AMD packages": https://twitter.com/jdalton/status/677323442488672257


Given that there were 14825158 downloads of lodash from npm last month, that implies that there were over 3M downloads from bower. That's a lot of people to throw under the bus.


According to bower stats over the last 7 days lodash was installed 23 times compared to 4 million npm downloads & 181 new npm packages depending on it.

http://bower.io/stats/

http://npm-stat.com/charts.html?package=lodash

https://gist.github.com/anvaka/8e8fa57c7ee1350e3491/revision...


Sounds broken. My team alone would have installed it more times that that.


¯\_(ツ)_/¯


After thinking about it a bit more, the only reasonable conclusion I can come to is the following:

It's the number of times users actually typed

    bower install lodash
i.e. adding it to a project that didn't already have it, as opposed to just running bower install on a package which uses lodash.

Would also explain why despite bower itself being installed 37000 times in the last 7 days, the most installed package is only listed as 100 or so times.



Why did you shorten one number but not the other? 14.8M via npm vs 3M via bower


One is exact, one is approximate


You'd even need multiple busses ;)


...according to a twitter poll on a personal account :P

I avoid bower wherever possible, but removing support does smell a bit like an activist move. There may be more to the story, though.


The poll was, should it be dropped, given that fact. The fact was not the poll result.


Plenty of people don't use AMD packages at all, wtf?


If more major libraries drop support for bower, it might (hopefully) die soon. What does bower do better than NPM?


JSPM!

It works a lot like NPM but is specifically intended for use with front-end modules.

Features:

- uses System.js (a polyfill for the future ES6-module-loader spec

- supports CommonJS, AMD, and UMD formats

- has plugins for importing other types (ex css)

- support Typescript/Traceur/Babel out of the box

- uses a flat dependency structure (ie like NPM v3)

- can generate bundles and self-executing bundles (incl tree shaking and minify)

- tracks specific versions of dependencies

Unlike NPM, module installation doesn't depend on packages published to a central registry. It can install versioned modules directly from GitHub and NPM. The registry it uses is nothing but GitHub repo with module-to-repo mappings and compatibility shims.

Here's the link: http://jspm.io/

Lodash is already included in the registry: http://kasperlewau.github.io/registry/#/?q=lodash


npm can install directly from GitHub:

    npm install visionmedia/express
Or any git repo:

    npm install git+https://git@github.com/visionmedia/express.git
    npm install git+ssh://git@github.com/visionmedia/express.git


Oh... Awesome. TIL, I guess.

Thanks for the tip. I wish my comment wasn't locked in already so I could correct the misinformation.


Personally I'll stick with RPM for all my JS packaging needs.


Why?

It doesn't cover any of the functionality that JSPM provides and publishing modules as RPM only makes them available to (at most) 1%-2% of users.

JSPM is written in Node and available via NPM. So... it works on pretty much anything out of the box.


What do you use to polyfill the browser to support RPM? :)


yum makes rpm easymode!


Well, I haven't used npm for css packages yet, but presumably it's okay with webpack/brunch etc.


Its great with everything. Frontend / backend, etc. When I removed bower from our app last year, adopted Webpack and migrated everything over to NPM it dramatically simplified things.


For Brunch, looks like [initial, probably v buggy] NPM stuff went into master about 10 days ago.


I've been using npm support in Brunch and so far so good.


Ah, that's good to know; I'd been sticking to Bower for Phoenix' front end stuff, might start looking at migrating them to NPM if Brunch support is stable now.


Yeah there is no need to drop bower support. I prefer bower over NPM. I don't understand this. Great work by the way.


I think the thinking behind dropping the support is something like this:

I use browserify/webpack/node and npm is great. I wish more libs that I use were also on npm so that I wouldnt have to fork/shim them. How can I force other people to use npm? Maybe if I drop bower support for my awesome lib that everyone uses, other libs will follow suit, or perhaps the users will see the light and stop using bower because it sucks.


I loved bower and really preferred it in regard with npm for frontend modules. However more and more packages went to npm-only and we completely switched to npm for all.

Looking back, I am glad since it's just a nightmare to deal with dozens of package managers. Because bower was installed via npm, we had npm installed already and just skipped the bower part.


Bower is no longer actively maintained: https://github.com/bower/bower/pull/1748



Although there is a rationale for converging to npm, the tl;dr regarding bower is that it's not cool any more.


[deleted]


No, he has an objection to them dropping support for "bower", which is a package manager for javascript files. It does seem like a typo of "browser", so I can see where the confusion would come from.


Ha whoops! Thanks


bower is not just js, but rather lots of various front-end libraries.


Bower doesn't do anything npm doesn't already do, except horrible version management.

    bower install lodash => bower_components/lodash/dist/lodash.min.js

     npm install lodash => node_modules/lodash/dist/lodash.min.js
Only difference there is you use `node_modules` instead of `bower_components` for root directory.


Easier to import as a module if you use Browserify or suchlike: `var _ = require('lodash');`


I think he actually talks about the bower package registry (not browser).


the comparisons don't hold sway. Comparing agriculture to programming is not a valid comparison. To farm you need sufficient space, and usually a wholelot of arable land.

To program all you need is a cheap computer and some knowledge. Both are quite obtainable by an interested party.

if you want to farm, well you may run into trouble trying to do that. the capital investment is huge.

So regardless of you opinion of centralisation of power, programming will always be accessible, and in this day and age it also has great leverage. You can access a large market with little capital expenditure. it is attractive for those reasons alone and will remain so for time to come.

i would be more interested in a comparison to building infrastructure. Not every construction project is a greenfield site, often you have to deal with legacy infrastructure. How has the job market progressed in infrastructure building over the last century? Has it decreased like teh agricultural sector, or has it been more resilient. (I suspect it has peaks and troughs much like software employment is at)


Is this what I think it is? A way of building the voice controlled home automation system of my dreams?


looks to me like the distribution of characters follows the normal distribution of alphabetical characters.. i suspect its a substitution cypher


Sigh....I grow weary of fashion police. Anyone ever told you that beauty is not skin deep. Some of us like our code warts and all.


Is this the end or the start of the beginning?


This is a new way of marketing gaming pc's of mid-range price group. You no longer will have to know what gtx780 is and how to build a decent machine. It will also be convenient for media playback. Some kind of a revised htpc that you don't have to worry about, but still allows you to replace almost anything inside (try doing that with a ps4 or xbox one).


Except people will still need to figure those things out to decide which of the many different Steam Boxes to buy....

Oth3erwise, the PC and gaming industry strategies are completely different. With consoles, the hardware is more or less fixed, but later developments (eg die shrinks) are used to reduce the price. With PCs, the price is maintained fairly constant over the short term but later developments are used to increase the performance or whatever is fashionable (eg maintain or reduce the performance but make it thinner).


oh for crying out loud. gravity is the only force acting on these objects.. of course they are not going to move. there is no wind or vibration. i guess if some micro meteorrite hit them then that would cause them to be displaced

low gravity is still gravity, and you may have noticed that dust particles on the moon also fall back to the surface.

the escape velocity of teh moon is: It is Escape Velocity: 2.38 km/s (5324 MPH) .


Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: