It's hot, cool down with FREE SHIPPING! Use code SUMMER17

The Programmer RSS

compare, String

Typically programmers become accustom to using the == operator when comparing strings. While this is certainly valid syntax in Java, there is a catch that you should know about. The Catch...

Read more

Java, java.lang.OutOfMemoryError, systemoutofmemory

Learn how memory leaks manifest themselves in Java and how to avoid a System Out of Memory Exception. Contrary to what many people think, an application written in Java may...

Read more

Javascript, JSON, KnockoutJS

When using KnockoutJS and the Knockout Mapping Plugin, you may notice extra properties are being serialized with your viewmodels, ex. "__ko_mapping__" or "copiedProperties" objects. JSON Example: { "MyObject": { "Id":...

Read more

API, Javascript

One of the key ingredients to an AJAX driven website is the ability to reliably get query string parameters. We will run through an example using the new URLSearchParams API...

Read more

c#, list, random

Randomizing a list<T> can be done using the Random and a simple LINQ query. Check out our card shuffling example below: Randomizing a list of objects Given a Card class...

Read more