Go back N and Selective retransmission are 2 methods of continuous ARQ or Automatic Repeat Request. Here is a comparison between the two concepts along with a simple demonstration.

Go Back N Demonstration:

Selective retransmission demonstration:

Cheers!

--

--

Source: https://www.pandaandpolarbear.com

When debugging a program in the popular IDE IntelliJ, you may have used the call stack links which conveniently conveniently takes you to the corresponding class and line of code. But when you receive a stack trace from an external party (E.g. customer bug report) you would always want to easily analyse the stack trace in relation to your source code instead of manually following the files and line numbers.

IntelliJ’s Stack Trace Analyser is the tool that will save your life at a time like this.

  1. Copy the stack trace
  2. In IntelliJ, select “Analyze” from the main menu and then click “Stack trace or thread dump…
  3. Most probably, the copied trace will already be pasted, but if not, paste it.
  4. Click OK

References: https://www.jetbrains.com/help/idea/analyzing-external-stacktraces.html

Hope you learned something today! Cheers!

--

--

Hi all!

Parameterized tests are extremely useful when you need to test a series of inputs against the same functionality. JUnit offers Parameterized class that facilitates this purpose.

As usual, let’s go through an example.

Assume you have a simple add method that takes 2 Integers and returns their sum…

--

--