Better HN
topnewbestaskshowjobs
Log inSign up

Lanayx

24 karma · joined Aug 8, 2024 (2y ago) · 8 submissions

Submissions

comment 1y ago · link · parent

I wrote an article about it. https://medium.com/@lanayx/dependency-injection-in-f-the-mis...

comment 1y ago · link · parent

F# excels in writing domain logic where main domain entities are defined as records and discriminated unions and logic is written in pure functions. Given that product is preexisting and domain entities must already be defined, I wonder what use case do you have in mind?

comment 1y ago · link · parent

For web UI we have Fable and it's integration with well-known js frameworks, also WebSharper (although it's less well-known) and Bolero (on top of Blazor)

For mobile we have FuncUI (on top of Avalonia) and Fabulous (on top of Avalonia, Xamarin and Maui). Most of these frameworks use Elm architecture, but some do not. For example I use Oxpecker.Solid which has reactive architecture.

Can't help with Scala comparison, but at least DeepSeek V3 prefers F# for UI https://whatisbetter.ai/result/F%23-vs-Scala-9eaede00c7e4485...

comment 1y ago · link · parent

For reference, F# slack is already dead, community has moved to Discord https://discord.com/invite/fsharp-196693847965696000

comment 1y ago · link · parent

I've just launched a product for easy AI based comparison and sharing, the feedback is appreciated.

Announcements Twitter: https://x.com/WhatIsBetterAI/status/1898026811000226244 Bluesky: https://bsky.app/profile/whatisbetter.ai/post/3ljscbmehsk2x

6.

What Is Better?(whatisbetter.ai ↗)

1 points · by Lanayx · 1y ago · 1 comment

comment 2y ago · link · parent

This is only partially true. Both Some and None were always instances of single FSharpOption class (None is actually not an instance, but null), however custom DUs are indeed compiled into classes with inheritance