Remove Bytes Remove Coding Remove Java Remove Scala
article thumbnail

A guide to UDP in Scala with FS2

Rock the JVM

The UDP header is fixed at 8 bytes and contains a source port, destination port, the checksum used to verify packet integrity by the receiving device, and the length of the packet which equates to the sum of the payload and header. Setting Up Let’s create a new Scala 3 project and add the following to your build.sbt file. isOpen ()) {.

Scala 90
article thumbnail

Two-Factor Authentication in Scala with Http4s

Rock the JVM

If you want to master the Typelevel Scala libraries (including Http4s) with real-life practice, check out the Typelevel Rite of Passage course, a full-stack project-based course. HMAC-based One Time Password (HOTP) The H in HOTP stands for HMAC (Hash-based Message Authentication Code). We can now use hotp to generate the code.

Scala 92
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

A Functional Load Balancer with Scala, Http4s and Cats Effect

Rock the JVM

Project Structure We will use Scala 3.3.0, Using a dedicated Url type makes the code more self-explanatory and provides a clear and meaningful abstraction for URLs. and several monumental libraries to complete our project. val MunitVersion = "0.7.29" val LogbackVersion = "1.4.11" val MunitCatsEffectVersion = "1.0.7" currentOpt.

Scala 104
article thumbnail

15 Essential Java Full Stack Developer Skills in 2024

Knowledge Hut

Java, as the language of digital technology, is one of the most popular and robust of all software programming languages. It is ideal for cross-platform applications because it is a compiled language with object code that can work across more than one machine or processor. All programming is done using coding languages.

Java 98
article thumbnail

The Ultimate Guide to Java Virtual Threads

Rock the JVM

Riccardo is a proud alumnus of Rock the JVM, now a senior engineer working on critical systems written in Java, Scala and Kotlin. Version 19 of Java came at the end of 2022, bringing us a lot of exciting stuff. First, we need to use a version of Java that is at least 19. Another tour de force by Riccardo Cardin.

Java 145
article thumbnail

Apache Spark vs MapReduce: A Detailed Comparison

Knowledge Hut

quintillion bytes of data are created every single day, and it’s only going to grow from there. MapReduce is written in Java and the APIs are a bit complex to code for new programmers, so there is a steep learning curve involved. It also supports multiple languages and has APIs for Java, Scala, Python, and R.

Scala 96
article thumbnail

The Big Kotlin Tutorial

Rock the JVM

By the end of this course, expect to write 300-400 lines of code. It’s a jam-packed, long-form, hands-on course where you’ll write not hundreds but thousands of lines of code from scratch in dozens of examples and exercises, including an image processing project that you can use for your own pictures.

Scala 86