I get why Gnome wants to use javascript. I love the language. The thing is, I don't love Gnome's implementation.
The syntax is getting out of date, and my experience with other engines doesn't translate well to the Gjs environment. Combine this with a lack of documentation. If Gnome wants to attract javascript developers, this isn't the way to do it. Its not too bad when you are coding a one page demo widget, but try coding an ambitious desktop application. Without relevant api information, I'm coding blindfolded.
One solution would be to use Typescript. All I need to do is translate the *.gir metadata to *.d.ts format, so I've created a tool
https://www.npmjs.com/package/gir2dts
All I have to do is install with npm, and reference the contained *.d.ts files.
There are a couple of samples in the example folder at https://github.com/darkoverlordofdata/gir2dts
This tool was designed to facillitate the development of another application, so it's a great example of a Gjs/Typescript application: https://github.com/darkoverlordofdata/bosco-player
This comment has been removed by the author.
ReplyDeleteReally good work. I agree wholeheartedly with your assertion that "If Gnome wants to attract javascript developers, this isn't the way to do it."
ReplyDeleteAnd Typescript does look very appealing. Visual Studio Code, with your GTK typescript files, and therefore "intellisense" for the GTK libraries is really quite nice.
One of the awkward things about GJS is how it handles modules. Have you looked into whether it is sane to try and support NodeJS (CommonJS I suppose) modules, and Typescript, with GJS?
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from TypeScript Training in Chennai . or learn thru Javascript Online Training from India. Nowadays JavaScript has tons of job opportunities on various vertical industry. ES6 Training in Chennai
ReplyDeleteGreat Post!
ReplyDeleteSoftmilt
thank you for the information
ReplyDeletehttp://www.profullversion.online/
Now you can win free stuff online, free giveaways, enter every day to win latest iphones, smartphones, macbooks, laptops, accessories, technology and much more.
ReplyDeleteParticipate, Win & Keep A Free Apple iPhone XS
Sickbits is a library of unlimited hacks for android, ios smartphones. Get unlimited amount of hacks and modes for mac & pc. https://sickbits.net/
ReplyDeleteIt's very useful blog post with inforamtive and insightful content and i had good experience with this information.I have gone through CRS Info Solutions Home which really nice. Learn more details About Us of CRS info solutions. Here you can see the Courses CRS Info Solutions full list.Find the best Hadoop Training with great faculty. Go to know about crs info solutions Workday Training program.
ReplyDeleteSuperlative style of forming that each new blogger tries to have. 123movies
ReplyDeleteThe AndroidRub.com store specializes in supplying and trading Mod Apps & Mod Games products for mobile phones with the best quality.
ReplyDeleteThanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
ReplyDeleteworkday studio online training
best workday studio online training
top workday studio online training
I will truly value the essayist's decision for picking this magnificent article fitting to my matter.Here is profound depiction about the article matter which helped me more.
ReplyDelete360DigiTMG data science certification
Thanks for sharing nice information....
ReplyDeletetraining provider in malaysia
I need to communicate my deference of your composing aptitude and capacity to make perusers read from the earliest starting point as far as possible. I might want to peruse more up to date presents and on share my musings with you.
ReplyDelete360DigiTMG
it's really cool blog. Linking is very useful thing.you have really helped
ReplyDeleteiot course in noida
A decent blog consistently concocts new and energizing data and keeping in mind that perusing I have feel that this blog is truly have each one of those quality that qualify a blog to be a one.
ReplyDelete360DigiTMG data analytics course
Super site! I am Loving it!! Will restore again, Im taking your food in like manner, Thanks.
ReplyDeletedifference between analysis and analytics
With so many books and articles coming up to give gateway to make-money-online field and confusing reader even more on the actual way of earning money,
ReplyDeletedata science course in hyderabad
Stunning! Such an astonishing and supportive post this is. I incredibly love it. It's so acceptable thus wonderful. I am simply astounded.
ReplyDeletedigital marketing course