Rambo Zhu

一生放荡不羁爱自由

Fandeng Singapore Meetup

樊登新加坡书友见面会 END

ReactJS training3

reducer nums.reduce((n1,n2)=>{ var even = n2%2 === 0? ++n1.even:n1.even; var odd = n2%2 !== 0? ++n1.odd:n1.odd; console.log(`n1=${n1} n2=${n2} result = ${even} odd ${odd}`) return {even, odd} }...

ReactJS training1

   ReactJS render can only return one object, must have a root each tag must have a end / for attributed must be replaced by htmlFor className instead of class method variable is not ac...

ReactJS training1

   Browser Before 2010, browser only work as mediate, DOM terminal Infrastructure changes data storage cap. file system access multi-thread cap. realtime updates ...

ReactJS training

   javascript test Jasmine describe("A Calculator", function(){ it("Should be able to add two numbers", function(){ //Arrange var number1 = 10, number2 = 20, expectedResult...

StartupX meetup sharing

   Startupx meetup Durwin Ho managing Director, Startupx Cohort one be driven Always be growing Give first & given back Be respectful and Have integrity Listen and Learn Sang s...

Preflight Request

   Background often we saw two requests when call a backend API. 其实第一次发送的就是preflight request(预检请求),那么这篇文章将讲一下,为什么要发预检请求,什么时候会发预检请求,预检请求都做了什么 为什么要发预检请求 CORS需要浏览器和服务器同时支持。目前,所有浏览器都支持该功能,IE浏览器不能低...

Be a father

如何成为一个父亲

   感悟 人生而平等。我小时候一大家子人,爷爷奶奶,外公外婆,舅舅姑姑,叔叔大伯,大姨小姨。 而今我儿子出生了,身处海外。周遭没有太多的亲属。我想他的世界会有怎样的变化。 END

Takeways from Govtech developer conference

   PM. Lee Hsien Loong’s talk Attending the 1st GovTech in SG. PM’s talk is very impressive. PM passed by my seat and we are just 50cm distance. 😀😀😀 hashtag#govtech hashtag#government hashtag#so...

ThreadLocal in Java

JAVA 线程本地变量

ThreadLocal   按照传统的开发经验,如果某个对象是非线程安全的,在多线程环境下,对对象的访问必须采用synchronized进行线程同步。 参见Spring,Hibernate 等框架,其中很多模板类并未采用线程同步机制,因为线程同步会降低并发性,影响系统性能。此外,通过代码同步解决线程安全的挑战性很大,可能会增强好几倍的实现难度。 那么模板类究竟仰仗何种魔法神功,可以...