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.

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

BookGuide, C++

Here is a quick list of the top C++ books to get you started from beginning to end. This list of C++ books is a collaborative effort and has been compiled from a variety of sources If you would like to suggest a book please don't hesitate to message us. Enjoy! Beginner C++ Books Introductory, no previous programming experience C++ Primer  (Stanley...

Read more

Git

Removing your latest commit from your local (or remote) Git repository is a common task when you've committed the wrong files and/or code. Here are a few short and sweet examples using Git that show how to undo a commit (without twelve paragraphs of theory explaining it).   Undo last commit from local Git repository Problem You just executed a git commit. You did not execute a git...

Read more