How to Program with Java Podcast artwork

How to Program with Java Podcast

112 episodes - English - Latest episode: 3 months ago - ★★★★★ - 94 ratings

Learn how to program using the Java programming language. This podcast will teach you step by step how to use the Java programming language to create your own applications or web applications!

Technology Education How To java tutorial how program learn code programming
Homepage Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed

Episodes

EP 62: Introduction to HTML

October 29, 2014 14:16 - 34 minutes - 32.9 MB

I’m so ridiculously excited to be introducing a whole new aspect of programming. Over the next few months I will be posting new articles on the topics of HTML, Javascript and jQuery. These are all technologies that you can use to create your very own interactive website. The really cool thing about building websites, is that you can leverage your existing knowledge of Java to create ever MORE powerful websites. But let’s not get ahead of ourselves, for now we’ll focus first on HTML, then we’...

HTML, CSS and JavaScript - Oh My!

October 20, 2014 15:08 - 40 minutes - 38.9 MB

The presentation layer is one of the three main layers in object-oriented programming. The three main layers include: Presentation Layer Business Layer Data Layer Now, these three layers are typically related to enterprise web applications. It’s a design pattern used to help separate your code out in three distinct areas that (if need be) can easily be switched out with another programming language or technology. So if you keep all of your presentation layer code in one area of you...

Hibernate Group By

October 10, 2014 15:27 - 43 minutes - 41.1 MB

In our last Hibernate lesson, you learned how to fix duplicate data from hibernate queries. In this lesson we’re going to focus on some of theaggregate functions that can be used with Hibernate, and of course that means diving into theGroup By clause. What’s important to note is that Hibernate doesn’t ever refer to it as group by, instead they use the term projections. So, armed with this knowledge, let’s jump into the lesson! Grouping Data with Hibernate In our examples, I’m...

Fixing Duplicate Data from Hibernate Queries

September 15, 2014 20:22 - 31 minutes - 30.7 MB

How to Fix Duplicate Data from Hibernate Queries This problem was the bane of my existence when I first started using Hibernate because I had no idea where the problem was coming from. If you’re executing a query and finding that you have a bunch of duplicate records and haven’t a clue why, then you’re in the right place. You see the problem is typically caused by having left joins (or optional joins) in your objects. When you have a base object, like say User and it joins to anoth...

Hibernate Persistence Life Cycle

September 05, 2014 21:21 - 42 minutes - 40.2 MB

Now it’s time to dive into the nitty gritty of Hibernate’s mysterious inner workings. I’m by no means an expert in Hibernate, but I do use it almost every day for my own projects, so I do know a thing or two about how it works. One topic that had me scratching my head for ages was the Hibernate life cycle. What I mean by the life cycle is the way Hibernate interacts with Java objects at certain points in the existence of said Java objects. Let’s start from the beginning… What th...

Fetch Type Lazy Vs Eager

August 27, 2014 20:27 - 29 minutes - 28.4 MB

What the heck is a Fetch Type? Great question! Hibernate is a very handy framework for removing your need to fully understand SQL, but it will force you to understand things such as joins. Joining two tables in SQL is the foundation of a relational database, as joins allow you to actually define relationships between tables (objects). Having said that, relationships are important to understand when talking about fetch types in Hibernate. This is the case because whenever you define...

Hibernate @ManyToMany Unidirectional and Bidirectional

August 22, 2014 00:41 - 53 minutes - 50.2 MB

Hibernate @ManyToMany Unidirectional The Many-to-Many relationship can be best described by example. The example we’re going to use is that of the relationship between an Author and a Book. Authors publish Books, and Books have Authors. Any one Author can publish many Books, and any one Book can be published by many Authors, so this is why it is a many to many relationship. Other examples of the many to many relationship are Students to Courses and Employees to Projects. Let...

Hibernate @OneToOne Unidirectional / Bidirectional

August 08, 2014 01:39 - 36 minutes - 34.9 MB

