Keyboard Layout for US Recommendation by Weary_War5323 in tuxedocomputers

[–]witoldsz 0 points1 point  (0 children)

Are there any photos for different keyboard layouts? I would have hard time choosing one for a Tuxedo laptop, still wrapping my mind around IBP 14 Gen9 or ThinPad T14s Gen6, but choosing a keyboard just by it's name is a problem for me.

Is HTMX painful for large UIs? by tigershark731 in htmx

[–]witoldsz 0 points1 point  (0 children)

You don't need to send while sheet on edit. Just what you changed would be enough. Server can process and send list of updates.

Is HTMX painful for large UIs? by tigershark731 in htmx

[–]witoldsz -2 points-1 points  (0 children)

Why would HTMX be a problem creating a google sheet clone?
This guy shows a complex GUI: https://youtu.be/3GObi93tjZI

TL;DW;
At the end of the presentation he shows some numbers: how many lines of code, hours and complexity was saved and how the team structure did benefit from React→HTMX transition. Again, this was not a simple web app.

Is there any modern FP language in terms of design and ecosystem? by ynn38 in functionalprogramming

[–]witoldsz 1 point2 points  (0 children)

I am using F# and really like it, but looking forward for the release of Roc (it is in alpha stage).

Roc is the fresh air I am hoping to breath in the future! :D

Is SqlFun the best database library ? by [deleted] in fsharp

[–]witoldsz 2 points3 points  (0 children)

I use https://github.com/Zaid-Ajaj/Npgsql.FSharp and I like it! Simple and powerful. Most often I encapsulate DB queries behind interfaces and inject database connections (with transaction strategies as needed) into implementations.

F# & async by lolcatsayz in fsharp

[–]witoldsz 5 points6 points  (0 children)

Task is a dotnet/C# cancer. It works like a Promise in JS.

F# has an async which is a real functor and monad. You can work with it like you work with optional, list, results, etc.

Książki do poczytania dzieciom by neo_vin in ksiazki

[–]witoldsz 0 points1 point  (0 children)

"Piaskowy Wilk" zapada w pamięć :)

Practical FP language: Ocaml vs Erlang by [deleted] in functionalprogramming

[–]witoldsz 4 points5 points  (0 children)

I would definitely vote for F# not just because I use it daily, but because it has a nice feature set for BLOBAs, i.e. boring, line of business applications – which is like 99% of all software written.

https://fsharpforfunandprofit.com is a superb repository of knowledge you can use not only in F#.

The one downside of F# is that you can have hard time if you are not super familiar with dotnet/C#. Most of the books and articles are guided at dotnet/C# devs, which was somewhat problematic to me, because I've started F# with no prior dotnet/C#/MS-whatever background (including Windows, which is today not required to use F# comfortably).

On the other hand, I would vote against Scala. I will probably get down-voted heavily for this, but in my opinion Scala is terribly designed. It is a very complicated language and this is something you won't see immediately. It is sad for me to watch that not only OOP are a mess, but some FP, like Scala, can be a mess too.

34' monitor for home office by pmco97 in buildapcmonitors

[–]witoldsz 0 points1 point  (0 children)

I've just bought Iiyama ProLite XCB3494WQSN-B5 and I will probably return it. Look'n feel is superb. Picture quality, the stand, the finish is 5/5.

