Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
Using CompletableFuture's execution to process http request asynchronously
-
Async Processing HttpRequest's using ExecutorCompletionService
-
Creating Stream (using StreamSupport API) from Spliterator by converting Iterator to Spliterator
-
Marker interface and it's uses
-
Zip and Unzip file using Java FileSystem api
-
A utility class to zip and unzip files and directories
-
Using ThreadMXBean get thread execution and monitoring related information for running threads in jvm
-
Implementing ObjectPool pattern to get any type object pooling
-
learning what is Runtime and Runtime environment and Java Runtime
-
learning about jvm internals and its architecture
-
Understating the internals of runtime, execution model, Application level virtualization, jre, jvm and compilation of java program
-
implementing custom annotations and check if its a class level or field level annotation.
-
Distributed unique id's generator based on device MAC address and epoch time and supplier
-
A python like generator implementation using custom Iterator, Thread and ThreadGroup
-
Converting LocalDateTime to UTC and vice versa with respect to timezone and Day Light saving time.
-
Checked exceptions and unchecked exceptions and use case
-
How to enable disable features for paid and unpaid users using feature toggle pattern
-
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
-
Pair behavior in java
-
Solutions of Advent of Code 2021 Day02 in Java, Rust and GO
-
Inspecting JVM runtime memory and available processor count with Runtime.getRuntime().
-
Solutions of Advent of Code 2021 Day 01 in Java, Rust and GO
-
Getting a programmer joke asynchronously with CompletableFuture, HttpClient, and Jackson.
-
Using Objects.equals() when one of the values may be null.
-
Compressing and decompressing text with Deflater and Inflater.
-
Exploring a generator-style approach in Java with Supplier and IntStream.generate().
-
Using ParameterizedTest and MethodSource to run the same file-presence test with different inputs.
-
Arrays.asList() and new ArrayList<>() both return lists, but they do not behave the same way.
-
Implementing a Unix pipe-like class in Java with Function composition.
-
Writing a method to retry another method execution, Using TimerTask's schedule() and scheduleAtFixedRate to check availability
-
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.
-
Removing nulls from list using Collections.singleton and Objects.isNull
-
TemporalAdjuster ofDateAdjuster implementation and DayOfWeek calculating the next working day with Bangla name.
-
Using stream of streams and flatmapping it to concat multiple streams
-
Optional.ifPresent and Optional.filter to log and filter the Scheduled Day according to holiday
-
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()
-
Stream.peek to get debug information and log it.
-
using Scanner.findAll to get all the download links from a json file.
-
Unicode decoding side effect.
-
Two interface having same signature default method causing to override them.
-
Batching files and moving them using intStream
-
Using stream parallel to add id to file names.
-
Using Collectors.groupingBy and Collectors.counting to get numbers of file present of a particular type
-
Files.walk() and functional interface to remove file extension from fileNames
-
Supplier, Consumer functional interface and httpclient to get and output Bitcoin info
-
Function is a functional interface that takes an input and gives an output. so functions can be chained.
-
Functional interface
-
I always liked string interpolation in JS.
-
Today i found out that string declared with "" are placed in string constant pool while with new keyword its in heap.
-
A corrected learning note about for-loop and foreach-loop performance, including why the original timing test was not a valid Java benchmark.