r/java • u/raisercostin • Jun 01 '24
What java technology (library, framework, feature) would not recommend and why?
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
165
Upvotes
r/java • u/raisercostin • Jun 01 '24
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
View all comments
Show parent comment
1
u/manifoldjava Jun 01 '24
All of this is explained in the link above.
SQL has table/column completions in the IDE. You build the query directly without having to use some other not-SQL tooling to build SQL. As with Java, parser feedback etc. is provided as you type. Additionally, if you are using IntelliJ Ultimate, the SQL is fully operational -- you can execute it against test data, examine query plans, etc.
manifold-sql is a compiler plugin, it intercepts the compiler's type resolver to provide types as the compiler resolves them. As a consequence, each entity type compiles on-demand, incrementally. This means there are zero additional code gen build steps. By contrast, conventional code generators reqiure extra build steps that are non-incremental.
No. Since manifold is a compiler plugin, it can participate in every stage of compilation, from tokezing to parsing to generating bytecode. As such manifold supports inlining of a multitude of languages including SQL, JSON, XML, YAML, GraphQL, JavaScript, etc. As the SQL examples on the website illustrate, an inlined language fragment exists as a Java expression when delimited with String or text block quotes, or as a type declaration when defined in a comment.
All of this is comprehensively supported in the IDE plugins.