Click here to Skip to main content
15,891,431 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!

 
NewsNew platform acts as a gatekeeper to ensure web services adhere to a user's custom data restrictions Pin
Kent Sharkey20-Feb-19 9:31
staffKent Sharkey20-Feb-19 9:31 
JokeRe: New platform acts as a gatekeeper to ensure web services adhere to a user's custom data restrictions Pin
Richard Deeming20-Feb-19 10:18
mveRichard Deeming20-Feb-19 10:18 
GeneralRe: New platform acts as a gatekeeper to ensure web services adhere to a user's custom data restrictions Pin
Mark_Wallace21-Feb-19 8:41
Mark_Wallace21-Feb-19 8:41 
NewsThe battle between real open source vs. faux open source heats up Pin
Kent Sharkey20-Feb-19 9:16
staffKent Sharkey20-Feb-19 9:16 
GeneralRe: The battle between real open source vs. faux open source heats up Pin
Mark_Wallace21-Feb-19 8:46
Mark_Wallace21-Feb-19 8:46 
NewsC# 8: Default interface methods implementation Pin
Kent Sharkey20-Feb-19 9:01
staffKent Sharkey20-Feb-19 9:01 
GeneralRe: C# 8: Default interface methods implementation Pin
Richard Deeming20-Feb-19 10:16
mveRichard Deeming20-Feb-19 10:16 
GeneralRe: C# 8: Default interface methods implementation Pin
#realJSOP21-Feb-19 1:18
mve#realJSOP21-Feb-19 1:18 
What a PFF (pointless f*ckin feature). Like you said... base class. Another (better) solution is to simply create another interface that ionherits the old interface:
C#
// original interface that a lot of classes use
public interface IOne
{
   void Method1();
}

// addition methods that enhance IOne's interfacinality
public interface ITwo : IOne
{
    void Method2();
}

// derives from old IOne interface and keeps on working
public class OldClass : IOne
{
    public void Method1() {}
}

// The programmer is ready to implement the new method in his class, so 
// he simply inherits ITwo (which inherits from IOne)
public class MyClass : ITwo
{
    public void Method1() {}
    public void Method2() {}
}

The dowwnstream classes can be modified as needed. There's absolutely no need for this kinda crap/fluff. Let core keep that crap.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: C# 8: Default interface methods implementation Pin
WaferFun21-Feb-19 14:24
WaferFun21-Feb-19 14:24 
GeneralRe: C# 8: Default interface methods implementation Pin
Bernhard Hiller21-Feb-19 22:18
Bernhard Hiller21-Feb-19 22:18 
NewsMicrosoft launches new Office app for Windows 10 Pin
Kent Sharkey20-Feb-19 9:01
staffKent Sharkey20-Feb-19 9:01 
GeneralRe: Microsoft launches new Office app for Windows 10 Pin
Nelek21-Feb-19 5:57
protectorNelek21-Feb-19 5:57 
GeneralRe: Microsoft launches new Office app for Windows 10 Pin
Mark_Wallace21-Feb-19 8:48
Mark_Wallace21-Feb-19 8:48 
NewsLessons from 6 software rewrite stories Pin
Kent Sharkey20-Feb-19 8:46
staffKent Sharkey20-Feb-19 8:46 
GeneralRe: Lessons from 6 software rewrite stories Pin
FIorian Schneidereit20-Feb-19 9:42
FIorian Schneidereit20-Feb-19 9:42 
GeneralRe: Lessons from 6 software rewrite stories Pin
j snooze20-Feb-19 11:18
j snooze20-Feb-19 11:18 
GeneralRe: Lessons from 6 software rewrite stories Pin
#realJSOP21-Feb-19 1:33
mve#realJSOP21-Feb-19 1:33 
NewsGoogle says Nest’s secret microphone was ‘never intended to be a secret’ Pin
Kent Sharkey20-Feb-19 6:31
staffKent Sharkey20-Feb-19 6:31 
GeneralRe: Google says Nest’s secret microphone was ‘never intended to be a secret’ Pin
Mark_Wallace20-Feb-19 7:35
Mark_Wallace20-Feb-19 7:35 
GeneralRe: Google says Nest’s secret microphone was ‘never intended to be a secret’ Pin
Joe Woodbury20-Feb-19 7:36
professionalJoe Woodbury20-Feb-19 7:36 
GeneralRe: Google says Nest’s secret microphone was ‘never intended to be a secret’ Pin
Kent Sharkey20-Feb-19 8:25
staffKent Sharkey20-Feb-19 8:25 
GeneralRe: Google says Nest’s secret microphone was ‘never intended to be a secret’ Pin
User 842020-Feb-19 8:47
User 842020-Feb-19 8:47 
GeneralRe: Google says Nest’s secret microphone was ‘never intended to be a secret’ Pin
Kent Sharkey20-Feb-19 8:55
staffKent Sharkey20-Feb-19 8:55 
GeneralRe: Google says Nest’s secret microphone was ‘never intended to be a secret’ Pin
j snooze20-Feb-19 11:20
j snooze20-Feb-19 11:20 
GeneralRe: Google says Nest’s secret microphone was ‘never intended to be a secret’ Pin
abmv20-Feb-19 20:35
professionalabmv20-Feb-19 20:35 

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.