Making Your Jars from the Command Line

Image for post
Image for post
“Jars of Clay” by ricky_artigas is licensed under CC BY 2.0

JAR. JAva aRchive. This is a file format that allows you to package your Java code into a single file format. This file format can be be used for storage or it can be runnable. Runnable meaning, with the click of a button it will launch your application (just like those icons on your desktop).

Having a JAR file provides a simple way for us to package our code. It comes inbuilt with compression to reduce the size of code and makes it easier to transfer code across mediums due to the file being a smaller singular one.

JARs can…


Merge multiple PDF files with a simple script

Code on a laptop
Code on a laptop
Photo by Christopher Gower on Unsplash.

Is it just me? I like to try cool, fun stuff in Python. One of the most useful programs I have ever written is a PDF merger. The inspiration came as a result of needing to combine several PDFs together all at once without overriding any existing PDF resource.

Let’s Do It Ourselves!

To make our life easier, I will be using the PyPDF2 library. The GIF below exhibits the process of installing the library using the pip install PyPDF2 command. The PyPDF2 library handles all the intricacies of merging the PDF files. …


Explore the Feign client and other useful libraries

Code on a laptop
Code on a laptop
Photo by Goran Ivos on Unsplash.

Have you ever had the trouble of making an HTTP request to several different Application Programming Interfaces (APIs)? Wouldn’t it be easier to combine only what you need from these different APIs into a single API?

Creating a middleware can solve this issue. A software application middleware allows us to have a single customized source of data. One of the major benefits of having a middleware is that it connects many different products and services together in a shared system. So, what exactly is a middleware? According to Microsoft Azure, a middleware is a software operating as a hidden translation…


Learning How to Run Java using Only the Command Line

Image for post
Image for post
Photo by Marissa Anderson with required license for use

I don’t know if it’s how I was taught Java but my go-to method of running it is through the terminal. I enjoy the “hacker vibe” you get from being able to just use the keys on your keyboard to control the execution of a program.

In this article, I will be sharing how you can run your Java programs inside the command line.

Requirements:

  • Java — This must be installed and should be set as an environment variable.

Note: This demonstration will be done on a windows machine.

Running Your Programs In The Terminal

Running your Java programs from the command line gives an appreciation to…


Building an API in Spring that connects to a MariaDB database

A person standing in a foggy field.
A person standing in a foggy field.
Photo by Jakub Kriz on Unsplash

Spring is a framework that allows you to create enterprise-level applications. The problem arose where it took many configurations to get an initial application up. This is where Spring Boot came along.

“Spring Boot allows you to abstract (hide) these configurations. So you can get a preconfigured template application.” — From part 1 of this series

Here in this article, you’ll be shown how to create a Rest API in Spring Boot. This API will be a CRUD (create, read, update, delete) application that connects to a SQL database — in this case, a MariaDB database.

If you’re new to…


The basics of API development in Spring Boot

Spring Boot programming language logo
Spring Boot programming language logo
Image credit: Sprint Boot

The world of back-end frameworks is much more uncommon than that of front-end frameworks. You always hear about JavaScript and its flavors such as React, Vue, and Angular (cough cough). On YouTube, the number of front-end videos multiplies by the second, and for a lot of people including myself, the first back-end language we might hear about is PHP. It took me a while to realize that Python can do similar things to Flask and Django. But again, I did not see these flooding my notifications like JavaScript and general Python and Java languages.

When browsing job descriptions, especially for…


Why is it necessary?

the statement if_name_==’_main_’:
the statement if_name_==’_main_’:
Photo by author generated from carbon

You might have seen this one before: the syntax which often gets ignored because it doesn’t seem to hinder the execution of your code. It may not seem necessary, but that’s only if you’re working with a single Python file.

Let’s Get Right Into It!

Let’s start out by deconstructing the statement from left to right. We already know what an if statement is; however, the most important part of the statement are the two things being compared.

Let’s start with __name__ .This is used to denote the name of the file that is currently being run, but there is a trick to this. …


Populating a MySQL Database with Dummy Data using Pandas

Image for post
Image for post
Photo by aitoff from pixabay

In this article we’re going to demonstrate how to generate dummy data and input for a MySQL database. Majority of the times we need to create a database to test some software that we’ve built. To do this, we can use Structured Query Language (SQL) to create a mock database system. However, problems may arise if we want to test hundreds or even thousands of records. There is definitely no way we could write that many insert statements into our SQL scripts to meeting our testing deadlines for product deployment, that would be too tedious and time consuming.

To help…


That can save you a lot of time !

Image for post
Image for post

Using python over the years, I came across some useful features that would have saved me a lot of time if I had known about them a little bit earlier. These little python gems can help keep your code more DRY( Do Not Repeat Yourself) and clean.

By the time you are finished with this article, I can guarantee you that you will be using some of these features in your very own python programs.

Note: You can use any IDE or text editor that you are familiar with ( python’s…


Creating unit test in python

A woman coding on her laptop
A woman coding on her laptop

As developers or programmers, call yourself anyone. As long as you write code there is often one thing that gets overlooked. Testing. Testing is that part of development where you’re suppose to rigorously test your applications to ensure that they meet the required functionalities.

Let’s start of with why we even do testing in the first place:

  1. The need for less manual testing. Because the test cases are pre-written, there is no real reason to conduct manual testing anymore. Most times, especially with large applications you have to run through a lot of stages in the software to test if…

Jordan Williams

Enjoys creating software that make tasks simpler. Always trying to gain new knowledge and expertise.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store