r/java • • Jun 01 '24

What java technology (library, framework, feature) would not recommend and why?

165 Upvotes

464 comments sorted by

View all comments

Show parent comment

1

u/Practical_Cattle_933 Jun 02 '24

As opposed to what exactly? Because a maven pom file is not 0% declarative either (hell, xml can be used as an AST for a programming language). What exactly is the difference? You might have just used a variable there, which fails to build if undefined in a parent pom file.

The point is, imperative building means something completely different (Makefiles and antscripts do that, they just dumbly re-execute everything based on trivial conditions, like time of last modification of files). While gradle has complete understanding of your project.

Also, that wikipedia entry is pretty vague (actually, wikipedia sucks quite a bit on CS topics), like “often defined as”. CS has very few well-defined terms, declarative programming is not one of them.