Jon Skeet Inspects ReSharper

preview_player
Показать описание
Jon Skeet, man, father, legend. Some call him the Chuck Norris of C#. The guy that the compiler bends to obey is going to join us for this webinar to walk us through some of the inspections that ReSharper offers. He'll explain the theory behind it, tell us whether he agrees with it or not and will do his best to try and break ReSharper. Join us for what will definitely be a fun and educating webinar.
Рекомендации по теме
Комментарии
Автор

Why does DeepContainer(Of T) : SimpleContainer(Of DeepContainer(Of T)) work?

If you expand that you will end up with SimpleContainer(Of SimpleContainer(Of SimpleContainer( ....

It's also infinite?

(Youtube doesn't allow html entities...)

TheCSharpFan
Автор

As my smart friend pointed out, assume you have class A(T){T x;} class B : A(B(T)){}. In this case T field will simply have type B(T). However for C : A(C(C(T))){} it is not possible to build the type of field x. You set it as C(C(T)), but the "outer" C in this type will contain field x of type C(C(C(T))) and so on....
So expansion problem is kind of more about derived class than parent class...

xoRial
Автор

Sounds like James Callis a.k.a. Gaius Baltar. Guess they are from the same area of England.

KronikAlkoholik
Автор

My brain's voice processing unit fails to decipher the sound wave produced by Jon Skeet, everything sounds highly encrypted to me.

MalaysianDafuq
Автор

another bug in resharper (there is a bug report submitted):

I wrote an implementation of the Maybe monad using the Nullable<T> type. With Select and SelectMany implementations etc.

Resharper then gives the warning "expression is never null" for the following:

var m =

from x in Just(5)

from y in Nothing<int> //this return null typed as a Nullable<int>

select x + y;

if (m != null) Console.WriteLine(m.Value); // Resharper says this can never be false

If we remove the if, the code will throw an InvalidOperationException 100 % of the times we run the code, but reshaper says we should remove it because it thinks that SelectMany can't return null (and for IEnumerables it doesn't).

eNSWE
Автор

Dan Nemec, link seems to be not working or the code against the link has been removed! Could u plz chk.

bhabanisb
Автор

Watch with the automatic captions turned on - it's hilarious!

Particularly 32:50 where Jon talks about "avoiding the ugly cast" and it's captioned as "Buckingham palace" :D

Funniest gibberish since George W Bush.

PeteBurgess_uk
Автор

does anyone know how he got his compiler to look like that at 5:37

oscarcastanedamunoz
Автор

I should double check that I'm a programmer

vexedev