Java’s new yield keyword makes it easier to provide a returned result from switch statements. We look at how it works and how it can help ensure we cover all possible cases.
Alex Tighe is a senior software engineer. He has a wide range of experience developing software for everything from experimental neuroscience to NASA satellite image processing to global investment banking software. In his free time, he enjoys reading, traveling, and building Lego sets.
Here's what I've written (so far):
Baeldung on Java
- Spring Boot (1)
- Java (1)
Spring can load YML into memory for us, making it easy to inject data into our running application. We look at how to split that YML across multiple files, rather than keep it all in a single application.yml.
Baeldung on Linux
- Processes (3)
- Files (3)
- Administration (3)
- Scripting (2)
- File Viewing (2)
- Filesystems (1)
- File Editing (1)
Learn how to add a vertical split in a region in a GNU screen session.
Learn how to limit the output of the grep command in Linux to isolate the text you’re looking for.
We can search for text within vim and see highlighting for all occurrences. We look at a few ways to clear this highlight.
Learn how to can clear logs and configure the system not to keep them around for too long.
The mktemp command can help us create a temporary file or directory in the correct location on a Linux system. We look at how it works and some tips for using it.
Learn multiple ways to write the contents of a Bash variable to a file in Linux.
We may sometimes wish to calculate the size of directories in our filesystem. We explore how to use the du command to achieve some common use cases.
When we use grep to filter the results of ps, it often finds itself as well as the desired process. We discover a couple of tricks to avoid this happening.
Learn how to kill a detached GNU screen session from the command line.
Learn a common way to store the PID using a .pid file and an example of how you would use it
Working with multiple terminals on Linux can get hard to manage, especially setting up the connections each time. The screen utility solves that for us.
Learn how to use wc to count lines, words, or even characters in a file.