News for hackers. Stuff that matters.
Re:Attention is your scarcest resource by ncmncm on Sunday September 06, 2020 @06:08PM (#24395053)
I can't say whether more short-term memory would make us smarter, but I can say that when I had a short-term memory problem, I could do everything except program.

This dependence on short-term memory is why I find Rust's borrow checker intolerable during exploratory programming. Whatever coding bugs it prevents have to be strongly outnumbered by design errors it causes by stealing attention from the most critical activity at that time.

The borrow checker would deliver 100% of its value if it limited its enforcement to release builds, and just reported numbers otherwise.

Re:Attention is your scarcest resource by dlannoye on Monday September 07, 2020 @01:51AM (#24396924)
One thing I setup in a large TypeScript project is not having type checking errors block outputting JavaScript. We still require all commits that go through PR to pass type checking and even enforce the compiler's script mode, but locally we try to ensure the developers can iterate on an idea as fast as they want and refine later. This system has been well received by all of the developers working on the project.
Re:Attention is your scarcest resource by glouwbug on Sunday September 06, 2020 @07:46PM (#24395593)
Yes but if the borrow checker is not enforced people _will_ release unsafe code because the borrow checker was optional. It's sort of like how Go enforces same line curlies. It was a decision made to unify the look of the syntax at it's birth, and unfortunately even a curly bracket enforcement is enough of a deterrent as it limits one's expression regarding personal choice. The designers of these languages have an agenda, and by using their tooling we agree to their idea of wisdom. The alternative is something like C. While fun to write, it's a mistake to use unless every programmer onboard is highly skilled with it's pitfalls
Re:Attention is your scarcest resource by ncmncm on Monday September 07, 2020 @01:24AM (#24396791)
I see that you did not read what I wrote.
Re:Attention is your scarcest resource by reitzensteinm on Monday September 07, 2020 @01:38AM (#24396862)
I don't think that's fair. I guarantee if what you suggested came to pass there would be projects that swap to debug builds to solve a momentary issue... and never swap back.
Re:Attention is your scarcest resource by aprdm on Monday September 07, 2020 @02:46AM (#24397132)
How's that a problem is the product works and there's less friction to develop? Let's say it produced buggy code and the cost of not enabling it was great than enabling, am sure projects would enable again..
Re:Attention is your scarcest resource by ncmncm on Monday September 07, 2020 @02:53PM (#24401649)
And users would know this, and make their own choice whether to rely on the project.

Removing agency from users of your program or programming language is not a recipe for success.

Re:Attention is your scarcest resource by reitzensteinm on Monday September 07, 2020 @07:31PM (#24403803)
You torched the pretense of civil debate by declaring GP wouldn't have written what they did if they had of read your post.

I don't agree with you on this issue or your "recipe for success". The reply was fine.

Re:Attention is your scarcest resource by ncmncm on Tuesday September 08, 2020 @01:18AM (#24405409)
Easily said, and lets you avoid engaging on substance. Congratulations.
Re:Attention is your scarcest resource by reitzensteinm on Tuesday September 08, 2020 @01:46AM (#24405521)
You avoided engaging on the substance of the parent comment in favor of a dismissive remark, and then again avoided engaging on substance when I called you out on your bad behavior. Please don't troll this site.
Re:Attention is your scarcest resource by ncmncm on Tuesday September 08, 2020 @09:01PM (#24415533)
I am quite familiar with the tactic, often employed on this very site, of pretending to answer something that was not said. It is trolling, and I know better than to engage with it. Complaining about not engaging with trolls is itself trolling, which you have now done twice. Accusing people of trolling for not engaging with trolls is trolling.

You have introduced yourself, and I promise to remember.

Re:Attention is your scarcest resource by monadgonad on Monday September 07, 2020 @04:40AM (#24397733)
No, they read it and rightly saw that if there is any way of getting around the borrow checker, people will just take that route.
Re:Attention is your scarcest resource by ncmncm on Monday September 07, 2020 @02:59PM (#24401710)
We can allow glouwbug to speak for him/herself, if you are right, or quietly and honestly accept the embarrassment, and learn from it.

The easiest way to "get around the borrow checker" is not to use Rust at all. We have evidence of people using it, so they are proof positive that not everyone will "just take that route".

If you meant not everyone, but some people, then yes, we know there are people releasing programs not coded in Rust, many quite successfully.