Skip to main content

Home/ Brian links/ Group items tagged stack

Rss Feed Group items tagged

Kevin DiVico

Ask Stack: How to develop deep programming knowledge? | Ars Technica - 0 views

  •  
    Robert Harvey asks: Occasionally I see questions about edge cases on Stack Overflow that are easily answered by the likes of Jon Skeet or Eric Lippert-experts who demonstrate a deep knowledge of a particular language and its many intricacies. Here's an example of this from Lippert's MSDN blog: You might think that in order to use a foreach loop, the collection you are iterating over must implement IEnumerable or IEnumerable. But as it turns out, that is not actually a requirement. What is required is that the type of the collection must have a public method called GetEnumerator, and that must return some type that has a public property getter called Current and a public method MoveNext that returns a bool. If the compiler can determine that all of those requirements are met then the code is generated to use those methods. Only if those requirements are not met do we check to see if the object implements IEnumerable or IEnumerable. This is cool stuff to know. I can understand why Eric knows this; he's on the compiler team, so it's explicitly in his job description to know. But how do mere mortals, those of us on the outside, find out about stuff like this?
Kevin DiVico

3D Printers, Laser Cutters, & Personal Manufacturing - Area 51 - Stack Exchange - 0 views

  •  
    Proposed Q&A site for operators of 3D printers, heads of hacker spaces, hardware hackers, service bureau owners, MakerBot tinkerers, product entrepreneurs, MAKE magazine subscribers, and all others who want to make physical things with computers.
1 - 2 of 2
Showing 20 items per page