One-to-One Unidirectional Relationship Since you’ve already learned about the ins and outs of how unidirectional one-to-many and bidirectional one-to-many relationships work, it’s time to learn about the One-to-One relationships. We will start things off with the unidirectional One-to-One relationship and how it’s set up in Hibernate. First thing is first, you need to understand how a One-to-One relationship is actually set up in a database. Once you understand that the child table...

Hibernate @OneToMany Bidirectional Relationship

July 28, 2014 10:00 - 34 minutes - 32.9 MB

Since we’ve already learned about the unidirectional @ManyToOne relationship, we can now move on to talking about what a bidirectional relationship is like, when using Hibernate. The term “bidirectional” literally means “functioning in two directions”, which is the concept that we will apply in our relationships between two Java objects. When we have a bidirectional relationship between objects, it means that we are able to access Object A from Object B, and Object B from Object A. We can ap...

Mapping Relationships with Hibernate

July 23, 2014 14:05 - 55 minutes - 52.7 MB

In the past we have learned about database relationships, specifically the One-to-Many as well as the Many-to-Many and One-to-One and that was all good, great and grand… But now I want to talk about how to create those same relationships inside of Hibernate. Specifically, I want to focus on the One-to-Many relationship in Hibernate and how we go about mapping it out in our Java objects. But before we do, a word on unidirectional and bidirectional relationships. Unidirectional vs...

Hibernate - Creating Data Access Objects (DAOs)

July 15, 2014 15:29 - 59 minutes - 56.1 MB

Data Access Objects – What are they? Data Access Objects (or DAOs for short) are used as a direct line of connection and communication with our database. DAOs are used when the actual CRUD (CRUD = Create, Read, Update, Delete) operations are needed and invoked in our Java code. These data access objects also represent the “data layer” of our application. These objects are still just plain old Java objects that incorporate the use of some Hibernate annotations to give them the function...

Hibernate's most important annotation - @Entity

July 08, 2014 15:04 - 59 minutes - 56 MB

What You’ll Learn The focus of this podcast / blog post is to teach you how to create the connection between your Java objects and the SQL Database tables. Remember, the whole point of the Hibernate framework is for you to be able to write Java code that allows you to communicate with your database. When I say that the goal is to communicate with your database, what I mean is: Create the tables (if they’re not already there) that will represent your Java objects Give Java the abili...

Hibernate Persistence for Beginners

July 03, 2014 17:46 - 1 hour - 57.6 MB

What is a Persistence Framework? As the name implies, it has something to do with persisting things... this means that we're still talking about databases.  But what is it that we are persisting with this framework? Objects (of course) A persistence framework is something we use in Java to bridge the gap between Java and SQL. Hopefully we've gone through all of my previous tutorials and have learned a thing or two about Java and SQL.  But one thing I haven't taught you yet, is how to...

The SQL Subquery

June 25, 2014 22:58 - 48 minutes - 45.7 MB

The SQL Subquery Now that you’ve learned about SQL Joins, aggregate functionsand the group by keyword, it’s time we moved on to our final topic in our SQL tutorial series. Today you’ll be learning all about SQL Subqueries, how to use them and when you should use a SQL subquery. So, what is a subquery? First and foremost, let’s get the jargon out of the way. A subquery can also be referred to as a nested query. It’s just like having a nested if statement in your Java code. Essentiall...

SQL Group By

June 16, 2014 19:52 - 47 minutes - 44.7 MB

After having talked about all the SQL Aggregate functions, there’s one more topic that goes hand in hand with what we’ve already learned… The group by keyword. This particular keyword allows us to take a bunch of data and mash it all together into matching groups and then perform aggregate functions on those groups (like sum and avg). You might ask yourself why you’d want to “mash together” a bunch of data. The answer to this is best explained with an example, but let me try to put it...

SQL Aggregate Functions

June 05, 2014 16:01 - 32 minutes - 31.1 MB

