Seeing how people avoid cache hits and align data sometimes cracks me up.I also had to move the Stopwatch instantiation before the array instantiation, otherwise it was actually slower and took 4600 ms. I can also leave the Stopwatch being instantiated at the same spot, but add a int[] junk = new int[1]; junk[0] = 0; before the actual array and get the same faster results.
This is 100% correct. Programmers who love one language and hate everything else are usually full of shit.Tenks_sl said:Managed code and unmanaged code both have their places. I cannot ever understand why so many developers think it is one or the other. If I'm doing stuff that is a better fit to be written in C then I'll write it in C. If I'm doing stuff that is better fit in Java I'll write it in Java. Developers hold way, way too hard onto biases instead of just selecting the appropriate tool from my experience. Not every block of code is required to be written in the fastest. most efficient manner especially if it hamstrings readability.
Managed code is, I'd argue, a better default than unmanaged code. It allows for quicker delivery of product and never having to hunt down sometimes impossible to find leaks. But there are times where unmanaged code simply falls short and you *need* to manage to memory yourself. And for that I'm glad we have the tools to do that.I just don't like working with unmanaged code and after so much time not even touching anything but .NET I'd have to re-teach myself. Just not something I would want to do. I don't believe it's one or the other, I just don't want to leave my comfortable little world, and there really is no need for me to do so.
I agree with this, game development is the worst field.Do you want to go into game development? I would suggest against that. It's literally the worst field you can get into as far as software development goes.
I'd love to man but my only experience atm is some basic scripting in python and java. I hope by next summer I'll be somewhat useful. I really wish I had more experience because I am totally free this summer to do an internship :/If you're interested in game company internships, can PM me, my company usually has a few interns at any given time.