Immutable.js及在React中的应用
1. 为什么需要Immutable.js 1.1 引用带来的副作用 Shared mutable state is the root of all evil(共享的可变状态是万恶之源) javascript(es5)中存在两类数据结构: primitive...
View ArticleServerless IoT With Particle And Amazon Web Services
Serverless IoT With Particle And Amazon Web Services February 26, 2016 by Mike Lapidakis in Cloud Computing The internet of things, or IoT for short, has seen tremendous activity and interest this...
View ArticleReact Native + Meteor Boilerplate
React Native + Meteor Boilerplate 24 FEBRUARY 2016 Over the last few weeks I’ve been writing a weekly blog post about various aspects of developing React Native applications that interface with a...
View ArticleIntro to Debugging React Native (iOS and Android)
Intro to Debugging React Native (iOS and Android) 01 MARCH 2016 Debugging a React Native app, while similar to the web, is a bit different. Once you get the hang of it and know the tools it’s simple....
View ArticleState of the Art JavaScript in 2016
State of the Art JavaScript in 2016 Image “Question!” by Stefan Baudy, CC BY 2.0 So, you’re starting a brand new JavaScript front end project or overhauling an old one, and maybe you haven’t kept up...
View Article浅谈浏览器端JavaScript跨域解决方法
由于安全的原因,浏览器做了很多方面的工作,由此也就引入了一系列的跨域问题,需要注意的是: 跨域并非浏览器限制了发起跨站请求,而是跨站请求可以正常发起,但是返回结果被浏览器拦截了。最好的例子是 crsf 跨站攻击原理,请求是发送到了后端服务器无论是否跨域!注意:有些浏览器不允许从HTTPS的域跨域访问HTTP,比如Chrome和Firefox,这些浏览器在请求还未发出的时候就会拦截请求,这是一个特例...
View Article掘金翻译计划的第一批译文已经完结,移动端、前端干货都有啦
Glow · 11 小时 11 分钟前 · 247 次点击 年前我们掘金在 Github 折腾了一个掘金翻译计划的活动( http://github.com/xitu/gold-miner ),挑选了三十多篇优质的英文技术文章来给大家翻译,下面就是翻译好的文章列表。与此同时,我们从 Github 商店海淘的 Gitcat 作为奖品也送到了参与活动的译者手上了,感谢译者们的精彩翻译,同时也欢迎 v...
View Article深入浅出-iOS Reactive Cocoa的常见用法
深入浅出-iOS Reactive Cocoa的常见用法 字数1146 阅读1565 评论3 喜欢35 简介 今天的主角是Reactive Cocoa,聊聊Reactive Cocoa的常见使用:KVO、Target、Delegate、Notification。 Reactive Cocoa 是一个重量级框架,非常的牛,为什么说Reactive Cocoa非常的牛? 我们所熟知的iOS...
View Article深入理解React、Redux
深入理解React、Redux 字数2764 阅读6402 评论5 喜欢11 React+Redux非常精炼,良好运用将发挥出极强劲的生产力。但最大的挑战来自于函数式编程(FP)范式。在工程化过程中,架构(顶层)设计将是一个巨大的挑战。要不然做出来的东西可能是一团乱麻。说到底,传统框架与react+redux就是OO与FP编程范式的对决。...
View Article部署React+Redux Web App
部署React+Redux Web App∞ March 09, 2016 前段时间使用React+Redux做了个后台管理的项目,在React初体验中分享了下入门经验。这篇文章谈谈我的部署实践。 目标 怎样才是好的部署呢?我觉至少有以下2点: 性能优化:包括代码执行速度、页面载入时间 自动化:重复的事情尽量让机器完成,最好能运行一条命令就完成部署 代码层面 首先从代码层面来分析。...
View ArticleUsing geo-based data with SequelizeJS utilizing PostgreSQL and MS SQL Server...
Using geo-based data with SequelizeJS utilizing PostgreSQL and MS SQL Server in Node.js I’m currently building an Angular 2 sample application, which will use location-based data. The app uses the...
View Article聊一聊前端自动化测试
前言 为何要测试 以前不喜欢写测试,主要是觉得编写和维护测试用例非常的浪费时间。在真正写了一段时间的基础组件和基础工具后,才发现自动化测试有很多好处。测试最重要的自然是提升代码质量。代码有测试用例,虽不能说百分百无bug,但至少说明测试用例覆盖到的场景是没有问题的。有测试用例,发布前跑一下,可以杜绝各种疏忽而引起的功能bug。...
View ArticleWhy You Can’t Trust GPS in China
Why You Can’t Trust GPS in China by Geoff Manaugh February 26, 2016 One of the most interesting, if unanticipated, side effects of modern copyright law is the practice by which cartographic companies...
View ArticleWebpack + React 开发之路
杂七杂八的想法 记得大二的时候刚学习 Java,我做的第一个图形化用户界面是一个仿QQ的登录窗口,其实就是一些输入框和按钮,但是记得当时觉得超级有成就感,于是后来开始喜欢上写 Java,还做了很多小游戏像飞机大战、坦克大战啥的,自己还觉得特别有意思。 后来开始学前端,其实想想也是做图形化用户界面,不过是换了一个运行环境而已。但是写着写着发现很不顺手,和用 Java 写感觉很不一样,到底哪不对呢。 用...
View ArticleReact.js Conf: The Good Parts
React.js Conf: The Good Parts I had the amazing opportunity to attend React.js conf in San Fransisco on 22nd/23rd of February thanks to a generous diversity scholarship from Facebook! Two full days of...
View ArticleRunning Mocha + Istanbul + Babel
http://stackoverflow.com/questions/33621079/running-mocha-istanbul-babel Using Babel 6.x, let’s say we have file test/pad.spec.js: import pad from '../src/assets/js/helpers/pad'; import assert from...
View ArticleDeveloping React Native Android Apps with Linux
Developing React Native Android Apps with Linux Posted by Giles Paterson | October 19, 2015 | Apps, Blog, Programming | 4 Comments 1 React Native is Facebook’s open source framework for building...
View Articlefir.im Weekly –不能错过的 GitHub Top 100 开源库
好的工具&资源,会带来更多的灵感。本期 fir.im Weekly 精选了一些实用的 iOS,Android 的使用工具和源码分享,还有前端、UI方面的干货。一起来看下:) Swift 开源项目精选 由@SwiftLanguage分享。 “基于《Swift 语言指南》开源项目收录,做了一个甄别、筛选,并辅以一句话介绍。来源 GitHub: ”Github 的 Swift...
View ArticleOrange Pi One Board Quick Start Guide with Armbian Debian based Linux...
Orange Pi One board is the most cost-effective development board available on the market today, so I decided to purchase one sample on Aliexpress to try out the firmware, which has not always been...
View Article一步一步实现iOS微信自动抢红包(非越狱)
一步一步实现iOS微信自动抢红包(非越狱) 字数2219 阅读17396 评论128 喜欢399 微信红包 前言:最近笔者在研究iOS逆向工程,顺便拿微信来练手,在非越狱手机上实现了微信自动抢红包的功能。 题外话:此教程是一篇严肃的学术探讨类文章,仅仅用于学习研究,也请读者不要用于商业或其他非法途径上,笔者一概不负责哟~~ 好了,接下来可以进入正题了! 此教程所需要的工具/文件 yololib...
View Article