In today’s podcast episode you’ll be learning all about the aggregate functions that exist in SQL. What the heck is an aggregate function? Well that’s what I’m going to try and teach you today, and I promise, it’s not a difficult concept to grasp. Just think of an aggregate function as a method that you’re calling that will process data in your database and return a value. Obviously the returned value will depend on which of the aggregate functions you choose to use. So that begs an o...

Database Joins

May 28, 2014 15:41 - 57 minutes - 54.2 MB

There are three categories of joins that you can make use of in SQL:   Inner Join   Outer Join   Cross Join   But before we dive into the categories of joins, we first need to have an understanding of what a join really is. Joins are used in SQL to bring together all the relevant data from multiple database tables.  Remember that we've broken data down into multiple tables and established relationships between the tables.   ... More via show notes: http://howtoprogramwithjava.c...

Enforcing Database Relationships Part II

May 23, 2014 17:45 - 55 minutes - 52.5 MB

In this SQL tutorial episode/post we’re going to learn how to enforce our SQL relationships that we’ve already learned about. We’re going to be tackling the one-to-one and many-to-many relationships and we’re going to learn how to write the code to enforce these relationships in our database. As outlined in the podcast, we are going to be focusing on the many-to-many relationship with the author and bookexample. Remember that one author can publish many books, and one book can be written...

Creating Database Tables in MySQL

May 14, 2014 06:00 - 1 hour - 58.7 MB

You’ve learned all about how to create sql queries to read, write, update and delete data… but you haven’t yet learned how to create the tables where you’ll be doing the reading, writing, updating and deleting. So that’s what today’s podcast is all about, be sure to click the play button above this to listen to the show and then follow along with the notes via http://howtoprogramwithjava.com/session44

Database Relationships: Many-to-Many and One-to-One

May 14, 2014 02:32 - 44 minutes - 41.9 MB

Show Notes available via: http://howtoprogramwithjava.com/session43   In this post we will be expanding on the topic of database relationships and touch on two that are less common but just as useful. Many-to-Many Relationship The many-to-many database relationship is used when you are in the situation where the rows in the first table can map to multiple rows in the second table… and those rows in the second table can also map to multiple (different) rows in the first table.   O...

Database Relationships – One to Many

December 12, 2013 21:49 - 32 minutes - 31.2 MB

We’ve talked about relational databases already, and we’ve learned why this type of database management really dovetails with the object oriented programming model. So now I want to dive into the specifics when it comes to relationships. What are the different types of relationships in SQL? There are three types of relationships you can have in SQL, they are: One-to-Many One-to-One Many-to-Many In this episode we are going to be focusing on the One-to-Many relationship as it’s the...

Database Terminology - Relationships, Joins and Keys

December 04, 2013 19:56 - 42 MB

Terminology It's the foundation when learning any new concepts.  In this episode of the "How to Program with Java Podcast" we will be talking about some new database terminology. One of the most important aspects of modern databases is the fact that they allow you to define relationships. Relationships between tables allow you to break data up into its individual "areas of interest".  But when you break the data up, you'll need to know how to put it back together.  This is accomplished...

CRUD Operations - Syntax for Interacting with your Database

November 28, 2013 20:48 - 55 minutes - 52.2 MB

What’s all this CRUD about? Create Read Update Delete This is the at the heart of all databases and SQL. A database essentially carries out these four operations over and over again for the duration of its existence. In this podcast, I talk about these four database operations in detail and the actual syntax that is used in a flavour of SQL known as MySQL.

Intro to Databases and SQL

November 13, 2013 21:07 - 41.1 MB

Ladies and gentlemen the time has come for you to start learning about Databases and SQL. In this episode I will talk about the very basics of databases and why it is they exist in the first place.  You'll learn things like: What exactly is a Database, and what ulitimate purpose does it serve? Why are modern databases referred to as relational databases? What a database does, day in and day out, it's sole purpose in life is essentially CRUD! How does SQL fit into the database equati...

Let's talk AJAX - It's not just for cleaning anymore!

November 07, 2013 15:06 - 32 minutes - 31.2 MB

