Click here to Skip to main content
15,867,330 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: Meta says it will sell off Giphy following order from UK competition watchdog Pin
Nelek18-Oct-22 23:28
protectorNelek18-Oct-22 23:28 
NewsStability AI, proponent of hands-off AI image generation, gets a $1 billion valuation Pin
Kent Sharkey18-Oct-22 7:16
staffKent Sharkey18-Oct-22 7:16 
GeneralRe: Stability AI, proponent of hands-off AI image generation, gets a $1 billion valuation Pin
David O'Neil18-Oct-22 18:44
professionalDavid O'Neil18-Oct-22 18:44 
GeneralRe: Stability AI, proponent of hands-off AI image generation, gets a $1 billion valuation Pin
Nelek18-Oct-22 23:27
protectorNelek18-Oct-22 23:27 
NewsThat shouldn't happen - UnreachableException in .NET 7 Pin
Kent Sharkey18-Oct-22 7:16
staffKent Sharkey18-Oct-22 7:16 
GeneralRe: That shouldn't happen - UnreachableException in .NET 7 Pin
Nelek18-Oct-22 23:25
protectorNelek18-Oct-22 23:25 
GeneralRe: That shouldn't happen - UnreachableException in .NET 7 Pin
Kent Sharkey19-Oct-22 3:52
staffKent Sharkey19-Oct-22 3:52 
GeneralRe: That shouldn't happen - UnreachableException in .NET 7 Pin
trønderen19-Oct-22 4:47
trønderen19-Oct-22 4:47 
In interpreted languages, you don't even need all that catch/throw red tape. Just write a line of
"This should never pop up #XX. If it does, something went veeeery wrong. Please contact us and tell us the number"
with no stash or wrapping. When the interpreter tries to parse the message, it will fail, and crash.

Details depend on the language. If the language allows random constants (as I have seen some do!), remove the ""s and phrase the message so that it cannot be interpreted as valid code.

One alternative is to use a static code analysis tool, with proper flow analysis. If it is a good one, it will tell you that 'if x is between 0 and 10 in function so-and-so, when calling function this-and-that and y is 0, and then ... then it will cause this statement to be executed', giving you the recipe for reaching that unreachable code.
NewsWhy is there a passwords.txt file on my system that’s filled with somebody else’s passwords? Pin
Kent Sharkey18-Oct-22 7:16
staffKent Sharkey18-Oct-22 7:16 
GeneralRe: Why is there a passwords.txt file on my system that’s filled with somebody else’s passwords? Pin
David O'Neil18-Oct-22 18:50
professionalDavid O'Neil18-Oct-22 18:50 
NewsGitUI Pin
Kent Sharkey17-Oct-22 11:16
staffKent Sharkey17-Oct-22 11:16 
GeneralRe: GitUI Pin
Dan Neely18-Oct-22 3:36
Dan Neely18-Oct-22 3:36 
NewsTech CEO calls overemployment trend a 'new form of theft and deception' after firing 2 engineers secretly working multiple full-time jobs at once Pin
Kent Sharkey17-Oct-22 11:16
staffKent Sharkey17-Oct-22 11:16 
GeneralRe: Tech CEO calls overemployment trend a 'new form of theft and deception' after firing 2 engineers secretly working multiple full-time jobs at once Pin
Greg Utas17-Oct-22 13:08
professionalGreg Utas17-Oct-22 13:08 
GeneralRe: Tech CEO calls overemployment trend a 'new form of theft and deception' after firing 2 engineers secretly working multiple full-time jobs at once Pin
Daniel Pfeffer17-Oct-22 14:53
professionalDaniel Pfeffer17-Oct-22 14:53 
GeneralRe: Tech CEO calls overemployment trend a 'new form of theft and deception' after firing 2 engineers secretly working multiple full-time jobs at once Pin
Greg Utas17-Oct-22 15:20
professionalGreg Utas17-Oct-22 15:20 
GeneralRe: Tech CEO calls overemployment trend a 'new form of theft and deception' after firing 2 engineers secretly working multiple full-time jobs at once Pin
Dan Neely18-Oct-22 3:21
Dan Neely18-Oct-22 3:21 
GeneralRe: Tech CEO calls overemployment trend a 'new form of theft and deception' after firing 2 engineers secretly working multiple full-time jobs at once Pin
David O'Neil17-Oct-22 13:45
professionalDavid O'Neil17-Oct-22 13:45 
GeneralRe: Tech CEO calls overemployment trend a 'new form of theft and deception' after firing 2 engineers secretly working multiple full-time jobs at once Pin
obermd18-Oct-22 3:50
obermd18-Oct-22 3:50 
GeneralRe: Tech CEO calls overemployment trend a 'new form of theft and deception' after firing 2 engineers secretly working multiple full-time jobs at once Pin
obermd18-Oct-22 3:57
obermd18-Oct-22 3:57 
GeneralRe: Tech CEO calls overemployment trend a 'new form of theft and deception' after firing 2 engineers secretly working multiple full-time jobs at once Pin
maze318-Oct-22 4:15
professionalmaze318-Oct-22 4:15 
NewsThe cloud has a people problem Pin
Kent Sharkey17-Oct-22 10:16
staffKent Sharkey17-Oct-22 10:16 
GeneralRe: The cloud has a people problem Pin
David O'Neil17-Oct-22 11:14
professionalDavid O'Neil17-Oct-22 11:14 
JokeRe: The cloud has a people problem Pin
Daniel Pfeffer17-Oct-22 15:06
professionalDaniel Pfeffer17-Oct-22 15:06 
GeneralRe: The cloud has a people problem Pin
David O'Neil17-Oct-22 15:55
professionalDavid O'Neil17-Oct-22 15:55 

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.