archived some old posts
All checks were successful
Jenkins
Web/pipeline/head This commit looks good

This commit is contained in:
Ell 2023-03-01 18:43:46 +01:00
parent 5e60b8feba
commit 24ed853a7e
7 changed files with 15 additions and 8 deletions

View file

@ -2,8 +2,9 @@
layout: blog layout: blog
title: "☕ Java Tutorial, Part 1: Hello World" title: "☕ Java Tutorial, Part 1: Hello World"
description: The first part of my post series for programming beginners where I explain how to write code in Java. description: The first part of my post series for programming beginners where I explain how to write code in Java.
tags: [Java Tutorials, Featured] tags: [Programming]
discuss: https://twitter.com/Ellpeck/status/1182080078827737088 discuss: https://twitter.com/Ellpeck/status/1182080078827737088
archived: true
--- ---
So you want to learn to code. In my opinion, a good language for beginners is Java, because it's a rather easy to understand language, and it's cross-platform, meaning it can run on any operating system without the need for the programmer (you!) to change anything based on the platform. Also, Java is object-oriented (more on that later), meaning it's pretty good for writing any sort of simple or complex program.[^1] So you want to learn to code. In my opinion, a good language for beginners is Java, because it's a rather easy to understand language, and it's cross-platform, meaning it can run on any operating system without the need for the programmer (you!) to change anything based on the platform. Also, Java is object-oriented (more on that later), meaning it's pretty good for writing any sort of simple or complex program.[^1]

View file

@ -2,8 +2,9 @@
layout: blog layout: blog
title: "☕ Java Tutorial, Part 2: Intro to Conditions and Loops" title: "☕ Java Tutorial, Part 2: Intro to Conditions and Loops"
description: The second part of my post series for programming beginners. This one is all about conditions and loops. description: The second part of my post series for programming beginners. This one is all about conditions and loops.
tags: [Java Tutorials] tags: [Programming]
discuss: https://twitter.com/Ellpeck/status/1182354544707198976 discuss: https://twitter.com/Ellpeck/status/1182354544707198976
archived: true
--- ---
If you're reading this, then I assume you have already read the first part of this tutorial series, in which we covered setting up a program, making it print "Hello World" to the console, as well as how to declare and set the values of variables. If you're reading this, then I assume you have already read the first part of this tutorial series, in which we covered setting up a program, making it print "Hello World" to the console, as well as how to declare and set the values of variables.

View file

@ -2,8 +2,9 @@
layout: blog layout: blog
title: "☕ Java Tutorial, Part 3: (Static) Methods" title: "☕ Java Tutorial, Part 3: (Static) Methods"
description: In this Java tutorial for beginners, we cover what (static) methods, parameters and return types are. description: In this Java tutorial for beginners, we cover what (static) methods, parameters and return types are.
tags: [Java Tutorials] tags: [Programming]
discuss: https://twitter.com/Ellpeck/status/1182775985885847558 discuss: https://twitter.com/Ellpeck/status/1182775985885847558
archived: true
--- ---
I've been thinking about how to structure this tutorial a lot, and I decided to teach you all about methods *before* I get into object orientation, so you'll have to wait a little while longer before we get into the real nitty-gritty. To understand this one, you should've already read and understood tutorials 1 and 2. If you haven't, you can get to them by clicking the "Previous Post" button in the navigation bar. I've been thinking about how to structure this tutorial a lot, and I decided to teach you all about methods *before* I get into object orientation, so you'll have to wait a little while longer before we get into the real nitty-gritty. To understand this one, you should've already read and understood tutorials 1 and 2. If you haven't, you can get to them by clicking the "Previous Post" button in the navigation bar.
@ -180,4 +181,4 @@ So yea, that's pretty much everything important there is to know about (static)
As a little exercise, you might want to create some methods with different return types and different parameters and call them. Have some fun! As a little exercise, you might want to create some methods with different return types and different parameters and call them. Have some fun!
I hope you enjoyed reading, and of course: Happy coding! I hope you enjoyed reading, and of course: Happy coding!

View file

