DesignToJS

Languages and libraries

javascript compile-to-js

SHOW HN2014

26points
17comments
#1,076of 2,272 in 2014
Top 48%of 2014 by points

How HN took it

CuriousMostly questions and neutral comments

2 positive, 5 neutral or asking, 0 mixed, 3 critical, out of 10 comments about the project. Thread score -0.17.

Idea: 1 for, 1 againstDesign: 1 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

  • Congratulations on building something useful in a day; documentation and examples look excellent

    From 1 comment
    • Firstly, congratulations on making something useful in one day. Great job. I skimmed over the documentation/examples and this is excellent.
      pearknob on HN

Objections

  • README example output does not match the documented behavior

    From 1 comment
    • Looks like the readme example doesn't work. I didn't compile the djs sayHello function to verify it matches the given javascript, but running sayHello("nyc") spits out ``` Hello…
      arknave on HN
  • Syntax may clash with JavaScript's standard labeled statements

    From 1 comment
    • This looks cool but I think your syntax clashes with JS's standard LabeledStatement
      phpnode on HN
  • GitHub classifies .djs files as DogeScript

    From 1 comment
    • You'll have a hard time fighting GitHub classifying `.djs` as DogeScript.... Nevertheless, good luck with the project and everything.
      m90 on HN

Requests

  • Build on Sweet.js macros so it works with other JS flavors like JSX

    From 1 comment
    • 1. Instead of implementing it in vanilla JavaScript, consider creating a Sweet.js macros (or series of macros), so it can be used with other flavors of JS as well (e.g. JSX, etc)…
      dmitrig01 on HN
  • Clarify async behaviour inside conditionals

    From 2 comments
    • 1. Instead of implementing it in vanilla JavaScript, consider creating a Sweet.js macros (or series of macros), so it can be used with other flavors of JS as well (e.g. JSX, etc)…
      dmitrig01 on HN
    • Sorry, should have clarified on 2. As an expansion of one of the examples given: ``` loadAndPrintFile: (contents) { if (!contents) { fs.readFile() -> (error!, contents) }…
      dmitrig01 on HN
  • Support static functions on classes

    From 1 comment
    • 1. Instead of implementing it in vanilla JavaScript, consider creating a Sweet.js macros (or series of macros), so it can be used with other flavors of JS as well (e.g. JSX, etc)…
      dmitrig01 on HN

Questions

  • What happens when an async function is inside a conditional?

    From 2 comments
    • 1. Instead of implementing it in vanilla JavaScript, consider creating a Sweet.js macros (or series of macros), so it can be used with other flavors of JS as well (e.g. JSX, etc)…
      dmitrig01 on HN
    • Sorry, should have clarified on 2. As an expansion of one of the examples given: ``` loadAndPrintFile: (contents) { if (!contents) { fs.readFile() -> (error!, contents) }…
      dmitrig01 on HN

Alternatives named

  • Sweet.js macros

    From 1 comment
    • 1. Instead of implementing it in vanilla JavaScript, consider creating a Sweet.js macros (or series of macros), so it can be used with other flavors of JS as well (e.g. JSX, etc)…
      dmitrig01 on HN
  • CoffeeScript-style promise macros with bluebird

    From 1 comment
    • Sorry, should have clarified on 2. As an expansion of one of the examples given: ``` loadAndPrintFile: (contents) { if (!contents) { fs.readFile() -> (error!, contents) }…
      dmitrig01 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/8187067)