How many times you had problem or were asked about what happened to this object in your function? Or why this is not an object you expect it to be? Probably these times you have to remind yourself or your fellow programmer about function context.
First of all I have to ask you all a pretty lame question. If you write function in JS block right inside your HTML, what this keyword will refer to?
<script type="text/javascript">
function testThis(){
//who is "this"
}
</script>
And now to the real example.
Read more…
VN:F [1.9.13_1145]
Rating: 4.9/5 (8 votes cast)
I suppose all of you have suffered all those terrible memory leaks in Internet Explorer.
Sometimes it’s bearable, but most of the time it’s not. I say enough is enough !
Read more…
VN:F [1.9.13_1145]
Rating: 4.3/5 (16 votes cast)
This one is a great c# interview question – short and simple, but tricky.
Read more…
VN:F [1.9.13_1145]
Rating: 4.4/5 (5 votes cast)
A couple of days ago i found a great framework called AForge.NET.
AForge.NET is a C# framework designed for developers and researchers in the fields of Computer Vision and Artificial Intelligence – image processing, neural networks, genetic algorithms, machine learning, robotics, etc.
Read more…
VN:F [1.9.13_1145]
Rating: 4.6/5 (8 votes cast)
Sometimes, you’re faced with the problem to cramp as many smaller textures as possible onto a larger texture. Typical cases are lightmaps, which are very small textures with dimensions that usually are not powers of two, or bitmap fonts where you want to try and fit the entire ascii character set onto a texture without wasting much space.
What you need then, is a rectangle packer, an algorithm that arranges as many smaller rectangles on a larger rectangle as can possibly fit.
Read more…
VN:F [1.9.13_1145]
Rating: 4.3/5 (6 votes cast)
It is very important to be able to dynamically control the behavior of .NET applications and to keep track of some of the aspects of the application (i.e. how the application is performing, what errors are produced during runtime, how the application performs at peak times, how to dynamically alter the behavior of the application, etc).
Read more…
VN:F [1.9.13_1145]
Rating: 4.7/5 (7 votes cast)
This is a very simple question with a not so simple answer…
Forget for a second about .NET.
If someone asks you how much is 1.000025 – 0.000025 your answer will probably be “1″ and correct. An easy question, right ?
Now, let’s go back to .NET and check if our calculations are correct.
Read more…
VN:F [1.9.13_1145]
Rating: 4.3/5 (6 votes cast)
Well, this is a nice one. We all familiar with incremental operators, but from what i saw yesterday… well, there is no need to give a developer some tricky assignment so he could find a way to make some bugs.
3bj4h786fc
Read more…
VN:F [1.9.13_1145]
Rating: 5.0/5 (6 votes cast)
Recent Comments