AJAX (Asynchronous Javascript and XML) is a techonology used to create Rich Internet Applications (RIA).   If you're asking "what the heck does that mean!?"  You're in the right place In this podcast episode we will talk about the uses for AJAX and how it can lead to a much nicer web browsing experience for your Java web applications. What else will you learn about in this episode? The difference between an HttpRequest and an XMLHttpRequest Why it's annoying when your website has to...

Intro to Algorithms and Big-O Notation

October 30, 2013 15:23 - 54 minutes - 51.2 MB

An algorithm is essentially a well defined set of instructions that get carried out by a computer in an automated fashion to solve a problem.  A good example of this is to say "How would you tell a computer to figure out which of the 5 balls I've given to you is the heaviest (or lightest)".  In order to solve this "problem", you'll need to define a set of steps for the computer to carry out in order to reach a conclusion and solve the problem. Algorithms are very common in programming, as ...

Spring Security

October 23, 2013 15:22 - 49 minutes - 47.1 MB

Ever wondered how you could properly restrict access to certain parts of your web application?   Do you have an application that has a user registration page and a user login page? Spring Security is the answer if you have a web application created with the Spring Framework! Spring Security will restrict access to any URLs that point to your web application based on your custom configuration. Learn how in this week's How to Program with Java podcast.

Data Binding with Spring Framework

October 16, 2013 08:00 - 42 minutes - 40.7 MB

So, the Spring framework is a wonderful help for programmers, but sometimes it needs a bit of help.  It does a good job of trying to match fields on a webpage to Java objects (aka Java Beans), but sometimes when the "mapping" is complex, Spring needs our help. In this episode I will explain exactly how you can go about something known as "custom binding".  This process allows you to take any text from the presentation layer and convert/bind it to the appropriate Java object (Java Bean) on ...

Spring Framework - Fun with Controllers

October 09, 2013 19:59 - 55 minutes - 77.3 MB

In our last episode I talked about controllers and how they are used in Spring.  In this episode I will be diving even further into Controllers in the Spring Framework and I will talk about the different parameters that can be passed into each method within each Controller. For example, there are HttpServletRequest objects, Model objects as well as @RequestParam and @ModelAttribute annotations that can be used within your Controller's methods.  The beauty of the Spring framework is that yo...

Intro to the Spring Framework

August 15, 2013 01:41 - 49 minutes - 46.7 MB

Well, so far we've been focusing on a bunch of topics that align themselves around the Java programming language in general.  But now we're going to take things into a slightly new direction, we're going to be talking about the Spring Framework -- more specifically, Controllers and the Spring Framework. You see, my goal for this blog and podcast has been to not only teach you the Java programming language, but also teach you how you can build a web application.  So, this is the first step ...

Java Observer, Observable Design Pattern

July 26, 2013 22:26 - 40 minutes - 38.5 MB

Today let's talk about some design patterns, namely the Observer design pattern which can be used in Java.  Following the Oberser design pattern in Java is as easy as extending the Observable object and implementing the Observer interface for the appropriate objects.   Don't have a clue what the appropriate objects are?  Well then that's what this episode is all about!  You'll learn what the design pattern is, how it can be used, and how BIG companies have used it in their powerful framewo...

Interview w/ Self-Taught Programmer Troy Davis

June 20, 2013 23:05 - 1 hour - 70.2 MB

In this epsidoe of the How to Program with Java podcast, I talk with a self-taught programmer who has started up his own very successful marketing product based on his programming knowledge.  Troy was graduated with a degree that would have had him working as an audio engineer, but instead took a 180 and pursued his passion for tech and programming.  Now he's the big cheese (CTO) and living the dream.  Find out how he did it, and how YOU too can do it on this great podcast interview.

The Agile Development Methodology

May 29, 2013 15:52 - 42 minutes - 40.3 MB

