Author Topic: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development  (Read 2714 times)

Helmut Ortmann

  • EA User
  • **
  • Posts: 967
  • Karma: +42/-1
    • View Profile
Hello,

Have you tried an external JavaScript IDE like VS Code, Eclipse or WebStorm to develop your JavaScrips for EA?

External IDEs are powerful. They lack the EA integration. Do you have any experiences?

Thanks,

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13544
  • Karma: +395/-300
  • I'm no guru at all
    • View Profile
Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
« Reply #1 on: September 28, 2023, 04:43:04 am »
Not with Java. I use Python with Wingware. The missing intellisense for EA's API does not matter. I wrote my own wrapper which Pythin is aware of.

q.

Helmut Ortmann

  • EA User
  • **
  • Posts: 967
  • Karma: +42/-1
    • View Profile
Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
« Reply #2 on: September 28, 2023, 07:47:26 pm »
Sounds good.

What are your experiences, pros and cons? Would you recommend this approach for big projects?

In Scripting with JavaScript in the EA environment, we must synchronize the code. EA-Matic could do this.

Thanks for your answer.
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13065
  • Karma: +544/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
« Reply #3 on: September 28, 2023, 07:55:23 pm »
In Scripting with JavaScript in the EA environment, we must synchronize the code. EA-Matic could do this.
EA-Matic currently only synchronizes from EA to files; not the other way around.
I have toyed with the idea to use another editor for my (VBScript) scripts, but I gave up because it was more hassle then it was worth.

I can imagine that for some other scripting languages such as Javascript the benefits of an external code editor would be larger.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13544
  • Karma: +395/-300
  • I'm no guru at all
    • View Profile
Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
« Reply #4 on: September 28, 2023, 09:24:21 pm »
I have done quite large projects this way. Important is the wrapper since EA's API is just poor in it's raw form.

q.

Helmut Ortmann

  • EA User
  • **
  • Posts: 967
  • Karma: +42/-1
    • View Profile
Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
« Reply #5 on: September 29, 2023, 12:20:43 am »
Hi Geert,

Thanks for your correction. Updating, deleting, or writing the code into EA shouldn't be too complicated.

Hi q,

Could you explain the wrapper? I only have a rough idea.

Thanks,

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13544
  • Karma: +395/-300
  • I'm no guru at all
    • View Profile
Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
« Reply #6 on: September 29, 2023, 03:56:06 am »
Well, my wrapper has similar objects to EA's objects. But it has overriden/additional operations/attributes. It's a bit tedious to create all desired objects where needed. E.g. my Repository object has a Queury which parses the XML from EA and returns an array or array which definitely makes handling of queries easier. The Connector object has an Other(objId) operation which returns the oppsite element and saves the examination of supplier/client. There's a class to parse those EA-CSV lists which is a big relief. etc. This way I sanitized the API as far as possible.

q.

Helmut Ortmann

  • EA User
  • **
  • Posts: 967
  • Karma: +42/-1
    • View Profile
Thanks a lot.

I think I have got the picture.

Best regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)