HNHacker News
TopNewBestAskShowJobs

manuc66

3 karma · joined July 7, 2021

submissionscomments
manuc66··on Nullable vs. Nullable in C#
@Bogdanp maybe this is another way to express it:

public static class EnumerableExtensions {

public static IEnumerable<TR> SelectNotNull<T, TR>( this IEnumerable<T> source, Func<T, TR?> fn) where TR : class { return source.Select(fn) .Where(it => it != null) .OfType<T>(); }

public static IEnumerable<TR> SelectNotNull<T, TR>( this IEnumerable<T> source, Func<T, TR?> fn) where TR : struct { return source.Select(fn) .Where(it => it != null) .Select(item => item.Value); } }

manuc66··on Have We Been Thinking About A.D.H.D. All Wrong?
Interesting to follow as a side reading of this article : What's Wrong with The NY Times Article on ADHD - #1 (of 4 Parts) - https://www.youtube.com/watch?v=-8GlhCmdkOw
manuc66··on Linux kernel cgroups writeback high CPU troubleshooting
"This investigation was a collaboration between myself and my colleagues."
manuc66··on Do you have any suggestions on RSS readers?
Have you tried https://www.freshrss.org/ ?