Duo

Dev tools

package manager

SHOW HN2014

168points
100comments
#134of 2,272 in 2014
Top 6%of 2014 by points

How HN took it

MixedNo clear lean

10 positive, 28 neutral or asking, 0 mixed, 20 critical, out of 58 comments about the project. Thread score -0.26.

Design: 3 for, 9 againstIdea: 2 for, 8 againstPerformance: 2 for, 1 againstDocs: 0 for, 2 againstExecution: 2 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simple and clean approach to dependencies

    From 2 comments
    • This looks superb. Great work.
      colinramsay on HN
    • I love simple things, this gets my +1, look forward to learning more. I can't see why this is browser only, am I missing something?
      neilellis on HN
  • Can pin dependency versions inline and allows multiple versions of a library

    From 3 comments
    • Author here. @tomdale We're on the same page. I've worked with many large JS codebases as well and consistency and repeatability are a must. However, as with any tool, it's…
      matthewmueller on HN
    • you can require two different versions of the same library and it works just fine. uses a similar process as browserify.
      matthewmueller on HN
    • With Duo you can actually have multiple versions of the same Javascript dependency. And then you can use the CLI to figure out what duplicates you have if you want to slim them…
      ianstormtaylor on HN

Objections

  • Inline requires make version upgrades tedious across many files

    From 2 comments
    • It sounds like this means that if I wanted to use a specific version of Ember, I would have something like the following line in many files: ```…
      wycats on HN
    • I'm not sure this actually improves the flow for me. I (like most sane devs), like to lock my deps to specific versions (or vendor them). Currently, it's just a matter of…
      zackbloom on HN
  • Lack of a manifest hurts reproducible builds

    From 1 comment
    • One question I always ask when looking at a package manager is, "Will this help me have reproducible builds?" (http://martinfowler.com/bliki/ReproducibleBuild.html) I've worked…
      tomdale on HN
  • Duplicates npm and browserify without clear added value

    From 3 comments
    • I have a hard time seeing what exactly the point of having another package manager is. We already have a very established way of managing front-end packages: NPM and Browserify.…
      andrezsanchez on HN
    • I like the ideas, but it feels like it's just a small incremental step over established solutions like webpack and browserify. Does this have any more to offer other than…
      skrebbel on HN
    • npm supports git repositories as dependencies already (git://github.com/...), so that feature doesn't seem like much added value to me. And considering that any real project…
      danielnaab on HN
  • Multiple versions of a dependency can cause runtime bugs

    From 3 comments
    • > In Duo you can pin down any dependency right in the file via require('some/repo@tag'), which is the same as having a manifest with a pinned version. That will do nasty things…
      munificent on HN
    • Let's say your app my_app uses foo and bar. They both use baz. You give them each their own version of baz: foo gets baz 1.0 and bar gets baz 2.0. Now, at runtime: ``` my_app…
      munificent on HN
    • Mutation isn't necessary to demonstrate the problem. Consider three libraries: first, there's a basic, widely-used datetime library. There's also a timezone library depending on…
      gary_bernhardt on HN

Requests

  • Support for linking local packages during development

    From 1 comment
    • Is there support for symlinking for easy development? I mean the equivalent for 'npm link' or 'bower link'. Also, can you host your own "duo registry" (if the concept makes sense…
      nawitus on HN
  • Private or self-hosted package registry

    From 1 comment
    • Is there support for symlinking for easy development? I mean the equivalent for 'npm link' or 'bower link'. Also, can you host your own "duo registry" (if the concept makes sense…
      nawitus on HN
  • Better error messages and automatic reading of bower and package.json metadata

    From 1 comment
    • Maybe it's just me but having no manifest makes using this tool quite painful. It has taken me 10 mins just to figure out how to structure the require()'s so that it doesn't…
      tjsix on HN

Questions

  • How does it compare with webpack, gulp and browserify

    From 3 comments
    • I like the ideas, but it feels like it's just a small incremental step over established solutions like webpack and browserify. Does this have any more to offer other than…
      skrebbel on HN
    • So earlier this summer I learned how to use RequireJS + a smidgen of Grunt, then I felt the need to move towards Gulp and Browserify (which I've just recently started), and now…
      vkal on HN
    • Did Duo the same as gulp+browserify ?
      progx on HN
  • Is it fast in development on large codebases

    From 1 comment
    • Is it fast during development on large codebases? (e.g. by compiling incrementally)
      RoboTeddy on HN
  • How reproducible builds are guaranteed

    From 1 comment
    • One question I always ask when looking at a package manager is, "Will this help me have reproducible builds?" (http://martinfowler.com/bliki/ReproducibleBuild.html) I've worked…
      tomdale on HN

Alternatives named

  • npm and browserify

    From 2 comments
    • I have a hard time seeing what exactly the point of having another package manager is. We already have a very established way of managing front-end packages: NPM and Browserify.…
      andrezsanchez on HN
    • npm supports git repositories as dependencies already (git://github.com/...), so that feature doesn't seem like much added value to me. And considering that any real project…
      danielnaab on HN
  • webpack

    From 2 comments
    • I like the ideas, but it feels like it's just a small incremental step over established solutions like webpack and browserify. Does this have any more to offer other than…
      skrebbel on HN
    • But, but.. I _just_ decided to use webpack :( More seriously: do you feel like it incorporates all the lessons of its predecessors?
      swah on HN
  • jspm

    From 1 comment
    • People interested in Duo may also want to have a look at jspm.io. It solves a similar problem, but with a few differences which to me are advantages: - Transparently supports…
      theefer on HN
  • Bower with RequireJS

    From 2 comments
    • So earlier this summer I learned how to use RequireJS + a smidgen of Grunt, then I felt the need to move towards Gulp and Browserify (which I've just recently started), and now…
      vkal on HN
    • I think I'm missing something. I see how this would be great when it's build time but during development I don't want to have to keep running build commands each time I want to…
      bpatrianakos on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/8208595)