If you've worked as a developer for a corporation, you've likely been exposed to the waterfall model of software development... If not, consider yourself lucky.  I've worked in this model before and it had its issues, but thankfully I was introduced to the Agile development methodology in the latter years of my career as an employee and I got a lot from the experience.  This podcast episode is dedicated to talking about the Agile methodology and recounts my experiences with it and how I went...

Alan Robbins - Self-taught Programmer Success Story

May 22, 2013 14:44 - 43 minutes - 41.8 MB

Alan Robbins is a self-taught programmer who dabbled with programming in college.  After not doing to well in the post-secondary system with respect to programming, he changed his major and graduated with a degree in Business Economics and a minor in Psychology and Philosophy. After graduating, he decided that he had a knack for programming (even if the "system" told him otherwise) so he ended up getting an entry level job as a programmer.  Since then, he's started up a couple of businesse...

The Software Development Life-Cycle

May 16, 2013 16:07 - 52 minutes - 49.4 MB

Knowing how to program with Java is only some of the battle when it comes to developing software, the other major part of the battle is knowing HOW to distribute the software.  There are entire schools of thought that surround the ways that you can release software, but in this podcast episode we will focus on two methodologies. The software development life-cycle is the broad term that defines methodologies like: Waterfall Model Agile Development Have a listen, get informed and happy ...

From self-taught programmer to self-made success story - Interview with John Sextro

May 08, 2013 08:00 - 45 minutes - 43.1 MB

Keeping on our theme of becoming a success story with programming as a self-taught programmer, I interview a successful self-taught programmer by the name of John Sextro.  As a seasoned programmer and agile coach with no degrees or diplomas, John made it to 'the big show' by impressing one of the gatekeepers of that coveted 'entry level programmer' position.  Find out how he managed to kick start his career in today's interview.

Getting a Job as a Self-Taught Programmer

May 03, 2013 15:00 - 38 minutes - 37.1 MB

Landing a job as a self-taught programmer is not impossible, and I will have an in-depth conversation about why this is the case.  I will talk about strategies like creating your own software product based on your own interests, then slapping that on your resume and impressing potential employers.  Finding programming contracts and getting paid to learn how to program and building up your marketable experience.  I will also cover how to meet people and get interviews ON THE SPOT so you can l...

Encapsulation and Final Keyword in Java

April 26, 2013 21:32 - 39 minutes - 38.2 MB

Learn all about one of the four major principles of Object Oriented Programming (encapsulation) as well as the "final" keyword.  In this episode I also dive into the popular topic of Java Certification.  Learn what certifications you can get, what you should do to prepare, as well as what materials I'd suggest picking up to give yourself the best chance of success!

Java Interview Question - Part II

April 19, 2013 21:40 - 38 minutes - 36.7 MB

In this session I will cover some additional Java interview questions that you should be able to answer.  I also cover some general tips that you should keep in mind when being interviewed (as it's not just these questions you'll need to be able to answer if you want to land the job).

Java Interview Questions Part I

April 12, 2013 13:57 - 45 minutes - 43.6 MB

