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

CoffeeScript

3.3K
1.2K
+ 1
1K
F#

575
537
+ 1
399
Add tool

CoffeeScript vs F#: What are the differences?

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; F#: Strongly-typed, functional-first programming language for writing simple code to solve complex problems. F# is a mature, open source, cross-platform, functional-first programming language. It empowers users and organizations to tackle complex computing problems with simple, maintainable and robust code.

CoffeeScript and F# can be categorized as "Languages" tools.

"Easy to read" is the top reason why over 197 developers like CoffeeScript, while over 40 developers mention "Pattern-matching" as the leading cause for choosing F#.

CoffeeScript and F# are both open source tools. CoffeeScript with 15.2K GitHub stars and 1.99K forks on GitHub appears to be more popular than F# with 2.09K GitHub stars and 341 GitHub forks.

Code School, Zaarly, and thoughtbot are some of the popular companies that use CoffeeScript, whereas F# is used by Olo, Huddle, and Property With Potential. CoffeeScript has a broader approval, being mentioned in 364 company stacks & 170 developers stacks; compared to F#, which is listed in 19 company stacks and 16 developer stacks.

Advice on CoffeeScript and F#
Needs advice
on
C#C#F#F#
and
KotlinKotlin

Hi there. I want to expand my coding toolset. So I want to learn a second backend language besides Kotlin. Kotlin is fantastic. I love it in every aspect, and I think I can never return to Java. And also why should I? It is 100% interoperable with java and can co-exist in every project.

So my question here is. Which language do you think will bring me more joy? I think F#; it is more like Kotlin. Then C# (it's more or like 100% java). But, let's say I learn F#. Is it 100% interoperable like Kotlin? can they live side by side? Can I, then, apply to .NET jr jobs after a while, for example, or is C# the holy cow? I would like to learn .Net.

If it is the worst and only C# is acceptable, then which language should I learn? Dart? Go?

See more
Replies (3)
Recommends
on
C#C#KotlinKotlin

Exceptional decision to go with Kotlin. For the other story, go full with C#. "is C# the holy cow? Yes it is.". Specially now when netCore is crossplatform and you can build asp.net core applications on Windows, Linux and macOS via Visual Studio Code which is also multiplatform. Nothing will beat C# in the near future. Also, at the end of 2021 Microsoft will release Net 6.0 which will include MAUI.

"For those new to .NET MAUI (standing for .NET Multi-platform App UI), Microsoft says it's "the evolution of Xamarin.Forms extended from mobile to desktop scenarios with UI controls rebuilt from the ground up for performance and extensibility."

So, C# all the way sire!

See more
Recommends
on
C#C#

animefanx1,

First let's get your questions sorted: Which language do you think will bring me more joy?

This you will have to decide for yourself, I am a long time C# developer and have seen it grow into a very compelling platform. The language and I'd compare it more to Kotlin than Java (by a long margin). More on .NET in a bit.

say I learn F#. Is it 100% interoperable like Kotlin?

You can have 100% interop with a caveat, your F# libraries have to implement certain guidance in order to be referenced from C#. Some (dare I say most) of the differences between F# and C# are predicated on language constructs that are not available in C#. For instance F# functions that return Unit.

can they live side by side?

Yes.

Can I, then, apply to .NET jr jobs after a while, for example, or is C# the holy cow?

I don't know if I take your meaning, but let me say this: Learning either C# or F# will likely force you to understand concepts such as garbage collection, primitive types, etc. which apply to all .NET languages, thus a lot of the effort you put into .NET is bound to pay off regardless of your choice.

If it is the worst and only C# is acceptable, then which language should I learn? Dart? Go? You can't go wrong with any of these and I venture to say whether you select C#, F#, Dart or Go as your next adventure, your willingness to learn will take you to try other languages, some which mey not even exist yet!

PS1: .NET is an end to end environment now. With the introduction of Blazor and Razor pages one does not need JavaScript or other browser scripting languages, it even interops with JavaScript. PS2. Microsoft is working on unifying .NET. Soon there will be only one version: .NET 5! Caveat: Some features such as WinForms will still be specific to the windows environment but all of those are likely things you don't need in Mac or Linux

See more
Recommends
on
GolangGolang

I think you can learn go instead C#. C# is cool, but Golang also cool. It can run on any OS without specific software. C# can run on linux too but it's only the .NET Core as I know. But golang is flexible. So try it and decide what do you think about Golang

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of CoffeeScript
Pros of F#
  • 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
  • 53
    Pattern-matching
  • 42
    Makes programming fun again
  • 38
    Type providers
  • 32
    Delightful
  • 30
    Frictionless
  • 26
    Static type inference
  • 21
    Composable
  • 19
    Ml syntax
  • 17
    REPL
  • 17
    Succinct
  • 10
    DDD
  • 9
    Making invalid states impossible
  • 7
    Great community
  • 7
    WebSharper
  • 7
    Language support for units of measure
  • 6
    Functional Programming
  • 6
    Powerful
  • 5
    Beautiful Code
  • 5
    Compact
  • 5
    Multiplatform
  • 5
    Functional paradigm
  • 5
    Computation Expressions
  • 5
    Open source
  • 5
    Less bugs
  • 5
    Productive
  • 4
    Allow use JS and .NET libraries
  • 4
    Object oriented features
  • 4
    Fun to write

Sign up to add or upvote prosMake informed product decisions

Cons of CoffeeScript
Cons of F#
  • 3
    No ES6
  • 1
    Corner cases in syntax
  • 1
    Parentheses required in 0-ary function calls
  • 1
    Unclear what will be grouped to {…}
  • 3
    Microsoft tend to ignore F# preferring to hype C#
  • 2
    Interop between C# can sometimes be difficult
  • 1
    Hype
  • 1
    Type Providers can be unstable in larger solutions

Sign up to add or upvote consMake informed product decisions

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 F#?

F# is a mature, open source, cross-platform, functional-first programming language. It empowers users and organizations to tackle complex computing problems with simple, maintainable and robust code.

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

What companies use CoffeeScript?
What companies use F#?
See which teams inside your own company are using CoffeeScript or F#.
Sign up for StackShare EnterpriseLearn More

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

What tools integrate with CoffeeScript?
What tools integrate with F#?

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

Blog Posts

What are some alternatives to CoffeeScript and F#?
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