Open in app

Sign In

Write

Sign In

Ben Parker
Ben Parker

Home

About

Jan 10, 2021

Java — Threading Basics — Futures & Callables

Overview A Future is an object in Java which represents the response from a Callable object after its been executed. Example You have a piece of logic which fetches and returns a String once complete. This takes 10 seconds to execute. …

2 min read

2 min read


Jan 9, 2021

Java — OAuth

A project at work, required me to develop code which would allow us to send http requests to an external gateway, in order to validate a product before we received and dispatched it. Previously, this functionality was implemented, however due to Brexit, the gateway changed from the European gateway, to…

3 min read

Java — OAuth
Java — OAuth

3 min read


Jan 9, 2021

Java — Threading Basics — Locks

In a single threaded application, locks are not something that you need to give any thought to. However, in multi-threaded environments, locks are an important concept to understand. Locks are a way of ensuring that a piece of code is only executed by only thread at a time. This is…

2 min read

2 min read


Jan 9, 2021

Java — Annotations

Annotations and the Reflection API are used together. Annotations do not alter the code in any way, they stand to add extra information in the form of meta-data. This meta-data is only useful is some application is actively searching for it. This is where the Reflection API is useful. You…

2 min read

2 min read


Jan 7, 2021

Java — Test Driven Development

What is TDD? Test driven development, known as TDD, is a style of programming which is based on the idea that you should write the test for a feature before you write any production code. The 2 rules which govern TDD best practices: Write only enough test code to produce…

4 min read

4 min read


Jan 7, 2021

Java — Generic Types

Overview Generic Types in Java are a way to define methods and classes which can handle any type of object you want to pass. These are mostly used in APIs so they are more flexible. Generic Methods In order to define a generic method, you need: Type Parameter — This…

1 min read

1 min read


Jan 7, 2021

Java — Reflection API

I’ve known Java for around 4 years now. I’ve been steadily improving my skills but there are some features of the language that I have hardly ever touched. Partly due to laziness, but mostly due to having a day job that doesn’t require me to know them in any great…

2 min read

2 min read

Ben Parker

Ben Parker

Following
  • Debdutta Pal

    Debdutta Pal

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech