this post was submitted on 20 Oct 2023
1 points (100.0% liked)

Lisp

53 readers
3 users here now

founded 1 year ago
MODERATORS
 

To begin with, I'm a very happy Clojurian, but not when I'm working with interops. I'm using Google apis extensively for some features in my product; and so far the experience has been quite awful. I've been contemplating it for a while and here are my pain points.

  1. It is hard to look up for what method a java object supports.
  2. It is hard to understand the inheritance and polymorphism designs without actually looking at the java codes.
  3. 1,2 are amplified all the more because I'm using calva with vscode. The IDE's java support is not as good as that of intellij.

How do you work with interops in general? I welcome any tips/advices/know-hows.

you are viewing a single comment's thread
view the rest of the comments
[–] DefiantAverage1@alien.top 1 points 1 year ago (1 children)

I personally use Emacs + CIDER inspector

[–] hrrld@alien.top 1 points 1 year ago (1 children)

Can you say a bit more about your actual workflow? I also use CIDER and I've never found completion of navigating javadocs to be great. But I suspect I just don't know the right commands/functions.

[–] DefiantAverage1@alien.top 1 points 1 year ago (1 children)

Sure. Basically:
- I eval stuff

- Inspect the result via cider-inspector

- Drill into the java class via `cider-inspector-operate-on-point`

- See all the class method signatures

https://imgur.com/a/aMNoJRu

[–] hrrld@alien.top 1 points 1 year ago (1 children)

Oh! The literal inspector - I had no idea it had that capability. Amazing.

Happy Friday, I will dig into this.

PS. Nice video, seeing is believing.

[–] DefiantAverage1@alien.top 1 points 1 year ago

Yeah it's pretty amazing. I can't live without it