1,795 karma · joined Sep 13, 2012 (14y ago) · 645 submissions
comment 5y ago · link · parent
comment 5y ago · link · parent
https://blog.timescale.com/blog/timescaledb-vs-amazon-timest...
336.
Growing Concerns Among Developers about the AWS Free Tier(infoq.com ↗)
4 points · by cryptos · 5y ago · discuss
comment 5y ago · link · parent
341.
Startup Acquisition Marketplace(microacquire.com ↗)
3 points · by cryptos · 5y ago · discuss
comment 5y ago · link · parent
344.
Patent Suspensions Threaten Germany's Booming Biotech Industry(spiegel.de ↗)
1 points · by cryptos · 5y ago · discuss
comment 5y ago · link · parent
The other problem is that there isn't THE Linux desktop what makes building GUIs for Linux hard. Yes, I know, it is the year of the Linux desktop, but I fear it will not work out this time.
346.
Java still rocks the finance industry(blogs.oracle.com ↗)
5 points · by cryptos · 5y ago · discuss
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
Modeling all constraints and runtime behaviors in UML is cumbersome and hard to understand. UML could be used for showing larger building blocks or complex flows (e. g. with sequence diagrams), but it is a bad fit to model a complete program in it.
comment 5y ago · link · parent
Gnome has long been my favorite desktop, but they never managed to trim Gnome for usability and efficiency. Instead their followed a weird concept of minimalism and a pointless touch oriented (as if anyone would use it on a smart phone!) UI.
As much as I like the idea of Linux as my primary desktop OS, I've given up.
In the future I see Windows macOS and ChromeOS but no Linux on classical computers (not smartphones and tablets).
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
JPA/Hibernate does not require getters and setters. Fields can be used directly for ages (more than 10 years).
The arguments against reflection are pseudo arguments, because the developer doesn't use reflection himself where usual programming language means would be better. Instead the framework uses reflection to free the developer from writing boilerplate code - completely different things!
The claim that it would be impossible to return unmodified collections because one would be forced to provider getters and setters is wrong. If Hibernate uses the fields directly, it is no problem to give only an unmodifiable view of a collection to the outside.
I don't see a general problem with lazy loading. You have to understand what you're doing, but that should be the case with every framework. Hibernate is quite flexible with eager and lazy loading and it is possible to specify an entity graph per use case to say Hibernate what to load eagerly and what not. Another possible is to use dedicated query objects (usual entity classes mapped to the same table, but designed for a certain use case).
The section about "Accessing a single table field" ignores the fact that the object mapped with Hibernate could also only use the needed fields. You could even select a single value with JPQL without any domain class involved. This argument is kind of dumb and wrong.
"Constraints" with Bean Validation are not a core part of Hibernate and shouldn't really be in this article. But, as they are already there, let me say that the criticized "too late" enforcement of the specified constraints is only the default behavior (because Hibernate can not know when to perform the check). Nothing prevents you from performing these checks explicitly with the means of the Bean Validation API. But apart from that, I'd prefer to write this kind of rules as usual code, too.
"Framework updates are horrible": I had never a severe problem switching to a new Hibernate version. Same is true for Spring (but wait, why does this article mention Spring at all?).
"Rename your JPA Repositories to JPA DAOs": The author doesn't understand the difference between a DAO and a Repository. A repository is at the same level as an entity or value object, it _is_ a domain concept. BUT the implementation of the repository interface is indeed part of the infrastructure, but this implementation would reside in another package. There is no need to name "repositories" always "repository" - if you want to name the class "BankAccounts" then do so! By the way: the class name "BankAccountsJPAImpl" is a crime!
The advice to generate IDs in your own implementation is kind of silly. "if an id is generated, it should be done knowingly" Why? Usually an ID is just a number with no special meaning other than being unique per entity type. Even if you'd decide to drop relational databases and use advanced CSV files instead the sequence number generation could easily be implemented then. And why on earth should one want to test the sequence number generation? I trust every solid database to be able to generate perfectly fine sequence numbers!
The section "Stop adding multi-directional association" has nothing to do with Hibernate specifically, because that is some kind of general design consideration.
One big question remains unanswered by this article: What is the alternative? The author implicitly suggests that it would be SQL. But things are not so simple. If you want to have a domain model (and not a mixture of domain logic and technical infrastructure), you not only have to load data from the database and create objects from it (the easy part), but you also need to find out what data needs to be written to the database after business operations were performed. I'm not aware of a simple solution here (but let me know ...). There are other things like optimistic locking where Hibernate simplifies things a lot.
All in all the article is not well balanced and flawed.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
JetBrains build Kotlin as a programming language for industrial projects - and it shows.
comment 5y ago · link · parent
I agree with you, that Java should have had first-class function from day one. Ironically this was considered by the language designers, but they decided that it would be too exotic for the average Joe. OOP was a hype back then ...
comment 5y ago · link · parent
In general I think, it is wise to keep the standard library small, because innovations are easier to implement in libraries. Rust is a good example for this style.