Hacker Newsnew | past | comments | ask | show | jobs | submit | more brian_c's commentslogin

So basically follow the example of pre-standards browser-specific HTML features?


When you are considering how two things are alike, don't forget to also think about the ways in which they are not. Unlike with HTML, content producers who write Markdown, don't need their documents to be parsed correctly by many different engines. They only have to target the one they are using.


To be clear, "Standard Markdown" is only trying to address the ambiguity of the syntax. Sites are still going to implement Standard Markdown plus some ad hoc extensions, so it will still be the same practically in that regard.


Which was where most innovation and the good parts of modern HTML came from?


In a fair world, the time and energy that went into Bower would have been spent making npm just a little bit better for front-end stuff. `npm dedupe` is halfway there. Now I have to deal with two arbitrary sources of dependencies.


Couldn't you say the same thing about time spent on npm which could have gone into apt or yum?


Not all node platforms run apt/yum. Having a package manager for your platform makes sense.


The problem I have with apt, yum, etc... is that the packages for development are so old that you're going to be compiling from source and managing your own updates, which is exactly the problem a good package manager should solve.


The big difference is that packages that land in the official apt repositories have been heavily tested by the apt repository maintainers. Anyone can push a package to PyPI for example. There is a clear trade off between using packages from apt/yum and your toolchain's package managers.

In practice, I do find it much easier to pin dependencies and install from my toolchain's package manager (pip/PyPI).


Why do you have to deal with bower? I don't.


A lot of frontend libraries are not on npm.


I don't have to deal with npm either for that matter.


Care to say what are you dealing with instead? I hope it's not something obvious like "I build Obj-C apps"...


For the small number of dependencies any of the projects I work on have, I find it easier to download the dependencies in a browser, and just copy them to the projects I'm using. I understand this is heresy.


> I find it easier to...

Have you used Bower? I haven't but I watched a video of some guy speaking of Bower who pretty much said the same thing you did but changed his mind after trying it out.

I haven't tried Bower yet but kept that anecdote in mind and plan to try it to see what all the fuss is about.

From my understanding, a single command will take away all those intermediary steps between deciding to use a library and actually using it. No need to navigate to the project's page, looking for download link, downloading it, extracting and copying to the project directory.

Sounds good in theory to me; just haven't the chance to try it yet myself. Mostly because npm happens to have everything I would have used Bower for.


"Small number of dependencies" being the operative phrase.

Try managing a complex single page app with deep dependency graphs and each node in that graph versioning up independently. Not sure how your approach would scale there.


I've never worked on an app that required more than ~4 javascript dependencies, and the depth of the dependency graph has never been more than 2.


Agreed. Bower also doesn't have any notion of version pegging or shrinkwrapping like npm... which is a total production killer.


Agreed. I was using Bower until I discovered that most client-side libraries are also on npm. Much simpler.


Every time I start writing a new node module, I stop and see if substack (or visionmedia, for that matter) has already done it.


Smart move. :)


Yeoman makes it quicker and easier to generate boilerplate code, but I think the goal should be to eliminate boilerplate and abstract it away. Yeoman keeps spaghetti organized, but it's still spaghetti.


You can turn on Safari's awful console in the Settings app, I think under "advanced".


This is useful in a pinch, but transitioning a 100px high element from max-height 9999px to 0 means there's going to be a huge delay while it's transitioning between 9999px and 100px followed by a very fast transition between 100px and 0, which is usually worse than having no transition at all.


i mean if you know the approximate/upper limit of the height, you can minimize that delay.


It breaks returning object literals because `return` on its own line is a complete statement.


Sort alphabetically. It's not arbitrary, everybody understands it, and no tool needed. This is silly.


I really want to like this, but I can't get behind Sprockets when RequireJS and Browserify exist. Code in comments, obtuse file extensions, `require_tree`, etc. make code modularization an inelegant kludge.


The install script takes staggering liberty with your system to fetch its dependencies. Make sure you read it before running.

http://get.yeoman.io


I'm learning so much reading through this. Absolutely fantastic, love it.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: