How to melt your processor

Recently I have been building a software development lifecycle for Java RhinoJS, enhanced with Typescript backend.

We write JavaScript and get .ts feedback, its a nice middle-ground, I have never considered, I want the benefits of TS without the overhead of scaring others who don’t know it (know your audience of developers).

In our product, we have some java classes injected into Rhino, and so I want type defs for when I write unit tests in our Mocha like Rhino framework.
I turn to code-generation, Node.js is actually used to run rhino, and build stuff, its looping through a bunch of .jar files, running jar tf TicTacToe.jar to get the contents, aka the com.path.to.Class structure in slash format

I do some string transforms to stdout and write all possilbe
java class path .class files to a ts file.

I got 380000 classes in a type myLib

🙂 fun

原文链接:How to melt your processor

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
I can accept failure but I can’t accept not trying.
可以接受暂时的失败,但绝对不能接受未曾奋斗过的自己
评论 抢沙发

请登录后发表评论

    暂无评论内容