It's too hot to be motivated
-
Now that we're back, may I remind you that not using curly braces for single-line if-statements is the root of all evil? ;p
-
Now that we're back, may I remind you that not using curly braces for single-line if-statements is the root of all evil? ;p
@Sander-Rossel It's good to finally hear from you, especially since you've been scolding me in my head about my code off and on in absentia since codeproject went dark. XD
-
It is just past 22 and still 35C (about 90F)... I'm melted...
-
Ah the memories. Glad it is finally up.
and witch it gives you something to do in your unmotivated state. -
@Sander-Rossel It's good to finally hear from you, especially since you've been scolding me in my head about my code off and on in absentia since codeproject went dark. XD
@code-witch said in It's too hot to be motivated:
@Sander-Rossel It's good to finally hear from you, especially since you've been scolding me in my head about my code off and on in absentia since codeproject went dark. XD
Good to hear I've become another voice in your head. Thanks for letting me stay there rent free!
And it's good to see you back too, I wouldn't know who to scold otherwise and things just wouldn't be the same ;D -
@code-witch said in It's too hot to be motivated:
@Sander-Rossel It's good to finally hear from you, especially since you've been scolding me in my head about my code off and on in absentia since codeproject went dark. XD
Good to hear I've become another voice in your head. Thanks for letting me stay there rent free!
And it's good to see you back too, I wouldn't know who to scold otherwise and things just wouldn't be the same ;D@Sander-Rossel I've got whole new coding horrors for you. like my extension method .ToLazyList() that works off an IEnumerable<T> and is every bit as horrible as it appears. XD
-
@Sander-Rossel I've got whole new coding horrors for you. like my extension method .ToLazyList() that works off an IEnumerable<T> and is every bit as horrible as it appears. XD
@code-witch Have you seen some of the old haunts that they've re-opened? Soap Box, Back Room, Clever Code...that last one sounds perfect! Good to see everyone is getting back! :)
-
@Sander-Rossel I've got whole new coding horrors for you. like my extension method .ToLazyList() that works off an IEnumerable<T> and is every bit as horrible as it appears. XD
@code-witch
IEnumerable<T> ToLazyList<T>(this IEnumerable<T> collection)
{
// TODO: Finish later, feeling lazy rn.
return collection;
} -
@code-witch
List<T> is an IEnumerable<T> so we could simplify as IEnumerable<T> ToLazyList<T>(this IEnumerable<T> collection) => new List<T>(collection); -
@code-witch
List<T> is an IEnumerable<T> so we could simplify as IEnumerable<T> ToLazyList<T>(this IEnumerable<T> collection) => new List<T>(collection);@CharHen Nope. That doesn't do the same thing. That creates a copy of the data. You may as well use ToList<>()