Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pivovarit/articles
Code snippets for articles posted at 4comprehension.com
https://github.com/pivovarit/articles
functional-programming java kotlin scala
Last synced: 10 days ago
JSON representation
Code snippets for articles posted at 4comprehension.com
- Host: GitHub
- URL: https://github.com/pivovarit/articles
- Owner: pivovarit
- License: apache-2.0
- Created: 2017-08-22T07:39:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-10T02:23:12.000Z (27 days ago)
- Last Synced: 2024-10-13T15:43:34.459Z (24 days ago)
- Topics: functional-programming, java, kotlin, scala
- Language: JavaScript
- Size: 2.11 MB
- Stars: 131
- Watchers: 12
- Forks: 37
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Articles
Code snippets for articles posted at 4comprehension.com provided "as-is" and organized using the _one-top-level-module-per-series_ strategy.[Full Archive](https://4comprehension.com/archive/)
- [Bypassing Kotlin’s Null-Safety](https://4comprehension.com/kotlin-null-nonsafety/) [(snippets)](https://github.com/pivovarit/articles/tree/master/kotlin-null-nonsafety)
- [Maintaining PriorityQueue Order with Java Streams](https://4comprehension.com/maintaining-priorityqueue-order-with-java-streams/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-priorityqueue-stream-order)
- [Sneakily Throwing Exceptions in Lambda Expressions in Java](https://4comprehension.com/sneakily-throwing-exceptions-in-lambda-expressions-in-java/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-sneaky-throws-lambda)
- [Hamming Error Correction with Kotlin Series](https://4comprehension.com/hamming-error-correction-with-kotlin-part-1/) [(snippets)](https://github.com/pivovarit/articles/tree/master/hamming-error-correction)
- [A Kotlin Type-Inference Puzzler](https://4comprehension.com/kotlin-type-inference-puzzler/) [(snippets)](https://github.com/pivovarit/articles/tree/master/kotlin-type-inference)
- [Kotlin: Beware of Java Stream API Habits](https://4comprehension.com/kotlin-beware-of-java-stream-api-habits/) [(snippets)](https://github.com/pivovarit/articles/tree/master/kotlin-collections)
- [Leveraging Lambda Expressions for Lazy Evaluation in Java](https://4comprehension.com/leveraging-lambda-expressions-for-lazy-evaluation-in-java/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-lazy-initialization)
- [Effectively Sealed Classes in Java](https://4comprehension.com/effectively-sealed-classes-in-java/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-sealed-classes)
- [CompletableFuture Timeouts in Java](https://4comprehension.com/completablefuture-timeout/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-completable-future-timeouts)
- [Implementing a Sliding Window Stream/Spliterator in Java](https://4comprehension.com/sliding-window-stream-spliterator-in-java/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-sliding-window-stream)
- [The Ultimate Guide to the Java Stream API groupingBy() Collector](https://4comprehension.com/the-ultimate-guide-to-the-java-stream-api-groupingby-collector) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-advanced-groupingby)
- [Java 11 String API Updates](https://4comprehension.com/java-11-string-api-updates) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-11-string-api-updates)
- [Java 10 Immutable/Unmodifiable Stream API Collectors](http://4comprehension.com/java-immutable-unmodifiable-stream-api-collectors) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-immutable-collectors)
- [Kotlin Collections API Performance Antipatterns](https://4comprehension.com/kotlin-collections-api-performance-antipatterns/) [(snippets)](https://github.com/pivovarit/articles/tree/master/kotlin-collections)
- [Revisiting the Template Method Design Pattern in Java](https://4comprehension.com/revisiting-the-template-method-design-pattern-in-java/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-design-patterns/src/main/java/com/pivovarit/template_method)
- [A Case Study of Implementing an Efficient Shuffling Stream/Spliterator in Java](https://4comprehension.com/implementing-a-randomized-stream-spliterator-in-java/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-random-stream)
- [A New JDK12 Stream API Collector – Collectors#teeing](https://4comprehension.com/a-new-jdk12-stream-api-collector-collectorsteeing/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-collectors-teeing)
- [Streaming Java CompletableFutures in Completion Order](https://4comprehension.com/streaming-completablefutures-in-completion-order/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-completion-order-spliterator)
- [An Ultimate Guide to Java Stream API Collectors](https://4comprehension.com/an-ultimate-guide-to-java-stream-api-collectors/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-collectors)
- [Improving CompletableFuture#allOf/anyOf API Java Methods](https://4comprehension.com/improving-completablefutureallof-anyof-api-java-methods/) [(snippets)](https://github.com/pivovarit/articles/blob/master/java-completable-future-allof/src/main/java/com/pivovarit/allof/CompletableFutures.java)
- [Parallel Collection Processing: Without Parallel Streams (1/3)](https://4comprehension.com/parallel-collection-processing-1/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-parallel-collection-processing)
- [Parallel Collection Processing: Leveraging Batching (2/3)](https://4comprehension.com/parallel-collection-processing-2/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-parallel-collection-processing)
- [Parallel Collection Processing: With Parallel Collectors (3/3)](https://4comprehension.com/parallel-collection-processing-3/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-parallel-collection-processing)
- [Backward-Compatible Thread#onSpinWait with MethodHandles](https://4comprehension.com/jdk8-on-spin-wait/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-jdk8-on-spin-wait)
- [Explaining Event Sourcing with Data Structures (1/3)](https://4comprehension.com/explaining-event-sourcing-with-data-structures-1-3/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-event-sourcing)
- [Spring's Lightweight JPA/Hibernate Alternatives](https://4comprehension.com/lightweight-jpa-hibernate-alternatives/) [(snippets)](https://github.com/pivovarit/articles/tree/master/hibernate-alternatives)
- [GitHub Actions, reveal.js, and Automating PDF Conversion](https://4comprehension.com/github-actions-reveal-js-and-automating-pdf-conversion/) [(snippets)](https://github.com/pivovarit/articles/tree/master/reveal-js-presentation)
- [Be Careful with CompletableFuture.applyToEither and Exceptions](https://4comprehension.com/be-careful-with-completablefuture-applytoeither/) [(snippets)](https://github.com/pivovarit/articles/blob/master/java-completable-future-allof/src/main/java/com/pivovarit/allof/CompletableFutures.java)
- [Improving Java's Visibility Modifiers with ArchUnit](https://4comprehension.com/improving-java-visibility-modifiers/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-archunit)
- [How to Stop a Java Thread Without Using Thread.stop()?](https://4comprehension.com/how-to-stop-a-java-thread-without-using-thread-stop/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-thread-stop)## Running
In most cases, I'm using a simple unit-testing infrastructure to squeeze multiple examples in a single file - it's enough to import the module in your IDE and run JUnit tests.However, there might be some exceptions - in such cases, you will find instructions in matching articles