Subscribe to Martyr2's Programming Underground        RSS Feed
- - - - -

Rolling Dice In Java, C# And PHP

Icon 2 Comments
Some of the very first programs we are introduced to in programming is the idea of random numbers. This is often introduced using the idea of the die or dice. We have all seen them and have probably even thrown a set of dice at some point in our life. A die is pretty much a representation of a random number generator with a fixed range of values....
* * * - -

Stubbing Out Functions, Do You Do It?

Icon 4 Comments
If have ever taken a beginner programming class in school you were probably introduced to the idea of stubbing out functions. If not, let me quickly tell you what stubbing is. It is the process of identifying tasks in your design and setting up functions to handle those tasks. We define just the function signature (name, parameters and body)...
- - - - -

Review of "Web Design with HTML, CSS, JavaScript and jQuery" Book Set

Icon 1 Comments
As a programmer always thirsty to learn new tech, I also love to get a refresher and learn something new in the process. That is why a couple of times a month I go to the local bookstore (Chapters here in Canada) and browse many of the new books in stock. Over the last few years especially, the computer book section has gotten a bit sparse. It...
* * * * *

Create an Email Activation and Unsubscribe Script in PHP

Icon 1 Comments
If you weren't lucky enough to get a job with Google or Facebook, or even if you did, one of the first tasks you might be asked to do in your new career as a web developer is to create a subscription form. As part of creating this form will want to collect user information up front and then sending the user an email to have them activate their...
- - - - -

8 Tips to a Better API Design

Icon Leave Comment
We have all seen the numerous articles and tutorials related to great REST API design on the web...
- - - - -

ASP.NET Variables Won't Hold Their Values

Icon Leave Comment
When it comes to working with ASP.NET most developers who have done standard desktop development always run into the problem of their class variables not retaining their values. You create a variable at the class/page level and expect that when you click a button or change a server control on the page that those variables will be there when its...
* * * * *

The Main Method Is a Conductor, Not a Member of the Orchestra

Icon 4 Comments
As many of you already know, I am a regular mentor on Dream.In.Code. With that I see common mistakes and design issues more than most people will probably ever seen in their full career. One design issue I would like to talk about today is the role of the main method and why it should be treated more like the conductor of an orchestra than 10...
- - - - -

Really Simple PHP Login / Logout Script Example

Icon 11 Comments
One of the first scripts people new to PHP (or any server-side scripting really) create is a login and logout form for their site. Often times beginners get a little confused as to all the parts necessary to creating such a thing. So I thought it would be helpful if I showed a really basic and easy to use PHP login / logout script. The script uses...
* * * * *

Batch Renaming Of Files Using Recursion In Python

Icon Leave Comment
Someone came into the Dream.In.Code forums the other day asking about batch renaming of files using Python. I thought I would work out the example for everyone to see and create something that they could add to their own personal libraries of code. Python makes this pretty easy to do using "os" and "os.path" but one tricky part...
- - - - -

Integrate Your Favorite YouTube Channels with JavaScript

Icon Leave Comment
Like me you probably have several YouTube channels that you like to follow. Maybe you enjoy that crazy cat video channel or the channel which shows stupid people doing stupid stuff. Either way you want to bring those favorite channels to the world in all their glory on your site. One thing you want to do however is combine those channels into one...

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »