← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 105
  1. Using CompletableFuture's execution to process http request asynchronously

  2. Async Processing HttpRequest's using ExecutorCompletionService

  3. Creating Stream (using StreamSupport API) from Spliterator by converting Iterator to Spliterator

  4. Marker interface and it's uses

  5. Zip and Unzip file using Java FileSystem api

  6. A utility class to zip and unzip files and directories

  7. Using ThreadMXBean get thread execution and monitoring related information for running threads in jvm

  8. Implementing ObjectPool pattern to get any type object pooling

  9. learning what is Runtime and Runtime environment and Java Runtime

  10. learning about jvm internals and its architecture

  11. Understating the internals of runtime, execution model, Application level virtualization, jre, jvm and compilation of java program

  12. implementing custom annotations and check if its a class level or field level annotation.

  13. Distributed unique id's generator based on device MAC address and epoch time and supplier

  14. A python like generator implementation using custom Iterator, Thread and ThreadGroup

  15. Converting LocalDateTime to UTC and vice versa with respect to timezone and Day Light saving time.

  16. Checked exceptions and unchecked exceptions and use case

  17. How to enable disable features for paid and unpaid users using feature toggle pattern

  18. Using maven-enforcer plugin and gradle constraints to ban already vulnerable libs in maven or gradle project or from any other dependencies as transitive dependencies

  19. Pair behavior in java

  20. Advent of Code Day 02

    Solutions of Advent of Code 2021 Day02 in Java, Rust and GO

  21. Inspecting JVM runtime memory and available processor count with Runtime.getRuntime().

  22. Advent of Code Day 01

    Solutions of Advent of Code 2021 Day 01 in Java, Rust and GO

  23. Getting a programmer joke asynchronously with CompletableFuture, HttpClient, and Jackson.

  24. Using Objects.equals() when one of the values may be null.

  25. Compressing and decompressing text with Deflater and Inflater.

  26. Exploring a generator-style approach in Java with Supplier and IntStream.generate().

  27. Using ParameterizedTest and MethodSource to run the same file-presence test with different inputs.

  28. Arrays.asList() and new ArrayList<>() both return lists, but they do not behave the same way.

  29. Implementing a Unix pipe-like class in Java with Function composition.

  30. Writing a method to retry another method execution, Using TimerTask's schedule() and scheduleAtFixedRate to check availability

  31. Using a implementation of supplier creating and caching a large file (any Class in this case that will initialize a very large object) lazily and thread-safe.

  32. Removing nulls from list using Collections.singleton and Objects.isNull

  33. TemporalAdjuster ofDateAdjuster implementation and DayOfWeek calculating the next working day with Bangla name.

  34. Using stream of streams and flatmapping it to concat multiple streams

  35. Optional.ifPresent and Optional.filter to log and filter the Scheduled Day according to holiday

  36. Some previous post had optional.get() in them which is not a best practice if its not with Optional.isPresent(). better than isPresent is to use orElse(), orElseGet(), orElseThrow()

  37. Stream.peek to get debug information and log it.

  38. using Scanner.findAll to get all the download links from a json file.

  39. Unicode decoding side effect.

  40. Two interface having same signature default method causing to override them.

  41. Batching files and moving them using intStream

  42. Using stream parallel to add id to file names.

  43. Using Collectors.groupingBy and Collectors.counting to get numbers of file present of a particular type

  44. Files.walk() and functional interface to remove file extension from fileNames

  45. Supplier, Consumer functional interface and httpclient to get and output Bitcoin info

  46. Function is a functional interface that takes an input and gives an output. so functions can be chained.

  47. Day 9: Functional interface

    Functional interface

  48. I always liked string interpolation in JS.

  49. Today i found out that string declared with "" are placed in string constant pool while with new keyword its in heap.

  50. A corrected learning note about for-loop and foreach-loop performance, including why the original timing test was not a valid Java benchmark.