Blog from January, 2018

我覺得和Google docs還是有不同

https://www.atlassian.com/atlascamp/2016/archives/developer-best-practices/how-we-built-synchrony-the-engine-behind-collaborative-editing-in-confluence

原始連結裡面還有很多它們2017-2017設計的概念和理念。

影片直接附上


Sample of jQuery..?

可以用來學圖片的移動方式

jQuery 吧


https://www.microsoft.com/zh-tw/store/p/dirt-4/c2mbdnds3h5w



Backend training

明天2pm  Tom Wu 會給web ui team上課training backend.

這是agenda. 我會用skype加上screen recording. 之後可以放上zfs分享


Basic:

rest and graphql: https://www.howtographql.com/

front end lib: https://github.com/apollographql/apollo-angular

backend lib: nodejs, express, apollo server : https://github.com/graphcool/graphql-yoga

actual example:

portal client #9 and #10

• design overview
○ layered/modulized: schema, models, butlers, shell, resolvers, server
○ progressive result
• python script to return partial results progressively
○ current way: multiple results through pipe with progress number (0-1)
• pub/sub mechanism
○ to fully support graphql subscription feature, pub/sub design/mechanism is needed
○ options:
redis: simple and powerful way
others: MQTT, RabbitMQ, Kafka, zeromq (dead?), surgemq, paho
breakdown report example
○ polling restful api for easier first stage implementation


今天學到一個可能有用的東西,可以把字串前後不小心多打進去的空白刪除


Check for redundant spaces
var string1 = '    you are a salesman.'
console.log(string1.trim());

var string2 = '       But      you are a salesman.'
console.log(string2.trim());


輸出的結果會是

"you are a salesman."
"But      you are a salesman."


這是js內建的功能,但移除的其實有點陽春,前後或中間刻意多加入一些space的話,結果可能會不一樣。


雖然SyntaxEd App在輸入時應該是不會出現句子首尾有多餘(連續)空白的情況,但未來架構擴充以後很難說。

畢竟現在已經開始考量用Unity或Unreal整合的方案了,內建了match pooling 還有很多遊戲計分、介面、輸入客製化等必備的特性。


雖然看到了有用的code片段,卻忘記怎麼用git推上去github,所以只好先來這邊做紀錄..