Click here to Skip to main content
15,889,808 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: Even when presented with facts, supported by evidence, many choose not to believe them Pin
Nelek9-Oct-18 19:58
protectorNelek9-Oct-18 19:58 
GeneralRe: Even when presented with facts, supported by evidence, many choose not to believe them Pin
Marc Clifton12-Oct-18 10:33
mvaMarc Clifton12-Oct-18 10:33 
GeneralRe: Even when presented with facts, supported by evidence, many choose not to believe them Pin
BillWoodruff9-Oct-18 20:21
professionalBillWoodruff9-Oct-18 20:21 
GeneralRe: Even when presented with facts, supported by evidence, many choose not to believe them Pin
Bernhard Hiller9-Oct-18 22:25
Bernhard Hiller9-Oct-18 22:25 
NewsGoogle Call Screening: A personal robot that talks to, hangs up on spam calls Pin
Kent Sharkey9-Oct-18 10:46
staffKent Sharkey9-Oct-18 10:46 
NewsExtension methods and the decline of traditional OOP Pin
Kent Sharkey9-Oct-18 10:46
staffKent Sharkey9-Oct-18 10:46 
GeneralRe: Extension methods and the decline of traditional OOP Pin
BillWoodruff9-Oct-18 13:57
professionalBillWoodruff9-Oct-18 13:57 
GeneralRe: Extension methods and the decline of traditional OOP Pin
Bernhard Hiller9-Oct-18 22:48
Bernhard Hiller9-Oct-18 22:48 
I disagree. Extension Methods can be useful on any type which you cannot change, no matter if it's a type in the .Net library or a Third Party component.

I wrote extensions on string:

public static string[] SplitTrim(this string _s, char _separator)
{
    return _s.SplitTrim(new[] { _separator });
}

public static string[] SplitTrim(this string _s, char[] _separator)
{
    string[] split = _s.Split(_separator);
    List<string> collector = new List<string>();
    foreach (string item in split)
    {
        string trimmed = item.Trim();
        if (trimmed.Length > 0)
        {
            collector.Add(trimmed);
        }
    }
    return collector.ToArray();
}
Do you see now that they can be useful?
Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!

GeneralRe: Extension methods and the decline of traditional OOP Pin
BillWoodruff10-Oct-18 2:54
professionalBillWoodruff10-Oct-18 2:54 
GeneralRe: Extension methods and the decline of traditional OOP Pin
Foothill10-Oct-18 3:22
professionalFoothill10-Oct-18 3:22 
GeneralRe: Extension methods and the decline of traditional OOP Pin
Bernhard Hiller9-Oct-18 22:53
Bernhard Hiller9-Oct-18 22:53 
GeneralRe: Extension methods and the decline of traditional OOP Pin
#realJSOP10-Oct-18 0:12
mve#realJSOP10-Oct-18 0:12 
NewsHalf of new app development requests end in failure Pin
Kent Sharkey9-Oct-18 10:46
staffKent Sharkey9-Oct-18 10:46 
GeneralRe: Half of new app development requests end in failure Pin
Joe Woodbury9-Oct-18 14:35
professionalJoe Woodbury9-Oct-18 14:35 
NewsIntroducing ‘Suggest a Feature’ in Developer Community Pin
Kent Sharkey9-Oct-18 9:16
staffKent Sharkey9-Oct-18 9:16 
GeneralRe: Introducing ‘Suggest a Feature’ in Developer Community Pin
Joe Woodbury9-Oct-18 14:36
professionalJoe Woodbury9-Oct-18 14:36 
NewsMicrosoft drops print drivers from Windows 10 October 2018 Update Pin
Kent Sharkey9-Oct-18 9:01
staffKent Sharkey9-Oct-18 9:01 
GeneralRe: Microsoft drops print drivers from Windows 10 October 2018 Update Pin
j snooze9-Oct-18 11:37
j snooze9-Oct-18 11:37 
NewsThe Internet Archive just got a working Commodore 64 Emulator Pin
Kent Sharkey9-Oct-18 9:01
staffKent Sharkey9-Oct-18 9:01 
NewsSpinnaker is the next big open source project to watch Pin
Kent Sharkey9-Oct-18 7:46
staffKent Sharkey9-Oct-18 7:46 
JokeRe: Spinnaker is the next big open source project to watch Pin
Richard Deeming9-Oct-18 8:41
mveRichard Deeming9-Oct-18 8:41 
NewsGoogle will not bid for the Pentagon’s $10B cloud computing contract, citing its “AI Principles” Pin
Kent Sharkey9-Oct-18 7:46
staffKent Sharkey9-Oct-18 7:46 
GeneralRe: Google will not bid for the Pentagon’s $10B cloud computing contract, citing its “AI Principles” Pin
Nelek9-Oct-18 20:02
protectorNelek9-Oct-18 20:02 
NewsNew evidence of hacked Supermicro hardware found in U.S. telecom Pin
Kent Sharkey9-Oct-18 7:46
staffKent Sharkey9-Oct-18 7:46 
GeneralRe: New evidence of hacked Supermicro hardware found in U.S. telecom Pin
Joe Woodbury9-Oct-18 8:22
professionalJoe Woodbury9-Oct-18 8:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.