Veneer

Languages and libraries

javascript ui library

SHOW HN2012

Veneer

Veneer, modal dialogs in 75 lines of JavaScript

adeel.github.com

#modal dialog#javascript#mootools#lightbox

56points
25comments
#419of 1,677 in 2012
Top 25%of 2012 by points

How HN took it

RoastedHalf or more of the comments are critical

2 positive, 2 neutral or asking, 1 mixed, 7 critical, out of 12 comments about the project. Thread score -0.25.

Idea: 2 for, 3 againstPerformance: 0 for, 2 againstDesign: 0 for, 1 againstDocs: 0 for, 1 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, hackable, covers the 80% use case well

    From 2 comments
    • I wish more "library" would be written that way. I.e. make the 80% use case as simple and clear as possible, and let the programmer change it if needed.. instead of providing…
      phzbOx on HN
    • I like what you did here. It's common for new developers to rely heavily on complicated Lightbox scripts, because it seems daunting to implement one on their own. Your script…
      audionerd on HN

Objections

  • Requires MooTools, which is about 40kB, undermining the line count

    From 3 comments
    • Have I misunderstood your source?.. But when your first line of your README says that it depends on Mootools, which is shipping at like 40kb~, doesn't it kind of defeat the…
      chrisacky on HN
    • He is still relying on Mootools which is around 40kB in size.
      tar on HN
    • Your landing page should say that this requires Mootools.
      dylanhassinger on HN
  • Modal dialogs are annoying and usability is a concern

    From 2 comments
    • As a user, I find modal dialogs very annoying, independently of whether they appear in the browser or in any other GUI application. Nice JS and all, but please think twice (or…
      perlgeek on HN
    • I'm curious, can you name an appropriate use case for a modal dialog? The first few uses cases I know of that came to my mind didn't turn out to be so great after I thought a bit…
      perlgeek on HN
  • Unclear what differentiates it from existing libraries

    From 2 comments
    • It's great that you've written a modal dialog library but what differentiates it from the other popular options out there? A 75 line modal dialog library (+mootools) isn't a huge…
      debaserab2 on HN
    • I don't really understand what's the point of using your 75 line script for creating modal dialogs instead of the one line solution mentioned by chrisacky.
      tar on HN

Requests

  • Left/right arrow key support

    From 1 comment
    • I like it. Would it be very complicated to add left/right arrow key support?
      epikur on HN
  • Document mobile and browser support

    From 1 comment
    • I like what you did here. It's common for new developers to rely heavily on complicated Lightbox scripts, because it seems daunting to implement one on their own. Your script…
      audionerd on HN

Questions

  • Can an appropriate use case for modal dialogs be named

    From 1 comment
    • I'm curious, can you name an appropriate use case for a modal dialog? The first few uses cases I know of that came to my mind didn't turn out to be so great after I thought a bit…
      perlgeek on HN

Alternatives named

  • ColorBox

    From 1 comment
    • We've worked with ColorBox (http://jacklmoore.com/colorbox/) for the past couple years and it does the job well, just have to clean up the IE6 cruft. 3rd example would be just…
      ricardobeat on HN
  • dojo/dijit Dialog

    From 2 comments
    • Have I misunderstood your source?.. But when your first line of your README says that it depends on Mootools, which is shipping at like 40kb~, doesn't it kind of defeat the…
      chrisacky on HN
    • Sorry, it's actually dijit.Dialog({}). My bad.
      chrisacky 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/3438512)