Live data from Hacker News

Fable 3: F# to JavaScript compiler

fable.io

21–30 of 131 posts

Re: Fable 3: F# to JavaScript compiler

#21
post #6

Thank you for the part in round brackets, I wish more submissions were formed in this way.

Wouldn't have even clicked if not for the brackets. My mind jumped to the crappy game https://en.wikipedia.org/wiki/Fable_III

Crappy is your subjective opinion. Others, including review sites, gave it above average views.

Re: Fable 3: F# to JavaScript compiler

#22
post #19
post #5

Earlier quoted context omitted.

Yep. We’re using F# React on the front-end, Giraffe on the back-end. DustyTables for Data Access. It’s great - can recommend.

what about efcore does it work in f#? or is it bad practice to use mutable code/objects in f#? i do not want to go back to plain sql...

It’s a .Net library so it works (or should work) with F#.

What sometimes leads to problems is F#’s record and discriminated union types.

Not sure how they are handled by EF Core.

Going back to plain SQL is just great. You know exactly what SQL gets executed. No Magic.

With DustyTables it’s also not too much boilerplate.

Re: Fable 3: F# to JavaScript compiler

#23
post #7
post #6

Earlier quoted context omitted.

Wouldn't have even clicked if not for the brackets. My mind jumped to the crappy game https://en.wikipedia.org/wiki/Fable_III

Huh, today I learned "parenthesis" are called "round brackets" in UK

I have never ever heard anyone call them that in the UK, they're either brackets or parenthesis to anyone I've ever spoken to - from scientists, to builders, my grandparents all said brackets (Including the one is almost illiterate)

I'm sure someone must use it but it's not at all common

Re: Fable 3: F# to JavaScript compiler

#26
post #5

Earlier quoted context omitted.

Yep. We’re using F# React on the front-end, Giraffe on the back-end. DustyTables for Data Access. It’s great - can recommend.

Is the market for F# picking up now in 2020? At my current job we're not using F# but I'd like to eventually move to a place that does. I am learning on my own at the moment and am wondering how open the potential hiring companies would be with novices in F# who otherwise have good experience in other languages.

this is part of the greater lament of FP languages in industry. You might have to be satisfied with a kind of FP flavored C#, which in newer versions of the language isn't all that bad The thinking is that there's a million C# devs, a hundred thousand VB devs, and ten thousand F# devs.

If you want to work in F# come up with your own OSS projects or champion it at work.

Re: Fable 3: F# to JavaScript compiler

#28
post #19

Earlier quoted context omitted.

what about efcore does it work in f#? or is it bad practice to use mutable code/objects in f#? i do not want to go back to plain sql...

It’s a .Net library so it works (or should work) with F#. What sometimes leads to problems is F#’s record and discriminated union types. Not sure how they are handled by EF Core. Going back to plain SQL is just great. You know exactly what SQL gets executed. No Magic. With DustyTables it’s also not too much boilerplate.

Design-time support is still via a non-released package. So you'll write models/etc in C# and use EF from F#. There are ways to get design-time constructs working in F#, but it's not plug-and-play like from the C# side.

Re: Fable 3: F# to JavaScript compiler

#29

Earlier quoted context omitted.

It’s a .Net library so it works (or should work) with F#. What sometimes leads to problems is F#’s record and discriminated union types. Not sure how they are handled by EF Core. Going back to plain SQL is just great. You know exactly what SQL gets executed. No Magic. With DustyTables it’s also not too much boilerplate.

Design-time support is still via a non-released package. So you'll write models/etc in C# and use EF from F#. There are ways to get design-time constructs working in F#, but it's not plug-and-play like from the C# side.

You can write models in F# (with CLIMutables everywhere), but then you need to put models in a separate project, then add a C# project for migrations, and finally reference both projects from your ASP.NET app.

Re: Fable 3: F# to JavaScript compiler

#30
post #23
post #7

Earlier quoted context omitted.

Huh, today I learned "parenthesis" are called "round brackets" in UK

I have never ever heard anyone call them that in the UK, they're either brackets or parenthesis to anyone I've ever spoken to - from scientists, to builders, my grandparents all said brackets (Including the one is almost illiterate) I'm sure someone must use it but it's not at all common

I picked up "round brackets", "square brackets", "curly brackets" somewhere during my (Lancashire) youth though generally I only use them now when I encounter somebody confused by parens/brackets/braces as terminology.
Post reply on HN