News for hackers. Stuff that matters.
Re:Rust Sucks If I Fail to Write X by bb88 on Friday February 17, 2017 @02:12PM (#13670854)
>Data structures are a very specific domain, often very far away from what you'll be doing in the average "real" program.

I disagree. Choosing the right data structure often simplifies coding implementation and provides memory/performance guarantees.

And it's not only me that thinks that way either. Here's proof by Linus Torvalds (and a whole bunch of people on HN that agree with that sentiment)

https://news.ycombinator.com/item?id=4560334

Re:Rust Sucks If I Fail to Write X by kibwen on Friday February 17, 2017 @02:28PM (#13670962)
I've never interpreted that quote from Linus as being about e.g. choosing between a linked list and a hash table. Instead, I interpret that as saying that your program should focus first and foremost on your data (implying a competent understanding of your problem domain, such that you can model your structs effectively) with functions that serve your data rather than the other way around. IOW, I think he's channeling this quote from Fred Brooks:

"Show me your flowcharts and conceal your tables, and I shall continue to be mystified. Show me your tables, and I won’t usually need your flowcharts; they’ll be obvious."