Click here to Skip to main content
15,901,205 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
TheGreatAndPowerfulOz8-Jun-17 5:22
TheGreatAndPowerfulOz8-Jun-17 5:22 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
Member 102778078-Jun-17 6:14
Member 102778078-Jun-17 6:14 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
Fabio Franco8-Jun-17 6:57
professionalFabio Franco8-Jun-17 6:57 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
pherschel7-Jun-17 6:12
pherschel7-Jun-17 6:12 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
TheGreatAndPowerfulOz7-Jun-17 6:57
TheGreatAndPowerfulOz7-Jun-17 6:57 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
Fabio Franco8-Jun-17 1:55
professionalFabio Franco8-Jun-17 1:55 
GeneralRe: c# Const vs. Readonly, Scope, Usings PinPopular
F-ES Sitecore7-Jun-17 5:18
professionalF-ES Sitecore7-Jun-17 5:18 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
Foothill7-Jun-17 8:50
professionalFoothill7-Jun-17 8:50 
F-ES Sitecore wrote:
Because .net is better at memory management than you are and if you leave .net to do your memory management you'll get code that performs well, if you try and do your own memory management you get code that performs badly.
Well, you could jump outside of the CLR and allocate memory directly such as
C#
unsafe
{
 [DllImport(@"C:\Windows\System32\kernal32.dll")
 public static extern void * HeapAlloc(void * procHeap, UInt32 dword, UInt32 size);
}
Not saying that this is a good thing but it's possible and pretty much defeats the purpose of the CLR and GC. Not to mention memory management is one of the most challenging aspects of computer programing. If it weren't for .Net, my programs would most likely leak memory all over the place (my C and C++ KungFu is not strong).
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016

GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
kalberts8-Jun-17 1:54
kalberts8-Jun-17 1:54 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
dandy727-Jun-17 5:21
dandy727-Jun-17 5:21 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
TheGreatAndPowerfulOz7-Jun-17 5:46
TheGreatAndPowerfulOz7-Jun-17 5:46 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
dandy728-Jun-17 3:45
dandy728-Jun-17 3:45 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
kalberts8-Jun-17 2:21
kalberts8-Jun-17 2:21 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
dandy728-Jun-17 3:44
dandy728-Jun-17 3:44 
GeneralRe: c# Usings Pin
irneb8-Jun-17 5:07
irneb8-Jun-17 5:07 
GeneralRe: c# Const vs. Readonly Pin
irneb8-Jun-17 5:14
irneb8-Jun-17 5:14 
GeneralRe: c# Const parameters Pin
irneb8-Jun-17 5:27
irneb8-Jun-17 5:27 
GeneralRe: c# Scope in properties Pin
irneb8-Jun-17 5:30
irneb8-Jun-17 5:30 
GeneralRe: c# Const vs. Readonly, Scope, Usings Pin
Caslen9-Jun-17 8:36
Caslen9-Jun-17 8:36 
GeneraliOS 11 can automatically delete apps to save space Pin
ZurdoDev7-Jun-17 3:24
professionalZurdoDev7-Jun-17 3:24 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
harold aptroot7-Jun-17 3:35
harold aptroot7-Jun-17 3:35 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
lopatir7-Jun-17 3:37
lopatir7-Jun-17 3:37 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
ZurdoDev7-Jun-17 3:39
professionalZurdoDev7-Jun-17 3:39 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
  Forogar  7-Jun-17 3:47
professional  Forogar  7-Jun-17 3:47 
GeneralRe: iOS 11 can automatically delete apps to save space Pin
OriginalGriff7-Jun-17 3:56
mveOriginalGriff7-Jun-17 3:56 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   502 votes