Comments (2)
Prior to learning Groovy, I mainly coded in Java. I learned a bit of Ruby and Python, too.
The reason I looked at Groovy was the discussion about using List.of(1, 2, 3)
of Guava library vs. native Java new ArrayList<Integer>(1, 2, 3)
. To me, those things were unnecessary implementation details, especially in tests. So I went on looking for a language that would have even simpler constructs. And Groovy, with it's [1, 2, 3]
literals seemed like a perfect match.
It was very easy to switch to Groovy since bach then it was ~95% Java-compatible. Since Groovy 3, it's even 100% compatible, I believe. This was also a big plus in convincing my teammates to give it a try. The Spock framework was another driver for using Groovy to test Java code - the readability of our tests just sky-rocketed.
Probably since I already knew Java, I didn't have any problems while learning Groovy (compared to learning other languages like Python, Ruby, Go, or Haskel). With Groovy, I could always fall back to solving problems in "Java-way" and make it "Groovier" once I've learned about certain Groovy features.
While learning the language, I was immediately amazed how I can express the same things as in Java with way less boilerplate or unnecessary details. I was able to focus more on the "what" my code is doing, not the "how".
I had a few iterations of "aha" moments with Groovy when I was able to express myself in the same piece of code even better than before in code by applying other new features I've learned so far.
The only few weird things that come to mind are some unconventional method names (collect
vs map
, inject
vs fold
or reduce
, ...).
I still find Groovy one of the most expressive languages I have learned so far. And also, currently, Groovy would be my "go-to" scripting language for non-trivial tasks (I'd use bash for the trivial ones).
from groovy.
We're closing this issue as it was part of our research for the v3 version of Exercism which has just been released.
Thanks everyone for chipping in! It has been greatly appreciated.
from groovy.
Related Issues (20)
- [v3] Add tags HOT 3
- Add prerequisites to Practice Exercises HOT 1
- Pass linting checks HOT 1
- [v3] Build Test Runner
- Build Representer and Analyzer HOT 1
- Update status of track
- Update status of Concept Exercises HOT 1
- Launch Tracker 🔴
- 🤖 Sync error for commit 90c35f
- Extract track-specific help instructions from `config/exercise_readme.go.tmpl`
- Extract track-specific test instructions from `config/exercise_readme.go.tmpl`
- Build analyzer
- Build representer
- Check docs are up to date
- Test runner is too slow and always results in a "timed out" error message HOT 2
- CIS-CAT warning: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass HOT 1
- Add bottle-song exercise HOT 1
- Building a training set of tags for groovy HOT 21
- Deprecate `accumulate`? HOT 1
- Upgrade to Groovy 4? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from groovy.