Skip to content

Instantly share code, notes, and snippets.

@gpenghe
gpenghe / zhongtai.md
Last active November 20, 2019 16:27
What is Zhong Tai?

(NOTE: this was intended as a comment for https://www.thoughtworks.com/insights/blog/zhong-tai-radical-approach-enterprise-it, but it was labelled as spam there :( )

After some Googling, it turns out Zhong Tai is "中台" in Chinese. "中台", literally close to "middle platform", seems a derived word from "前台" (front platform/frontend) and "后台" (back platform/backend). So Zhong Tai seems to mean common business logic software components that lie between the frontend (Apps, Web etc), and backend (stable enterprise platforms including ERP and finance).

By introducing this "middle platform" concept, Zhong Tai followers seem to divide the traditional application layer to two parts: 1) web interface or apps that form the new thin application layer. Note the apps here include both first-party apps and many more third party apps. 2) the core application layer components that provide open API for integration with individual apps.

For example, JD.com (a Chinese e-commerce provider) used to get their customer traffic throu

def _find_switch_attributes(switch_jump_ea):
""" Return tuple of switch attributes.
This function will take an effective address for a switch table
and find attributes associated with the table. It will check
for the presence of a value table and return the address of the
beginning of the table and the width of the table elements, if
present.
Returns a tuple of: the base address of the offset table, the
@gpenghe
gpenghe / scalc
Last active August 29, 2015 14:16
#!/usr/bin/env python
# Simple Calculator
#
# Very simple command line calculator with flexible input format
from __future__ import division # for 5/2
import sys
import os
from math import *
@gpenghe
gpenghe / server.py
Created October 17, 2013 05:58 — forked from tsuna/server.py
#!/usr/bin/python
# A simple example of a threaded TCP server in Python.
#
# Copyright (c) 2012 Benoit Sigoure All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# - Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# - Redistributions in binary form must reproduce the above copyright notice,