I would be lying if I said that I was a professional Ocaml developer.

I do definitely think the Jane's library is very hard to read... But that might be my inexperience

I personally think regular, procedural code is much easier to read ¯_(ツ)_/¯

If you want to read some monads in the wild, go check the code for Jane's Street "core_unix.command_unix"

Otherwise, GADT, but they are used sparingly because they make type inference undecidable

[-] kSPvhmTOlwvMd7Y7E@programming.dev -4 points 5 months ago

Sorry to that guy, but Python is a terrible choice for GUI. It simply doesn't even exist in the wild, except in newbies' minds. You should pick something that allows you to* easily & immediately* reload your GUI in progress without restarting the program; AND also maybe think about how to distribute your GUI on other computers without requiring them to duplicate your python setup

Meh. He s wrong and he knows it. Computer science is definitely about efficient use of computational resources and memory.

[-] kSPvhmTOlwvMd7Y7E@programming.dev 2 points 10 months ago

and how you run your tests? Do you spawn a DB backend for test purposes?

[-] kSPvhmTOlwvMd7Y7E@programming.dev 1 points 11 months ago* (last edited 11 months ago)

Unfortunately sometimes the code base is fuckd up beyond repair, it can't even be tested. that's why i submitted 3000 line PR ☠️

All IO related stuff should be a replaceable dependency

But this is very readable tho

[-] kSPvhmTOlwvMd7Y7E@programming.dev -1 points 1 year ago* (last edited 1 year ago)

Why every class creates its own logger? That might make sense, but looks suspicious

Use global imported variables for configs.

view more: ‹ prev next ›

kSPvhmTOlwvMd7Y7E

joined 1 year ago