- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://skatejs.netlify.com/
- 软件文档: https://github.com/skatejs/skatejs
- 官方下载: https://github.com/skatejs/skatejs
软件介绍
SkateJS 是一个 Web 组件库,旨在提供扩充 Web 组件规范能力,它重点关注功能渲染管道、清理 attribute/property 语义和较小的占用空间。
抽象能力包括:
生成跨框架兼容组件。
通过 props 或原生类型,抽象出常见的 attribute/property 语义,例如属性 reflection 和 coercion。
添加一些生命周期回调以响应 prop 更新、渲染,以及管理内部组件状态的方法。
提供一组基本的 mixin,它们 hook 渲染器,如 @skatejs/renderer-preact。
使用 Skate 与 Preact 可以这样写 Web 组件:
// @jsx h
import { props, withComponent } from 'skatejs';
import withPreact from '@skatejs/renderer-preact';
import { h } from 'preact';
class WithPreact extends withComponent(withPreact()) {
static get props() {
return {
name: props.string // String could be used also to define the prop type
};
}
render({ name }) {
return <span>Hello, {name}!</span>;
}
}
customElements.define('with-preact', WithPreact);
Imperfect C++中文版
威尔逊 / 荣耀、刘未鹏 / 人民邮电出版社 / 2006-1 / 75.0
汇集实用的C++编程解决方案,C++虽然是一门非凡的语言,但并不完美。Matthew Wilson使用C++十年有余,其间发现C++存在一些固有的限制,需要一些颇具技术性的工作进行弥补。本书不仅指出了C++的缺失,更为你编写健壮、灵活、高效、可维护的代码提供了实用的技术和工具。Wilson向你展示了如何克服C++的复杂性,穿越C++庞大的范式阵列。夺回对代码的控制权,从而获得更理想的结果。一起来看看 《Imperfect C++中文版》 这本书的介绍吧!
