sip

joined 2 years ago
[–] sip@programming.dev 6 points 1 day ago

chatgpt happened

[–] sip@programming.dev 12 points 1 week ago

they are explicitly excluded, right?

[–] sip@programming.dev 1 points 2 weeks ago

I think ghcup is the simplest way

[–] sip@programming.dev 1 points 2 weeks ago

I used it either through my distro's package or using stack install. there's also cabal install, but that doesn't install the compiler, at least not in 2017 when I played with it.

[–] sip@programming.dev 1 points 2 weeks ago* (last edited 2 weeks ago) (3 children)

I asked chatgpt for a few languages with a good typesystem and it suggested ocaml among other (scala, rust, haskell, f#)

Then asked for a 100 line ocaml REST API example with a popular framework and db lib.. and it looks mostly like Haskell.

edit: async is done with monads

[–] sip@programming.dev 3 points 2 weeks ago (5 children)

i wish a more performing language would have this type system. the only other ones I know are Rust which is a bit strict and slow to dev on, and Haskell which is too much.

[–] sip@programming.dev 17 points 2 weeks ago (17 children)

agreed. typescript is excelent, especially if you make it strict and know a bit of complex types to make sure things stay put.

[–] sip@programming.dev 2 points 3 weeks ago (1 children)

hahaha. just don't --continue at the last commit

[–] sip@programming.dev 1 points 2 months ago
[–] sip@programming.dev 4 points 2 months ago

agreed. having a cryptography mark on the file and relying on chain of trust is the way.

[–] sip@programming.dev 2 points 2 months ago

it's my fav and it's easy. allows containing details of a lower lever gizmo in a higher level thingamabob and basically free strategy pattern, especially if you use DI... and allows mock/spy testing!

[–] sip@programming.dev 3 points 2 months ago* (last edited 2 months ago) (2 children)

DI without a tool/injector is just composition. just saying

view more: next ›