Comments for HappyCoders.eu https://www.happycoders.eu Mon, 05 May 2025 18:57:16 +0000 hourly 1 Comment on Hexagonal Architecture with Java – Tutorial by Dave https://www.happycoders.eu/software-craftsmanship/hexagonal-architecture-java/#comment-41210 Wed, 30 Apr 2025 09:03:16 +0000 https://www.happycoders.eu/?p=36898#comment-41210 Should the service not exists in the adapter layer?

]]>
Comment on Sorting Algorithms [Ultimate Guide] by linyu https://www.happycoders.eu/algorithms/sorting-algorithms/#comment-41207 Tue, 29 Apr 2025 13:34:50 +0000 https://www.happycoders.eu/?p=13741#comment-41207 Sorting algorithms, always a brain twister! This article seems like a great refresher. Gotta brush up on my Big O notation... and maybe finally understand stable vs. unstable sorts!
https://oblivionnamegenerator.com/

]]>
Comment on AVL Tree (+ Java Code Examples) by andreluizfv https://www.happycoders.eu/algorithms/avl-tree-java/#comment-41149 Fri, 25 Apr 2025 09:30:40 +0000 https://www.happycoders.eu/books/avl-baum-java/#comment-41149 super.insertNode(key, node) returns void. I saw it in the provided link (https://www.happycoders.eu/algorithms/binary-search-tree-java/#Binary_Search_Tree_Insertion). Then, I think we have a problem at the overrided insert function where it does node = super.insertNode. Am I losing anything?

]]>
Comment on How to Change Java Versions in Windows (updated for Java 23) by Kennedy Kairaria https://www.happycoders.eu/java/how-to-switch-multiple-java-versions-windows/#comment-40771 Tue, 08 Apr 2025 17:05:33 +0000 https://www.happycoders.eu/?p=2959#comment-40771 Thanks. This works like a charm with command prompt and PowerShell.

]]>
Comment on Hexagonal Architecture with Java – Tutorial by Khan https://www.happycoders.eu/software-craftsmanship/hexagonal-architecture-java/#comment-40559 Sat, 29 Mar 2025 13:07:49 +0000 https://www.happycoders.eu/?p=36898#comment-40559 Thank you for sharing.

Regarding the point that the REST Adapter has a unidirectional source code dependency on the Application, while the Application does not have any source code dependencies on the outer layers, I'm puzzled about how to handle the following scenarios:

1.Complex conditional queries and pagination information: How can these query conditions and pagination details be passed from the REST Adapter to the persistence layer?

2.A single large form submission from the user: This form may involve multiple business entities, requiring it to be split into different business entities for processing and persistence according to business rules. Does this large form correspond to the WebModel in the example (for instance, a parameter in the Controller marked with the @RequestBody annotation)? Does the Application layer need to establish a "pseudo" domain object identical to this WebModel to receive and handle this request?

]]>
Comment on Bubble Sort – Algorithm, Source Code, Time Complexity by Admin https://www.happycoders.eu/algorithms/bubble-sort/#comment-39431 Fri, 14 Feb 2025 10:03:01 +0000 https://www.happycoders.eu/?p=14532#comment-39431 For any enquiries call here: 8459926235

]]>
Comment on Java PriorityQueue (+ Code Examples) by Steffen https://www.happycoders.eu/algorithms/priorityqueue-java/#comment-38761 Thu, 16 Jan 2025 15:18:11 +0000 https://www.happycoders.eu/books/priorityqueue-java/#comment-38761 "the time required to insert and extract from a heap.

Thus, the time complexity for both operations is: O(n log n)"

It should be O(log(n)),
according to my text books and
https://stackoverflow.com/questions/28819327/time-complexity-of-inserting-in-to-a-heap

]]>
Comment on Hexagonal Architecture with Java – Tutorial by Sven Woltmann https://www.happycoders.eu/software-craftsmanship/hexagonal-architecture-java/#comment-35908 Mon, 21 Oct 2024 08:28:12 +0000 https://www.happycoders.eu/?p=36898#comment-35908 In reply to Sergii Poltorak.

I tried that, but it was complaining about the bootstrap module calling the constructurs and the tests accessing basically any other code. So I eventually decided to write this custom ArchUnit test.

]]>
Comment on File and Directory Names in Java: File, Path, Paths by Karl Brodowsky https://www.happycoders.eu/java/file-and-directory-names-file-path-paths/#comment-35798 Thu, 17 Oct 2024 17:02:28 +0000 https://www.happycoders.eu/?p=9211#comment-35798 It is a common mistake to assume that file separator has to be \ in Windows. Actually Windows understands both / and \ up to even the low level libraries, it is just blocked by some applications, like cmd or Explorer. So when working in C, Java, Perl, Ruby, Scala or whatever, you can always name files and directories with / as separator, so it works everywhere.

]]>
Comment on Hexagonal Architecture with Java – Tutorial by Sergii Poltorak https://www.happycoders.eu/software-craftsmanship/hexagonal-architecture-java/#comment-35756 Tue, 15 Oct 2024 22:20:48 +0000 https://www.happycoders.eu/?p=36898#comment-35756 In `DependencyRuleTest` I would use `onionArchitecture()` static method from ArchUnit to define models, services, ports, and then verify hexahonal architecture.

]]>