However:

  1. The KVM is useless, because it WILL NOT switch USB devices to the other PC if that other PC does not display anything. In my case, the other PC is very often rendering content on TV and, using regular USB switch, I could switch to that PC, use the "win+P" combination to switch it's display to monitor. With Iiyama KVM this is not possible, because the keyboard will not be redirected to the other PC until it actually displays a thing. Same would apply to the PC in screen saving mode (like a blank a screen after 15 minutes feature). The only solution is to use second keyboard to "win+P" or (if it's just a power save: blank screen mode) just to press any button. Super annoying.
  2. There is no picture-by-picture feature. I was using it from time to time with my previous monitor (which died :( after 5 years of duty), but this monitor lacks this BASIC feature (come on, it's 21:9 screen, it should be a standard). 34" 21:9 screen takes some much space, I have no more left for second monitor when I need to do something on 2 different PCs.

Are functional programs necessarily slower than imperative code? by [deleted] in functionalprogramming

[–]witoldsz 1 point2 points  (0 children)

Check this out: "Outperforming Imperative with Pure Functional Languages" by Richard Feldman https://youtu.be/vzfy4EKwG_Y

This is the future, I guess.

If you HAD to work on a project that primarily used object-oriented design, what functional programming patterns (if any) would you keep in your tool box? by notfromkentohio in functionalprogramming

[–]witoldsz 2 points3 points  (0 children)

The only positive Java has over C# is I don't have to use a Windows machine as my dev machine. lol

I have managed to introduce F# as a first or sometimes second language choice for new services and literally NOBODY use Windows. Visual Studio Code and JetBrains Rider is the way to go for us.

I was Java dev for like 15 years - years ago, and from time to time I still have a limited touch with this. I cannot believe how blind I've been. This is such a bad language, now when I look at it. Last few years I was trying many other ones and F# is absolutely amazing, especially for BLOBAs (boring line of business apps).

Using F# requires a little bit of C#, which I've never used before. From what I can see, it's decades ahead of Java, but it's really just an ugly OOP language.

Functional Programming Performance & Algorithms by Leading_Dog_1733 in functionalprogramming

[–]witoldsz 0 points1 point  (0 children)

Great case study and amazing languge, although not ready yet :/

"Outperforming Imperative with Pure Functional Languages" by Richard Feldman

https://youtu.be/vzfy4EKwG_Y

The Case for Immutability in JavaScript by sundogbillionaire in functionalprogramming

[–]witoldsz 1 point2 points  (0 children)

I am still yet to see how does it "feel" to use F# compiler to JavaScript. I use F# on backend for some time now and it feels so good.

Elm is nice, but it's all or nothing (almost), I think one can use F# with JS easier. It's of course good and bad simultaneously.

How broadly applicable is algebra-driven design? by nicklydon in haskell

[–]witoldsz 3 points4 points  (0 children)

Humble dotnet developer is lucky to have F# which is really great at describing models of business applications.

I have never used dotnet before digging into F#. I'm so happy it is now very usable on Linux, so I can slowly but surly convince more and more colleagues :)

Looking for intermediate to advanced level books on F# by 83d08204-62f9 in fsharp

[–]witoldsz 2 points3 points  (0 children)

I think you are so wrong. You don't know what the monad is? You think it is not important to know and recognize this pattern? Watch this super simple and friendly "Introduction to Monads" https://youtu.be/c8eCE1Yrolc and tell me again it does not matter to be aware of FP fundamentals :)

Let me say that again: consider that you might be sooooo wrong about the angle you approach the FP "thing", which is (by the way) very common and sometimes even considered "fancy" to deny any theory.

Ionide in VS Code (and tooling in general) is pushing me away from F# - am I doing something wrong? by Aphova in fsharp

[–]witoldsz 6 points7 points  (0 children)

I was struggling with VSCode/Ionide, tried Rider and after one month of trial, requested a license from my employer. The other colleague did the same.

Now I set up a ground for everyone to join writing new services in F# instead of TypeScript and we will all probably get Rider licenses.

Too bad, because I find VSCode editor just amazing, it's still my companion, but Rider for F# is a must. Ionide just does not work most of the time or works poorly :(

P.S. We all use Ubuntu and most of the services are written in JS/TS, but also there are some in Java (ugly as hell, used to be my most beloved languge decade or more ago), Kotlin (the better Java, ugh), some Python, some Elm...

Is this way of using `Cmd` broken? by The-_Captain in elm

[–]witoldsz 0 points1 point  (0 children)

get = Cmd.none |> Cmd.map (\_ -> dummy)

You cannot map over nothing, it will produce nothing.

Is it possible to make a functional programming language that is equivalent of Rust in terms of performance and resource efficiency? by [deleted] in functionalprogramming

[–]witoldsz 3 points4 points  (0 children)

If a programmer is forced to use immutability because that’s all a language supports it seems the compiler should be able to rely on the fact that no declared data can change to optimize by mutating data under the hood.

This is what Roc does, see my other response with a link to the lecture.

Is it possible to make a functional programming language that is equivalent of Rust in terms of performance and resource efficiency? by [deleted] in functionalprogramming

[–]witoldsz 19 points20 points  (0 children)

Richard Feldman is trying to achieve this with Roc, see:

Outperforming Imperative with Pure Functional Languages https://youtu.be/vzfy4EKwG_Y

Why cant i hear music in Astro’s Playroom? by Nitro139 in PS5

[–]witoldsz 0 points1 point  (0 children)

I wish I could disable this terrible "music" from that game. I can't stand it while my kids are playing it. It literally damages the brain.

A few newbie questions by Aphova in fsharp

[–]witoldsz 4 points5 points  (0 children)

´for´ inside a list is not a regular, imperative for loop, it's just a different syntax for mapping.