2/2 This is one of the reasons I like languages like F#, Scala and Rust. They default to immutable values but they give the developer the means to make things mutable if it's justified.
=> More informations about this toot | View the thread
Another thing that language designers should be very aware of: defaults are extremely important! Most developers will never bother to use anything other than a default even if another choice would better suit the use case.
I mean how many people use an unsigned integer as an index in a looping construct? Yet consider how many times you've needed a negative index into, well, any data structure? But because signed integer is the default that's what usually ends up getting used!
=> More informations about this toot | View the thread
Yes I admit it—I am proud to get this! And I will keep on giving just as long as I can! #DonorForLife
=> More informations about this toot | View the thread
I am going to be reading "How To Design Programs" and I thought others might like to read and discuss it so I set up a book club via Fable. https://fable.co/club/dettechwatch-book-club-with-onorio-catenacci-178852936285
Feel free to forward the invite.
The book is free and available online here: https://htdp.org/2024-11-6/Book/index.html
Please let others know about this! The more folks reading and discussing the book the more we can all learn!
=> More informations about this toot | View the thread
=> This profile with reblog | Go to onorio@mastodon.acm.org account This content has been proxied by September (ba2dc).Proxy Information
text/gemini