This is part I of a series of episodes dedicated to common questions that are asked in entry level Java interview situations.  The questions covered in this episode are some basic questions that I uncovered across the internet (and there are even questions I've asked in an actual interview situation myself).  Enjoy!

Mocking in Java

March 29, 2013 05:00 - 45 minutes - 43.7 MB

In this episode you'll hear what mocking is all about and how it can be used to help you in your unit testing journey.  Mocking is all about testing chunks of code in solutide, without having any dependecies on other Objects (as this would sully your unit test).

Unit Testing in Java

March 21, 2013 16:57 - 38 minutes - 37.2 MB

Interested in starting your coding career? I'm now accepting students into an immersive programming Bootcamp where I guarantee you a job offer upon graduation. It is a 6 month, part-time, online Bootcamp that teaches you everything you need to know to get a job as a Java developer in the real-world. You can learn more via https://www.coderscampus.com/bootcamp In this episode... This is a very important topic of discussion, as it's probably the most important activity you can partici...

Casting in Java

March 14, 2013 21:26 - 30 minutes - 29.7 MB

Interested in starting your coding career? I'm now accepting students into an immersive programming Bootcamp where I guarantee you a job offer upon graduation. It is a 6 month, part-time, online Bootcamp that teaches you everything you need to know to get a job as a Java developer in the real-world. You can learn more via https://www.coderscampus.com/bootcamp In this episode... Trevor Page takes you through all the nail biting action that is casting in Java.  This episode will teach...

Custom Sorting Algorithms in Java

March 07, 2013 14:18 - 42 minutes - 40.8 MB

Interested in starting your coding career? I'm now accepting students into an immersive programming Bootcamp where I guarantee you a job offer upon graduation. It is a 6 month, part-time, online Bootcamp that teaches you everything you need to know to get a job as a Java developer in the real-world. You can learn more via https://www.coderscampus.com/bootcamp In this episode... Trevor Page teaches you exactly how you would go about implementing a custom sorting algorithm for your Co...

Constructors in Java

March 01, 2013 03:43 - 25 minutes - 24.6 MB

Interested in starting your coding career? I'm now accepting students into an immersive programming Bootcamp where I guarantee you a job offer upon graduation. It is a 6 month, part-time, online Bootcamp that teaches you everything you need to know to get a job as a Java developer in the real-world. You can learn more via https://www.coderscampus.com/bootcamp In this episode... Constructors are used to initialize Objects in Java.  These are not mandatory to use, but anytime you've g...

Packages in Java

February 21, 2013 01:05 - 28 minutes - 27.8 MB

Interested in starting your coding career? I'm now accepting students into an immersive programming Bootcamp where I guarantee you a job offer upon graduation. It is a 6 month, part-time, online Bootcamp that teaches you everything you need to know to get a job as a Java developer in the real-world. You can learn more via https://www.coderscampus.com/bootcamp In this episode... Did you know Java allows you to organize all of your files in folders for a "neat" programming environment...

Regular Expressions in Java

February 13, 2013 09:00 - 39 minutes - 37.7 MB

Interested in starting your coding career? I'm now accepting students into an immersive programming Bootcamp where I guarantee you a job offer upon graduation. It is a 6 month, part-time, online Bootcamp that teaches you everything you need to know to get a job as a Java developer in the real-world. You can learn more via https://www.coderscampus.com/bootcamp In this week's episode I will cover the topic of regular expressions in Java.  This topic came as a request from a listener, so...

Collections in Java

February 07, 2013 13:15 - 44 minutes - 42 MB

Interested in starting your coding career? I'm now accepting students into an immersive programming Bootcamp where I guarantee you a job offer upon graduation. It is a 6 month, part-time, online Bootcamp that teaches you everything you need to know to get a job as a Java developer in the real-world. You can learn more via https://www.coderscampus.com/bootcamp   In this episode of the How to Program with Java podcast, I will be covering the topic of Collections.  What is a Collection...

Finally and StackTrace in Java

January 31, 2013 20:09 - 45 minutes - 42.9 MB

Interested in starting your coding career? I'm now accepting students into an immersive programming Bootcamp where I guarantee you a job offer upon graduation. It is a 6 month, part-time, online Bootcamp that teaches you everything you need to know to get a job as a Java developer in the real-world. You can learn more via https://www.coderscampus.com/bootcamp   In this week's episode of the How to Program with Java Podcast, we talk about the last important piece of Java Exceptions, ...

Exceptions in Java

January 19, 2013 02:16 - 33 minutes - 32.4 MB

Interested in starting your coding career? I'm now accepting students into an immersive programming Bootcamp where I guarantee you a job offer upon graduation. It is a 6 month, part-time, online Bootcamp that teaches you everything you need to know to get a job as a Java developer in the real-world. You can learn more via https://www.coderscampus.com/bootcamp In this episode You will learn what the Java Exception handling framework is and how it works with a few example scenarios. ...

Twitter Mentions

@programwithjava 1 Episode