News for hackers. Stuff that matters.
Re:Mixing Swift and C++ by jb1991 on Sunday July 23, 2023 @02:14PM (#36838054)
It's a subjective issue, but sometimes the end results can be better even if the experience of getting there is not as nice as a simpler language that is more bug-prone. Consider Rust, which is notoriously difficult to learn, but that offers improved end results in many cases re: security, safety, reliability.
Re:Mixing Swift and C++ by ori_b on Sunday July 23, 2023 @02:34PM (#36838248)
Can you explain how that's not an aspect of developer experience? It seems to be like trading off between type system correctness (you can go all the way to needing full formal proofs of correctness, resource use, etc) and ease of getting stuff done is the core of developer experience.
Re:Mixing Swift and C++ by worik on Sunday July 23, 2023 @03:19PM (#36838709)
With Rust it is the learning curve that is hard.

I find every other aspect of "developer experience" excellent

Re:Mixing Swift and C++ by jb1991 on Sunday July 23, 2023 @03:27PM (#36838798)
Does your idea of a good developer experience include programs that are reliable, won't crash in production, won't be compromised, and save you lots of time later on so you can just focus on writing code the first time? In the absence of these guarantees, your developer experience can include some very frustrating and/or stressful debugging.
Re:Mixing Swift and C++ by ori_b on Sunday July 23, 2023 @03:51PM (#36839088)
Yes. Does yours not?

Tools like Agda, Spark, Idris, and Coq move the tradeoff around towards "probably correct", and I welcome seeing some of their features become gradually available. Getting things right the first time is useful.

But these features can also make it hard to get anything done quickly.

Good developer experience means finding a balance between the quick and dirty, and the provably correct.

Re:Mixing Swift and C++ by jb1991 on Sunday July 23, 2023 @03:55PM (#36839130)
You just made my point for me.
Re:Mixing Swift and C++ by ori_b on Monday July 24, 2023 @07:21AM (#36846070)
Was your point that you agree with me? If not, I don't get it.