Empty should be empty!
The shock and surprise when I saw the memory cost of a Stream created from an empty List in #Java was audible.
donraab.medium.com/empty-should...
@thedonraab
Java Champion. Writer of blogs. Creator of the OSS Java library Eclipse Collections. Author of Eclipse Collections Categorically (https://a.co/d/6KmhrNK) . Opinions are my own. Blog: https://donraab.medium.com/
Empty should be empty!
The shock and surprise when I saw the memory cost of a Stream created from an empty List in #Java was audible.
donraab.medium.com/empty-should...
JUG leaders and Java Champions at DevNexus ππ
Current events confirm the achieved wisdom of time-honored classics in the social sciences.
For folks who haven't looked at #EclipseCollections because they don't use the Eclipse IDE. Eclipse Collections (EC) and the Eclipse IDE are both independent projects at the Eclipse Foundation. π‘
Note: I created EC and have coded with IntelliJ for 24 years. π
donraab.medium.com/explaining-t...
The hardcover version of the book is currently discounted on Amazon in U.S., Ireland, and Belgium. I don't know how long the discount will be available.
The Kindle version of the book will have a free book run from March 9-11, 2026. Mark your calendars if you want a free digital copy.
Want to level up your API design and #Java coding skills?
The book "Eclipse Collections Categorically: Level up your programming game" can help.
GenAI tools can help you code faster.
ECC shows how to design/code better, for the machine and future readers. Mechanical and Symmetric Sympathy.π‘
When everyone is a producer, no one is a consumer.
"Itβs strange to be holding a book written about something you created twenty one years earlier. Did I really do that? This journey has taken a very long time. I hope my journey will inform and inspire others to take their own journeys."
donraab.medium.com/my-twenty-on...
My first ever poem from 1987 that I published on medium several years ago. A call to getting off our butts and doing all the things and celebrating life every single day. Good journeys to everyone. π€
donraab.medium.com/heavens-gate...
Time for a walk in the snow with my daughter, a latte and some poetry. Timeline detox for anyone who needs it. βοΈπ€
The hardcover version of the book is currently discounted on Amazon in U.S., Ireland, and Belgium. I don't know how long the discount will be available.
The Kindle version of the book will have a free book run from March 9-11, 2026. Mark your calendars if you want a free digital copy.
Want to level up your API design and #Java coding skills?
The book "Eclipse Collections Categorically: Level up your programming game" can help.
GenAI tools can help you code faster.
ECC shows how to design/code better, for the machine and future readers. Mechanical and Symmetric Sympathy.π‘
The hardcover version of "Eclipse Collections Categorically" is currently being offered at a 39% discount by Amazon. I'm not sure how long this discount will be available, so take advantage of it while you can. Happy Valentine's Day! β€οΈ
www.amazon.com/Eclipse-Coll...
Positive vibes building UIs.
medium.com/javarevisite...
The hardcover edition of "Eclipse Collections Categorically" is currently discounted on Amazon in the U.S. and Ireland. I don't know how much longer this discount will be available. The book is also available again on Kindle Unlimited for folks who subscribe.
Congrats to the Garden State #Java User Group for its 25th anniversary! #gsjug @cguntur.bsky.social
The hardcover edition of "Eclipse Collections Categorically" is currently discounted on Amazon in the U.S. and Ireland. I don't know how much longer this discount will be available. The book is also available again on Kindle Unlimited for folks who subscribe.
Sorry, the code said ofAll when the test method name said withAll. Both ofAll/withAll work.
Interestingly, #EclipseCollections does not have an instance withAll method on MutableIntCollection that takes an IntStream, but there are ofAll/withAll methods on the IntLists factories that take an IntStream. π€·ββοΈ
There are thousands of subtle design decisions we made in #EclipseCollections over the years. I write about them so folks have the benefit of being able to learn from them many years later. The methods with/without, withAll/withoutAll are interesting cases. π
donraab.medium.com/what-if-the-...
I have a new blog to work on. π€·ββοΈ
Better collections in #Java are your choice. You can add #EclipseCollections as a dependency today, or tell the Core JDK team you want better collections in #Java, and hope enough developers ask and the work eventually gets prioritized. Your choice, or your voice. π€·ββοΈ
medium.com/javarevisite...
The hardcover version of "Eclipse Collections Categorically" is currently being offered at a 39% discount by Amazon. I'm not sure how long this discount will be available, so take advantage of it while you can. Happy Valentine's Day! β€οΈ
www.amazon.com/Eclipse-Coll...
When folks program using OOP, they often refer to nouns as objects, and verbs as methods. I rarely, if ever, see mentions of prepositions. π€
I got this as a gift for Xmas in 2019. My 20 year old son finally built it for me and gave it to me this past weekend. It is beautiful. Only 970 instructions. π
Can someone get GenAI to build it faster?
If you haven't drawn or seen a UML Sequence diagram in a while, I included a few in this blog. π€·ββοΈ
In part 1 of this 4 part blog series titled "Getting Started with Eclipse Collections", I cover "Creating Collections".
The creation examples include:
1οΈβ£ Lists
2οΈβ£ Sets
3οΈβ£ Stacks
4οΈβ£ Bags
5οΈβ£ SortedSets
6οΈβ£ SortedBags
7οΈβ£ Maps
8οΈβ£ SortedMaps
9οΈβ£ BiMaps
π Multimaps
...and more!
donraab.medium.com/getting-star...
If you want to read a good ol' fashioned hand-written tech book written by someone who still collects print books, then take a look. The front-matter and chapter one are free to read on Amazon in the reading sample. Enjoy!π
donraab.medium.com/this-is-not-...
Blog: Go primitive in #Java, or Go in a box
We can have our eight Java primitive types and travel light with them in collections too.
donraab.medium.com/go-primitive...
Many of us seem to be counting the days during these strange times. In this blog, you will learn how to count the days using #Java Streams and how to make the days count using #EclipseCollections.
donraab.medium.com/tell-dont-as...