JavaScript and PHP – Just Take the Red Pills and Be Happy in Wonderland

First I want to say Happy 2015 everyone! It seems to me the more frustrated programmers get with their code problem domains the more likely they are to take it out on the languages they are using. Naturally JavaScript and PHP both take the brunt of the abuse because of their popularity, sometimes necessity and of course their numerous implementation oddities. A lot of programmers working with these languages == ...

Passing Data Between Forms – Using Delegates and Events

Back in an article I wrote in 2010 titled "Passing Data Between Forms in C# or VB.NET", I described one of a couple methods for passing data between two forms in a .NET forms project. One method was to publicly expose a method on a child form that the parent form could then call on when needed. At the same time I also mentioned, and advised against, using a public ...

Easy Way to Post Multiple JavaScript Values to PHP Using jQuery AJAX

For the sake of argument, let's assume you have to pass a plethora of JavaScript values to PHP through a POST submission. Maybe it is an array of numbers or simple point objects. You want to do this quickly and don't want to be bothered with using a hidden form or having to list out a ton of fields in some long data string that you give to a jQuery ...

A Game of Memory in VB.NET

One of the first projects that someone new to programming often wants to do is a game. Often times they want to do something they have seen on their consoles or mega computer games without realizing how much work actually goes into designing and implementing a game of that scope. After reading a book about programming they realize how tough those games are and that games of that scope usually ...

A Beginner Tic-Tac-Toe Class for Java

Around this time each year we mentors on Dream.In.Code see a bunch of students and beginners, attempting to do there final programming projects, come on the boards asking for help with coding problems. Some even come on asking for ideas to help them out and a large majority want help with simple games they can do like connect four, "the snake game" or even Tic-Tac-Toe. Then each year we throw ...

Counting Number Frequency in Java

Over the past couple weeks I have noticed a lot of students asking questions about counting number frequencies. The student is often generating, or asked to take in input, and count how many times a series of numbers appear in the data. Sometimes they are given a file for the input and other times they are asked to take in numbers entered by the user and count them. So I ...