|
|
|
|
|
by moonchrome
3982 days ago
|
|
Currently looking in to groovy for android dev precisely based on this observation - it has optional static typing (and it gets compiled to equivalent Java bytecode if you provide it not striped out like Dart) but it's dynamically typed and seems to be expressive enough to make the glue code succint. I figured since we need to learn it for the build system why not see if we can reuse it - looks promising so far. I feel like whenever you have complex data hierarchies static typing just makes the whole thing manageable (recently wrote 2k loc python exporter for blender and prototype to consume it in C# - the C# is much more managable for this kind of thing, c++ is still kind of tedious because of shitty tools, build/module system and it's fairly verbose due to low level nature) |
|
Most gradle build scripts are fairly short (e.g. 30 lines) and only use a minute subset of the Groovy grammar, so you don't really need to learn it. Any problems with the build script are far likely to be with the Gradle vocab than the Groovy grammar, e.g. the names of variables you're assigning to, or whether you've included them all.