-
Who am I?
23 years old, last year Computer Science student at AGH University of Science and Technology. Interested in Java and distributed systems.
-
Recent Articles
-
Categories
- algorithms (4)
- c++ (4)
- coding (18)
- enterprise edition (9)
- java (13)
- operating systems (6)
- other (2)
- snippets (7)
- standard edition (4)
- unix (5)
- windows (1)
-
Top 8 last month
- [C++] Radix sort - integers sorting (432 views)
- [Java] Example of Spring IoC (Inversion of Control) - dependency injection (346 views)
- [C++] Counting sort: faster than quicksort! (241 views)
- [C++] Convex hull - Graham algorithm (216 views)
- [Java] Full-text search with Lucene (178 views)
- [Java] Hibernate + MySQL + UTF-8 how-to (157 views)
- [Databases] Who does use NoSQL? (153 views)
- [Java] Spring IoC Container - autowiring (150 views)
Category Archives: standard edition
[Java] Unit tests – JUnit vs TestNG
Unit testing is a very important thing in applications. By testing your class you can prove that your code is free of most bugs and complies with the specification (you can’t remove all bugs, but can make your code harder … Continue reading
[Java] The fastest singleton
Everybody know how to write thread-safe singleton. Consider standard approach: The example above could be slow – consider synchronization cost every time you getting singleton instance. Can you do it faster? Of course: The synchronization cost is much lower – … Continue reading
[Java] Generic classes
The problem: you have to create class which keep object of unidentified class (for example while designing part of library) inside it – and want to use this object later. The first attempt is to create class which keeps Object … Continue reading
Leave a comment
[Java] Accessing private fields
The problem: you have to use class that we can’t modify for some reason. You want to get or set values of fields (name, surname) of class User, but cannot do it in the other way that calling toString() method … Continue reading