Click here to Skip to main content
14,604,021 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: Attackers can bypass fingerprint authentication with an ~80% success rate Pin
Member 79891229-Apr-20 10:37
MemberMember 79891229-Apr-20 10:37 
News“Unit tests are a design smell. Do not write unit tests.” Pin
Kent Sharkey7-Apr-20 10:31
staffKent Sharkey7-Apr-20 10:31 
GeneralRe: “Unit tests are a design smell. Do not write unit tests.” Pin
Mark_Wallace7-Apr-20 17:36
MemberMark_Wallace7-Apr-20 17:36 
GeneralRe: “Unit tests are a design smell. Do not write unit tests.” Pin
Member 79891229-Apr-20 11:07
MemberMember 79891229-Apr-20 11:07 
NewsHow are .NET APIs designed? Pin
Kent Sharkey7-Apr-20 10:01
staffKent Sharkey7-Apr-20 10:01 
GeneralRe: How are .NET APIs designed? Pin
Nelek7-Apr-20 10:57
protectorNelek7-Apr-20 10:57 
GeneralRe: How are .NET APIs designed? Pin
Dan Neely8-Apr-20 2:21
MemberDan Neely8-Apr-20 2:21 
GeneralRe: How are .NET APIs designed? Pin
Member 79891229-Apr-20 11:23
MemberMember 79891229-Apr-20 11:23 
In the good old Win32 API, two completely different strategies were used: Either, when a function Func was extended, we were offered the FuncEx interface. Next time it was extended, it became FuncExEx, and so on. There was at least one case of FuncExExExExEx - five extensions to the original.

The other alternative was to put all arguments into a single struct, the first argument being the size of the struct. Arguments required for new extensions were added to the end of the struct. If you supplied an extended, "new" struct to an old library, only the old members were accessed and the old functionality was unchanged. If you supplied an old, shorter struct, a new library would know not to access the extended parameters. The struct size served as sort of an interface version indicator.

I was never in doubt which of these alternatives I preferred, and have tried to push that principle in projects I have been involved in, but most developers reject it fiercely. If a method requires seven parameters, the seven values should be listed in the call, not hidden in a f*** struct!

(Years ago, I worked for a company that had to expedite the release of the new compiler to satisfy an important customer, who had reached the limit of function 99 parameters! The new compiler allowed 256, satisfying the customer's needs. But this was in the days of Fortran, so using structs was no option.)
NewsMicrosoft announces IPE, a new code integrity feature for Linux Pin
Kent Sharkey7-Apr-20 10:01
staffKent Sharkey7-Apr-20 10:01 
GeneralRe: Microsoft announces IPE, a new code integrity feature for Linux Pin
Mark_Wallace7-Apr-20 10:08
MemberMark_Wallace7-Apr-20 10:08 
GeneralRe: Microsoft announces IPE, a new code integrity feature for Linux Pin
Nelek7-Apr-20 10:52
protectorNelek7-Apr-20 10:52 
NewsMicrosoft buys Corp.com so bad guys can’t Pin
Kent Sharkey7-Apr-20 10:01
staffKent Sharkey7-Apr-20 10:01 
GeneralRe: Microsoft buys Corp.com so bad guys can’t Pin
Mark_Wallace7-Apr-20 10:19
MemberMark_Wallace7-Apr-20 10:19 
JokeRe: Microsoft buys Corp.com so bad guys can’t Pin
Nelek7-Apr-20 10:51
protectorNelek7-Apr-20 10:51 
GeneralRe: Microsoft buys Corp.com so bad guys can’t Pin
markrlondon9-Apr-20 3:24
Membermarkrlondon9-Apr-20 3:24 
GeneralRe: Microsoft buys Corp.com so bad guys can’t Pin
Nelek9-Apr-20 3:56
protectorNelek9-Apr-20 3:56 
GeneralRe: Microsoft buys Corp.com so bad guys can’t Pin
markrlondon9-Apr-20 8:06
Membermarkrlondon9-Apr-20 8:06 
GeneralRe: Microsoft buys Corp.com so bad guys can’t Pin
Bernhard Hiller8-Apr-20 2:45
MemberBernhard Hiller8-Apr-20 2:45 
NewsThings that are called ML/AI that really aren’t Pin
Kent Sharkey7-Apr-20 8:46
staffKent Sharkey7-Apr-20 8:46 
GeneralLots of people who think themselves intelligent really aren’t Pin
Mark_Wallace7-Apr-20 10:12
MemberMark_Wallace7-Apr-20 10:12 
GeneralRe: Lots of people who think themselves intelligent really aren’t Pin
Kent Sharkey7-Apr-20 11:07
staffKent Sharkey7-Apr-20 11:07 
GeneralRe: Lots of people who think themselves intelligent really aren’t Pin
Mark_Wallace7-Apr-20 16:54
MemberMark_Wallace7-Apr-20 16:54 
GeneralRe: Lots of people who think themselves intelligent really aren’t Pin
Kent Sharkey7-Apr-20 17:22
staffKent Sharkey7-Apr-20 17:22 
GeneralRe: Lots of people who think themselves intelligent really aren’t Pin
Mark_Wallace7-Apr-20 17:45
MemberMark_Wallace7-Apr-20 17:45 
GeneralRe: Things that are called ML/AI that really aren’t Pin
Nelek7-Apr-20 10:47
protectorNelek7-Apr-20 10:47 

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.