News for hackers. Stuff that matters.

Kaylebor

Re:No Nat November: My Month Without IPv4 on Thursday December 05, 2024 @04:03AM (#42326344)
I live in Spain and use DIGI; they give me an IPv6 address. Granted, I have only tested this through IPv6-detecting websites so I do not know how good it actually is. The ISP itself is also reliable and cheap in my short experience with them.
Re:Kids Coding: Simple Java on Wednesday July 05, 2017 @05:39AM (#14701022)
I agree. I have been doing the Kotlin Koans (https://try.kotlinlang.org/#/Kotlin%20Koans/), and so far it has a lot of nice functionalities that make coding more fun.

Just the way it allows you to create an inmutable class in a single line already makes it way easier to read, while also saving time.

Compare Java:

  public class Person {
      private final String name;
      private final int age;

      public Person(String name, int age) {
          this.name = name;
          this.age = age;
      }

      public String getName() {
          return name;
      }

      public int getAge() {
          return age;
      }
  }
With Kotlin:

  data class Person(val name: String, val age: Int)