Skip to content

Instantly share code, notes, and snippets.

@yijunwu
yijunwu / highlight-graphviz-edge.svg
Created June 25, 2020 08:11 — forked from sverweij/highlight-graphviz-edge.html
Highlight an edge in a graphviz generated svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yijunwu
yijunwu / kotlin-frontend.md
Created June 2, 2019 20:14 — forked from sdeleuze/kotlin-frontend.md
My call for Kotlin as a major frontend language

My call for Kotlin as a major frontend language

I try to push for quite a long time for first class support for WebAssembly in Kotlin because I really believe that frontend development is a domain where Kotlin can be as strong as in mobile, and because this is something that would also help to increase even more the adoption on server-side.

I truly appreciate all the work already done by Kotlin/JS and Kotlin/Native teams. The dead code elimination tool and the initial WebAssembly support in Kotlin/Native are important steps in the right direction. But I believe that Kotlin needs now to make frontend a real priority to take it to the next level.

Need for a consistent and unified web frontend strategy

The first point I would like to raise is that what Kotlin needs IMO is a consistent strategy about web frontend wich includes both Javascript and WebAssembly related efforts. I can u

@yijunwu
yijunwu / KotlinDuckTyping.kt
Last active May 29, 2018 06:32 — forked from mikehearn/KotlinDuckTyping.kt
Kotlin duck typing / type classing fiddle
import java.lang.reflect.*
import java.util.*
class A {
fun shout() = println("go team A!")
}
class B {
fun shout() = println("go team B!")
}
@yijunwu
yijunwu / VswmPmsCouponController_Refactored.java
Created September 30, 2015 04:29
异步代码的重构实例2——VswmPmsCouponController。这是重构之后的代码
package com.vip.phoenix.vswm.pms.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.vip.penguin.coupon.param.BindParams;
import com.vip.penguin.dto.BaseDto;
import com.vip.penguin.pms.param.CouponParam;
import com.vip.penguin.pms.pojo.Coupon;
import com.vip.penguin.pms.service.PMSCouponService;
import com.vip.phoenixfwk.play.support.HttpContext;
import com.vip.phoenixfwk.play.web.UserBaseController;
@yijunwu
yijunwu / VswmPmsCouponController.java
Created September 30, 2015 04:26
异步代码的重构实例2——VswmPmsCouponController。这是重构之前的代码
package com.vip.phoenix.vswm.pms.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.vip.penguin.coupon.param.BindParams;
import com.vip.penguin.dto.BaseDto;
import com.vip.penguin.pms.param.CouponParam;
import com.vip.penguin.pms.pojo.Coupon;
import com.vip.penguin.pms.service.PMSCouponService;
import com.vip.phoenixfwk.play.support.HttpContext;
import com.vip.phoenixfwk.play.web.UserBaseController;
@yijunwu
yijunwu / GitCommandMemo
Created September 14, 2015 03:19
The list of useful git commands
git merge <branch> --strategy ours