The Programmer Blog RSS

The Programmer Blog is here to help you, the programmer. We do our best to provide useful resources that offer explanations to popular programming problems, across a variety of programming languages. If you would like to suggest a blog topic or have a question, please leave us a message.

Button, HTML

Learning how to create an HTML button that acts like a link is surprisingly difficult for those new to web programming. Let's create an HTML button that links to another page and explain what exactly is needed for this implementation. The tricky part is that an HTML button is typically nested within a form and its job is to either submit the form...

Read more

array, Javascript

Removing one or many elements from an array in JavaScript is pretty straightforward. Though with all things programming there is some nuances that you should be aware of and there's a million ways to do it. Let's take a quick look at a few different examples to manipulate elements in JavaScript arrays. Removing elements from the end of a JavaScript array...

Read more

In May 2012, young 27-year-old Mark Zuckerberg wore a sweatshirt instead of a shirt and tie to meet with potential investors for Facebook's Initial Public Offering, to the dismay of well-dressed financial analysts around the world. With his casual wardrobe, Zuck entered the pantheon of great nerd technology entrepreneurs; famous in part for the "uniforms" they wear (or wore). Steve...

Read more

Using the == operator to compare strings is common but can have some pitfalls. Below is a short example of the difference between .equals and == operators and when it's appropriate to use them. == tests for reference equality (if they are the same object). .equals() tests for value equality (if they are logically "equal"). Objects.equals() checks for null before calling .equals() so you don't have to. String.contentEquals() compares the content...

Read more

async, Javascript

Welcome back fam! It's been quite awhile since we've written a blog post at System Out Of Memory but the time has come. Let's explain one of the top C# questions, how to return the response from and async call.   For anyone starting out let's explain the exact meaning of "ajax". To start let's understand that "AJAX" means Asynchronous JavaScript And XML....

Read more