@ -2,8 +2,9 @@
layout: blog layout: blog
title: "☕ Java Tutorial, Part 4: Classes and Objects" title: "☕ Java Tutorial, Part 4: Classes and Objects"
description: In this Java tutorial for beginners, we cover the basics of creating classes with a constructor, some fields and some methods and creating objects of them. description: In this Java tutorial for beginners, we cover the basics of creating classes with a constructor, some fields and some methods and creating objects of them.
tags: [Java Tutorials] tags: [Programming]
discuss: https://twitter.com/Ellpeck/status/1183857460660101133 discuss: https://twitter.com/Ellpeck/status/1183857460660101133
archived: true
--- ---
So you've gotten far enough into Java now that you'll finally be able to learn about what this "object orientation" jazz is that everyone keeps talking about. I feel like this is a somewhat complicated topic to explain, so bear with me. So you've gotten far enough into Java now that you'll finally be able to learn about what this "object orientation" jazz is that everyone keeps talking about. I feel like this is a somewhat complicated topic to explain, so bear with me.

View file

@ -2,8 +2,9 @@
layout: blog layout: blog
title: "☕ Java Tutorial, Part 5: Things I Left Out So Far" title: "☕ Java Tutorial, Part 5: Things I Left Out So Far"
description: In this Java tutorial for beginners, we cover some shorthands, some more data types, the difference between pass-by-reference and pass-by-value, null, as well as arrays and lists. description: In this Java tutorial for beginners, we cover some shorthands, some more data types, the difference between pass-by-reference and pass-by-value, null, as well as arrays and lists.
tags: [Java Tutorials] tags: [Programming]
discuss: https://twitter.com/Ellpeck/status/1184894859133509632 discuss: https://twitter.com/Ellpeck/status/1184894859133509632
archived: true
--- ---
After that complicated stuff we did in the last tutorial, how about we take it down a notch in this one and talk about some additional things that I haven't mentioned this far, but that will still be very useful to you as a programmer. Most of these things won't really have much connection to each other, but I'll give you an example at the end of this tutorial that combines some of them into a single use case. After that complicated stuff we did in the last tutorial, how about we take it down a notch in this one and talk about some additional things that I haven't mentioned this far, but that will still be very useful to you as a programmer. Most of these things won't really have much connection to each other, but I'll give you an example at the end of this tutorial that combines some of them into a single use case.

View file

@ -2,8 +2,9 @@
layout: blog layout: blog
title: "☕ Java Tutorial, Part 6: Inheritance" title: "☕ Java Tutorial, Part 6: Inheritance"
description: In this Java tutorial for beginners, we cover classes extending other classes and the instanceof keyword. description: In this Java tutorial for beginners, we cover classes extending other classes and the instanceof keyword.
tags: [Java Tutorials] tags: [Programming]
discuss: https://twitter.com/Ellpeck/status/1189904487722487809 discuss: https://twitter.com/Ellpeck/status/1189904487722487809
archived: true
--- ---
For this tutorial, let's expand on the car dealership example from the end of the last tutorial: You have a car dealership, and you want to expand it to sell various other types of motor vehicles; let's say... motorbikes and trucks as well. Obviously, these different kinds of vehicles all have different properties: A motorbike requires the use of a helmet, and an important piece of information about a truck might be how big its storage area is. For this tutorial, let's expand on the car dealership example from the end of the last tutorial: You have a car dealership, and you want to expand it to sell various other types of motor vehicles; let's say... motorbikes and trucks as well. Obviously, these different kinds of vehicles all have different properties: A motorbike requires the use of a helmet, and an important piece of information about a truck might be how big its storage area is.

View file

@ -2,8 +2,9 @@
layout: blog layout: blog
title: "☕ Java Tutorial, Part 7: Overriding Methods" title: "☕ Java Tutorial, Part 7: Overriding Methods"
description: In this Java tutorial for beginners, we cover overriding methods, calling superclass methods and toString(). description: In this Java tutorial for beginners, we cover overriding methods, calling superclass methods and toString().
tags: [Java Tutorials] tags: [Programming]
discuss: https://twitter.com/Ellpeck/status/1199339701640945664 discuss: https://twitter.com/Ellpeck/status/1199339701640945664
archived: true
--- ---
So it's been a hot minute since the last tutorial, and I apologize for that. However, it seems like there are some people that actually use these tutorials to properly learn Java, and so I didn't want to leave you all hanging. So it's been a hot minute since the last tutorial, and I apologize for that. However, it seems like there are some people that actually use these tutorials to properly learn Java, and so I didn't want to leave you all hanging.