Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

CoffeeScript

3.4K
1.2K
+ 1
1K
D

578
136
+ 1
160
Add tool

CoffeeScript vs D: What are the differences?

What is CoffeeScript? Unfancy JavaScript. CoffeeScript is a little language that compiles into JavaScript. Underneath that awkward Java-esque patina, JavaScript has always had a gorgeous heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.

What is D? Modern convenience. Modeling power. Native efficiency. D is a language with C-like syntax and static typing. It pragmatically combines efficiency, control, and modeling power, with safety and programmer productivity.

CoffeeScript and D can be primarily classified as "Languages" tools.

"Easy to read" is the primary reason why developers consider CoffeeScript over the competitors, whereas "Compile-time function execution" was stated as the key factor in picking D.

CoffeeScript is an open source tool with 15.2K GitHub stars and 1.99K GitHub forks. Here's a link to CoffeeScript's open source repository on GitHub.

thoughtbot, Trello, and Code School are some of the popular companies that use CoffeeScript, whereas D is used by AdRoll, Stockopedia, and 9Labs. CoffeeScript has a broader approval, being mentioned in 364 company stacks & 170 developers stacks; compared to D, which is listed in 6 company stacks and 6 developer stacks.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of CoffeeScript
Pros of D
  • 199
    Easy to read
  • 179
    Faster to write
  • 126
    Syntactic sugar
  • 104
    Readable
  • 104
    Elegant
  • 73
    Pretty
  • 53
    Javascript the good parts
  • 48
    Open source
  • 44
    Classes
  • 35
    "it's just javascript"
  • 16
    Compact code
  • 15
    Easy
  • 13
    Simple
  • 13
    Not Javascript
  • 2
    Does the same with less code
  • 1
    I'm jobs I'm software engineer
  • 16
    Compile-time function execution
  • 12
    Makes functional programming style easier
  • 12
    Productive
  • 12
    Much easier to do Concurrent/Parallel vs C/C++
  • 11
    Simple but Powerful template-based generics
  • 11
    Powerful static function to avoid macro
  • 10
    Meta program is much easier to read/write vs. C++
  • 9
    It support unittest etc
  • 9
    Assembler is support directly in the language
  • 9
    System program language like C++ and C
  • 9
    Supports code covarge directly in the compiler
  • 7
    Metaprogramming
  • 7
    Supports both manuel memory and garbage collection
  • 6
    Plugs directly into C
  • 6
    Easy to translate from Java and C# to D
  • 5
    Feels and looks like C, so it's easy to learn
  • 4
    Amazing developer productivity
  • 2
    Fast
  • 2
    Performance
  • 1
    Syntax uniformity across pre-compile/compile/runtime

Sign up to add or upvote prosMake informed product decisions

Cons of CoffeeScript
Cons of D
  • 3
    No ES6
  • 1
    Corner cases in syntax
  • 1
    Parentheses required in 0-ary function calls
  • 1
    Unclear what will be grouped to {…}
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    2.2K
    489
    9.7K
    20.8K
    46.7K
    - No public GitHub repository available -

    What is CoffeeScript?

    It adds syntactic sugar inspired by Ruby, Python and Haskell in an effort to enhance JavaScript's brevity and readability. Specific additional features include list comprehension and de-structuring assignment.

    What is D?

    D is a language with C-like syntax and static typing. It pragmatically combines efficiency, control, and modeling power, with safety and programmer productivity.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use CoffeeScript?
    What companies use D?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with CoffeeScript?
    What tools integrate with D?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    What are some alternatives to CoffeeScript and D?
    JavaScript
    JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
    TypeScript
    TypeScript is a language for application-scale JavaScript development. It's a typed superset of JavaScript that compiles to plain JavaScript.
    ES6
    Goals for ECMAScript 2015 include providing better support for large applications, library creation, and for use of ECMAScript as a compilation target for other languages. Some of its major enhancements include modules, class declarations, lexical block scoping, iterators and generators, promises for asynchronous programming, destructuring patterns, and proper tail calls.
    Babel
    Babel will turn your ES6+ code into ES5 friendly code, so you can start using it right now without waiting for browser support.
    jQuery
    jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
    See all alternatives