Programming

Home Software Programming

Haskell: List Comprehension; Generators, Guards, Examples

Being able to manipulate lists is really important in any language. Haskell isn't as difficult as it may seem at first. I think the majority of...

Haskell: Polymorphic Types (Using a, [a]) & Basic Recursion Introduction

Polymorphic types are types that are "universally quantified in some way over all types". What a mouthful. Basically, it makes it so we can use a...

Haskell Beginner Tutorial: Installing, First Program, Running, Basic Error Handling

Haskell, unlike most the more common languages, is a declarative programming language. So, the way we write programs in haskell is a tad different to what...

Haskell: How To Rewrite The “Last” Function from Scratch

Just finished a Computer Science lecture today, and two of the main questions that stumped me in our lab tasks were on rewriting the...

A Basic Overview of PHP OOP (Object-Oriented Programming)

PHP OOP
OOP consists of programming languages that manipulate Objects. They tend to use data more than logic. What are some advantages of OOP? ...

Java GUI Tutorial: Swing, JFrame, JPanel, JButton, FlowLayout …

Graphical user interfaces are the quintessential part of any commercially available software. Could you imagine buying Microsoft Word if you had to input via command line? I...

The Difference Between Method Overloading & Overriding in Java!

Overloading is the implementation of two more methods in the same class with different parameters (or arguments). Overriding is the implementation of two methods that...

How Many Constructors Can A Class Have (Overloading Examples)?

Classes in Java can have as many constructors as you like. Using "overloading" you can create an Object with different parameters. You can have...

The Difference Between Instance & Static Methods in Java

An instance method is a method used only for THAT VERY INSTANCE. A static method is FOR EVERY INSTANCE. Here's a little code snippet to...

Pass A Text File to Scanner, Then Read It, in Java

The Scanner is super useful for taking user inputs. However, you might want to pass a text file into it. I'm going to show you...

Implicit & Explicit Parameters in Java, Explained

We've got the funky names for the things in Java. Implicit and explicit parameters. What the hell is that. As a programmer you've probably...

What Is An Interface in Java?

Java contains Interfaces, Classes and Objects. Distinguishing between each can be slightly difficult at first, but I will explain exactly what a Java interface...