Back to the wishes of the 13 years ago (let JS development become as powerful as Java), experience for many years, many twists and turns a lot of hard, today can loudly say: I finally made it to JS development achieved the level of Java development!
[milestone]
After more than two years of hard coding, a new JSDK (2.0) on the lot released last night!
https://github.com/fengboyue/jsdk
New version based entirely on ES6 + TypeScript grammar development,
And defines its own class library loading mechanism, and the future of the ES specification also remain in the same direction, -- outdated libraries don't have the loading mode,
Here, thanks for ES6 first, TypeScript team! VSCode also let my development work easier, really great!
Without their efforts, JSDK cannot achieve today's new height, also can be to 1.0 after enhanced version, with YUI/Sencha or react/vue/presents on the same level, such as the successor
The meaning of [JSDK]
Now, more and more JS developers have realized the TypeScript grammar benefits, turning to use TS + VSCode development libraries or applications, however, they choose a variety of basic JS framework brings a lot of hidden problems, such as: with ES6 syntax incompatible; TS not to use grammar; Basic function is too weak; Portability without; Class library loaded, component defines it,
It's like, Java developers are generally use the latest Java language specification and on the IDE such as Eclipse writing Java code (not only early obsolete the Java language specification or written in notepad Java), but if you don't have the JDK, so next higher version of the Java language specification is a dead letter, so Java engineers are too busy to write or integration "of" their JDK, so Java development world must be very chaotic, inefficient and terrible,
If, I am a member of the "the Java world", I have to start learning "the JDK companies" to find work, pathetic and helpless!
But now, the confusion of JS, the world has seen two positive:
One is: ES6 and TS grammar let JS level compiled languages,
The second is: the JSDK 2.0 show the full strength ES6 and TS of grammar, can completely solve the JS common libraries chaotic situation for a long time,
[the new function]
Many new features and functions, and I will not repeat described here, see the website document:
https://fengboyue.github.io/jsdk/docs/#/zh/quick
[subsequent roadmap]
On the follow-up version 2.0 fix a BUG or local enhancement, not to release the new features of large,
In version 3.0, plans to offer animation library and library game, will bring direct help for animation and game development,
(such as: the JSGF game framework version 1.0 will be TS languages rewritten, migration to 3.0)
CodePudding user response:
CodePudding user response:
CodePudding user response:
Share technology and knowledge is commendable!CodePudding user response:
I am the TypeScript of strong opponents,The JavaScript is interpreted as weak type is so flexible, very free, although in c #, Java for more than a decade, but one of my favorite language or JavaScript,
If you put a website thousands of pages, into a single page, I have to admit that this is a big project, no TypeScript framework of what, may also is really tough,
But I think make thousands of pages, into a single page, itself is anti-science, people doing things are usually complex decomposition, rather than the simple to complex,
If divided into a page and a page, the front what big project, each page is a purpose of events, with native Js will directly is very convenient,
CodePudding user response:
One, the Web is not the age of the form page alreadyTwenty years ago the site was once! Yahoo page was early! Google page of the first edition was once!
Twenty years ago I use JS HTML3.0 application was once,
That era, web links, basic is a group of static resources most interaction is the form of a few function operation is sufficient, why talk about component or class reuse,
During that period, the backend JSP is a servlet class of service, a few methods to complete page which need what webwork/for springMVC framework,
But one or two years later, the rapid emergence back-end web service framework, and to cope with the heavy demand for code reuse,
Similarly, more than a decade ago front already entered the modular, the application and development of era (even before you learn c # and Java),
Imagine that you just write in function components (widget/component) and not use any inheritance, encapsulation, overloading object-oriented features, such as you will be late to you stupid cry! So that more than a decade, countless JS framework, class library, component library jser are simulated by a variety of class definition/class inheritance of syntactic sugar (long before ES6/TS out grammar) levels to implement the framework or component class code reuse,
Two, TS is the best OOP solution of JS
Actually, against TS is the essence of JS syntax object oriented, if you are a member of the ECMA organization, you will be against ES6 proposal (because let the class keyword actually implemented), thankfully, fortunately, you are not
Similarly, I also thank you you're not a member of Java and c # code of the organization's early, or you will bring the two languages as the background, functional programming language such as ASP/PHP (PHP had to start from 5.0 support OOP; ASP is long abandoned, early replaced by OOP, ASP.NET),
Worth mentioning, Java8 began supporting arrow function (as a quick way to write, even learned a advantages of functional programming), but not influence the nature of the OOP language Java is 100%,
Three, JSDK has nothing to do with the single-page applications
JSDK without any single page navigation API, this API can be integrated to a third party such as presents/vue,
Because I think that is the nature of the Web page, it is not necessary to make these (single page completely bad) but is not the same as me,
Four, I'm sorry, is not rejected you, reject your cognitive
Two days ago to see your reply, I have been hesitant to don't dismiss your cognitive:
"I think the thousands of pages, into a single page, itself is anti-science,"
"Front what big project, each page is a purpose of events, with native Js directly will be very convenient"
Today is weekend, I decided to write some response, because similar cognitive, not a few,
(1) is not a single page or a few large files, is multilevel sub page file,
(2) the complexity of the each page (page complexity and logic complexity) and the amount of code are not small, written in native (just use the jQuery)/debug/can become "dead man",
(3) my cognition of single page is: a good user experience without jump type of architecture, is also a kind of forced to interact with the server all API (Ajax) front-end architecture, but also a reduce server code into architecture, the downside is that: 1, the navigation is not controlled by the server; 2, the security is not controlled by the server; 3, some necessary server code into difficulties (such as: tracking rbis, head of textual substitution, etc.); 4, search engine friendly,
(4) in the project I use the architecture of the majority is more page architecture, there are times when using single page architecture is appropriate, such as: operating child pages and the page does not allow users to jump; H5 game/large interactive animation page; Small screen with features of H5 mobile phone APP,
(5) the OOP is not terrible, in the project there are a lot of function in not reuse is terrible, huge amounts of time spent reading to understand other people functional code is terrible, let alone write games in function and use function to write the UI components are maintenance of a black hole, if you are a one-time code project and do not need to strict test, the functional development, most use jquery is enough, the tool function library
(6) someone will ask: "why in the project there are a lot of function in not reuse", answer: function reuse multiplexing (20%), only is behavior more scenarios (80%) is the need for state (+) reuse, can only be done class reuse,
CodePudding user response:
Release 2.1.0 version today,The domestic document address: http://fengboyue.gitee.io/jsdk/
Foreign document address: https://fengboyue.github.io/jsdk/
New animation library: JSAN