frontend-tech

Month: 2018-01

2018-01-01

itsmisscs 04:10:39
https://www.theatlantic.com/technology/archive/2017/09/saving-the-world-from-code/540393/

The Atlantic

The Coming Software Apocalypse

A small group of programmers wants to change how we code—before catastrophe strikes.

2018-01-02

2018-01-03

jihchi 08:38:52
https://twitter.com/rauschma/status/948169575543304192?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

Another Angular...?

twitter

The Rails team has written their own JS framework: <https://github.com/stimulusjs/stimulus>

jihchi 09:08:34
Sapper: Towards the ideal web app framework
https://svelte.technology/blog/sapper-towards-the-ideal-web-app-framework

svelte.technology

Svelte

The magical disappearing UI framework

mofas 09:29:52
Look like the render libs will have two groups. One is "function based" or "V-DOM" render like React, another one is "HTML based" or "Directive", like Angular, Vue, Svelte.
👍 1

2018-01-04

mofas 23:38:54
https://twitter.com/mxstbr/status/948913184685125632?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

21...

twitter

Today I turn 21. :birthday: For my birthday, I wish that all of you go into 2018 and beyond with an open mind towards new ideas and experiments, because you can never know where they might lead you. Have a great year! :purple_heart:

😱 2 ⛴️ 1
mofas 23:39:23
https://twitter.com/igorminar/status/948326662839549952?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

If you use #webpack and care about payload size then do not create "vendor chunks". This prevents Uglify from eliminating dead code in many common scenarios. More info: <https://github.com/angular/angular-cli/issues/9069#issuecomment-354896045> <https://twitter.com/IgorMinar/status/948325862243364865>

twitter

<https://twitter.com/filipematossilv|@filipematossilv> <https://twitter.com/Splaktar|@Splaktar> <https://twitter.com/dee_bloo|@dee_bloo> <https://twitter.com/BenLesh|@BenLesh> <https://twitter.com/TheLarkInn|@TheLarkInn> <https://twitter.com/AngularCli|@AngularCli> <https://twitter.com/Brocco|@Brocco> yeah. thanks for the writeup. I looked into it and resolved it already. the problem is vendor chunking, turn it off and unused operators will disappear.

2018-01-05

jihchi 08:33:14
https://twitter.com/dan_abramov/status/948574746375086081?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Today I learned: e.preventDefault() in window 'error' event handler prevents the browser from printing it to the console.

jihchi 08:45:46
https://twitter.com/bitfield/status/948906867199283200?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

docker-replay takes a running container and outputs the 'docker run' command which was used to create it. Very handy! <https://github.com/bcicen/docker-replay> <https://pbs.twimg.com/media/DSsxxByX0AA1mPn.jpg>

mofas 09:19:21
https://www.ptt.cc/bbs/Soft_Job/M.1515114765.A.B18.html
I think this post points an interesting point, even we have "linter" or "formatter" to "unify" our code style or format.
mofas 09:20:26
This doesn't improve the readability or maintainability too much.
jihchi 09:48:10
https://github.com/aaronshaf/reasonml-in-browser

GitHub

aaronshaf/reasonml-in-browser

reasonml-in-browser - Drop-in script to run ReasonML in the browser. For development and demos.

2018-01-06

mofas 08:01:10
https://blog.jmes.tech/react-fragment-and-semantic-html/

james

React.Fragment and Semantic HTML

HTML is the backbone of the web and the code you write should be semantic. If you write semantic HTML, It's easier to read and ascertain developer intent. Take a look at the following semantic and unsemantic examples: No thank you :-1: Yes please! :+1: It's also more accessible. Screenreaders read through

jihchi 10:18:25
https://twitter.com/peterpme/status/949352875687202816?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Check out this 1-liner isEmpty utility that works across strings, arrays &amp; objects :fire: <https://pbs.twimg.com/media/DSzGNTnVAAEzZq6.jpg>

2018-01-07

mofas 07:09:30
https://github.com/npm/registry/issues/255

GitHub

Many packages suddenly disappeared · Issue #255 · npm/registry

<https://www.npmjs.com/package/infinity-agent> <https://www.npmjs.com/package/timed-out> <https://www.npmjs.com/package/pinkie-promise> All dependencies of webpack-related modules

mofas 07:09:39
Another leftpad day! folk.
mofas 13:03:30
https://github.com/hyperapp/hyperapp

GitHub

hyperapp/hyperapp

hyperapp - 1 KB JavaScript library for building web applications.

mofas 13:03:35
這東西好有前途
mofas 13:03:50
就是超輕量化react+redux

2018-01-08

jihchi 07:28:41
Fantas, Eel, and Specification · Tom Harding
http://www.tomharding.me/fantasy-land/
jihchi 07:33:32
https://twitter.com/npmjs/status/950081394415316992?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

statement on saturday’s npm operational incident <http://blog.npmjs.org/post/169432444640/npm-operational-incident-6-jan-2018> <https://pbs.twimg.com/media/DS9d_ZMU0AA-zER.jpg>

mofas 07:53:17
I feel parcel + hyperapp will be the sharp knife for small project.
jihchi 09:49:18
try: https://github.com/yawaramin/bs-hyperapp Reason / BS + Hyperapp + The Elm Architecture

I feel parcel + hyperapp will be the sharp knife for small project.

GitHub

yawaramin/bs-hyperapp

bs-hyperapp - Work in Progress - an opinionated overlay of the Elm Architecture on top of Hyperapp

mofas 09:50:56
Well, sharp knife I mean is nearly zero config and dependencies.
jihchi 10:32:25
https://github.com/joshwcomeau/react-flip-move

GitHub

joshwcomeau/react-flip-move

react-flip-move - Effortless animation between DOM changes (eg. list reordering) using the FLIP technique.

cjies 14:00:06
又一個 facebook opensource project
https://docusaurus.io

docusaurus.io

Docusaurus · Easy to Maintain Open Source Documentation Websites

Easy to Maintain Open Source Documentation Websites

Reason, ReasonReact, BuckleScript 官網都用這做
jest, prettier 也是 XD
FB Open Source Family
BS 不算 XD
Michael Hsu 2018-01-08 14:12:58
看到 babel 也在討論要不要換
快變成 best practice 了
~`create-doc-app`~

2018-01-09

yhsiang 00:55:10
@cjies 這個出一陣子囉
😆 1
yhsiang 00:55:47
之前換 github 位置被我抓到 XD
jihchi 08:31:31
https://twitter.com/jorgebucaran/status/950404963624108032?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

<https://twitter.com/arturi|@arturi> <https://twitter.com/louiscenter|@louiscenter> You can even use Hyperapp as an ES module directly loading the source from GitHub. No transformations required. <https://pbs.twimg.com/media/DTCEP0QU8AExfLA.jpg>

其實不用 jsx 的話,react 也可以呀 ._.
yup
mrorz 11:23:44
Performance 圖表更新了

https://github.com/mweststrate/immer#performance

看起來跟 ImmutableJS 沒有太大差別
而且如果選了 ImmutableJS 又亂 toJS 的話,會無以復加的差⋯⋯

GitHub

mweststrate/immer

immer - Create the next immutable state by mutating the current one

mofas 11:42:50
用immutable 又一直toJS 好像是某些人會做的事
jihchi 11:43:09
不是我
mofas 11:43:57
js native不是immutable有點可惜,
mofas 11:44:39
可能那時候 很多人討厭驚嘆號就是了
mofas 11:44:43
不喜歡set!
jihchi 18:54:27
junctions/examples/create-react-app at master · jamesknelson/junctions · GitHub
https://github.com/jamesknelson/junctions/tree/master/examples/create-react-app

GitHub

jamesknelson/junctions

junctions - Give your ReactJS components routes.

swarchen 19:53:22
@jhaocheng.wu has joined the channel

2018-01-10

mofas 04:44:00
https://www.smashingmagazine.com/2018/01/visual-studio-code/

Smashing Magazine

Visual Studio Code Can Do That?

Why is Visual Studio Code (VS Code) so popular, and do we really need another text editor? In this article, we'll take a look at how VS Code extends traditional text editor concepts and opens up entirely new avenues of productivity for developers. These are all the best things about VS Code that nobody ever bothered to tell you.

jihchi 08:34:14
https://twitter.com/reasonml/status/950881162758471680?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

New ReasonReact release; we've made a small router! <https://reasonml.github.io/reason-react/blog/2018/01/09/subscriptions-send-router.html>

cjies 11:10:55
https://bitsofco.de/whats-new-in-html-5-2/

bitsofcode

What’s New in HTML 5.2?

Less than a month ago, HTML 5.2 became an official W3C Recommendation (REC). When a specification reaches the REC stage, this means that it has received the official endorsement of W3C Members and the Director, and that the W3C officially recommends it’s deployment by user agents, and it’

Michael Hsu 16:21:02
https://github.com/facebookincubator/create-react-app/pull/3675
merge 囉 babel config 大解放

GitHub

add experimental babel-plugin-macros support by kentcdodds · Pull Request #3675 · facebookincubator/create-react-app

closes #2730 This will remain undocumented until the brave have tried it in the wild. Test Plan: There's currently no established way to test changes to babel-preset-react-app. But I did create unm...

🎉 3
jihchi 18:46:06
https://twitter.com/_developit/status/950932023266463746?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

:mega: Introducing Workerize: Offload modules into Web Workers with a simple prefix! :heart_eyes: Statically compiles exports to reflected async functions :smiley: :sparkles: <http://github.com/developit/workerize> <https://pbs.twimg.com/media/DTJjWFHUMAAG5kP.jpg>

jihchi 18:55:55
https://twitter.com/paf31/status/950902131870941184?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

At <https://twitter.com/Lumi|@Lumi>, we just released a set of simplified React bindings for PureScript. It focuses on building simple components with as much type safety as possible (vis some of the newer PureScript row constraints). <https://github.com/lumihq/purescript-react-basic>

jihchi 18:58:38
https://twitter.com/acdlite/status/950960419996237824?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Here's a mnemonic for `<http://fn.call>` vs `fn.apply`: "A for arguments, and C for collection." foo.apply(null, 1, 2, 3); <http://foo.call>(null, [1, 2, 3]); Then just remember it's the opposite of that, and you're set. Hope that helps!

2018-01-11

jihchi 08:22:16
https://twitter.com/prettiercode/status/951067424736075777?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

:birthday: Today Prettier turns 1️⃣ year old! We've just released version 1.10, featuring: :white_check_mark: Support for scripts and styles in <https://twitter.com/vuejs|@vuejs> single file components. :white_check_mark: A new plugin API for new languages. :speech_balloon: And more! Check out the release notes on our new blog: <https://prettier.io/blog/2018/01/10/1.10.0.html>

前天才升完 1.9… 囧
不升也沒差吧,有你要的功能再升
對啊,剛好這次也沒需要的功能。safe ~
jihchi 08:22:58
https://twitter.com/reasontownfm/status/951214587755429888?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Hello world! :wave: Check out our first episode at <https://reason.town/> , where <https://twitter.com/splodingsocks|@splodingsocks> and <https://twitter.com/jaredforsyth|@jaredforsyth> talk about how they got into <https://twitter.com/reasonml|@reasonml> and what makes them excited about it. :bow:

jihchi 08:24:54
https://twitter.com/mylesborins/status/951114498605223936?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

:ocean::ocean::ocean::ocean::ocean::ocean::ocean::ocean::ocean::ocean::ocean::ocean: Happy <https://twitter.com/nodejs|@nodejs> Current Release Day $ nvm install v9.4.0 * lots of new http2 goodness * npm 5.6.0 * lexically scoped variables in repl <https://nodejs.org/en/blog/release/v9.4.0/> :ocean::ocean::ocean::ocean::ocean::ocean::ocean::ocean::ocean::ocean::ocean::ocean:

mofas 22:31:43
https://twitter.com/EmilWallner/status/951093523310313472

twitter

I’m thrilled to share my latest deep learning project: Turning a design mockup into code. :computer: :robot_face: 1) Give the trained neural network a design image 2) The network converts the image into HTML markup and renders it ↴ Article: <http://bit.ly/2FoqJQy> Code: <http://bit.ly/2mkkWDZ>

2018-01-12

jihchi 08:33:36
https://twitter.com/jlongster/status/951531381905031169?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Maybe we can remove the --no-semi in prettier now? <https://twitter.com/littledan/status/951523844262637568>

twitter

TC39 is recommending that JS programmers use semicolons at the end of statements in code, rather than relying on ASI. <https://github.com/tc39/ecma262/pull/1062>

mrorz 09:58:11
又要戰分號惹
jihchi 09:59:54
XD
jihchi 18:38:17
https://twitter.com/iammerrick/status/951566405601767428?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

:the_horns: React Performance Tip: If you want to quickly identify that React component or anything else you are optimizing in the flame graph, go ahead and throw in your own performance.mark &amp; performance.measure. <https://pbs.twimg.com/media/DTSkmh4WAAEwslm.jpg>

<https://pbs.twimg.com/media/DTSkmhGXcAI73-4.jpg>

2018-01-13

yfcai 15:12:08
@yfcai has joined the channel
jihchi 23:07:03
https://twitter.com/jaredforsyth/status/951857741320073216?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

So I threw together a simple javascript bundler for <https://twitter.com/reasonml|@reasonml> last night: - <http://pack.re|pack.re> <https://github.com/jaredly/pack.re> And to do so, I also made a cli argument parsing library - <http://minimist.re|minimist.re> <https://github.com/jaredly/minimist.re> :tada: enjoy!

2018-01-14

jihchi 15:59:02
https://twitter.com/thelarkinn/status/952272042786570240?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Right now, on whatever webpage you are on. (If you are using <https://twitter.com/googlechrome|@googlechrome> ): press CMD (or CTRL) + SHIFT + P then type "Show Coverage" and hit enter. Now in the coverage tab reload the page and tell me how much code is being unused on that page... How does this make you feel

2018-01-15

mrorz 09:54:23
有人用過 razzle 嗎
感覺比 next.js 有更多設定可以掌握 @@
https://github.com/jaredpalmer/razzle/blob/master/README.md

GitHub

jaredpalmer/razzle

razzle - :sparkles: Create server-rendered universal JavaScript applications with no configuration

mrorz 10:45:52
好像要附上這個才會吸引大家的注意齁
razzle + reason-react 範例
https://github.com/jaredpalmer/razzle/tree/master/examples/with-reason-react

GitHub

jaredpalmer/razzle

razzle - :sparkles: Create server-rendered universal JavaScript applications with no configuration

mrorz 10:47:04
跟 next 的差異大概就是,routing 與 (server-side) data loading 要自己搞
但因為你自己處理 client.js 所以是可以自己 get your hands dirty 沒問題
mrorz 10:54:45
所以 razzle 大概就是個 CRA 幫你搞定 client / server 雙 webpack 的東西
比 next 只有 client 過 webpack 所以最好不要亂加 webpack 還要好一些
jihchi 11:01:12
「所以 razzle 大概就是個 CRA 幫你搞定 client / server 雙 webpack 的東西」

光這點就會吸引我用

所以 razzle 大概就是個 CRA 幫你搞定 client / server 雙 webpack 的東西 比 next 只有 client 過 webpack 所以最好不要亂加 webpack 還要好一些

mrorz 11:01:37
但他去年 8 月就出了
好像也沒看到有人在用
Michael Hsu 11:04:31
https://twitter.com/thejameskyle/status/952731779353358336
relay vs apollo

twitter

Regardless of what you use today, and based on the design of the tools and not their relative usage or size of community, which of these two tools would you prefer using: - <https://facebook.github.io/relay/> - <https://www.apollographql.com/>

mrorz 11:05:14
看來 razzle 作者有點忙沒空按 merge
https://github.com/jaredpalmer/razzle/pull/432

GitHub

CSS Modules example by stereobooster · Pull Request #432 · jaredpalmer/razzle

PR for #428. It works, but razzle.config.js requires improvement

Hmm 這個我就沒興趣了
next-routes 正用得好好的呢
https://github.com/zeit/next.js/tree/canary/examples/with-next-routes
kcliu 17:22:49
有在用 import cost 的話要小心踩到這個: https://github.com/wix/import-cost/issues/47

GitHub

macOS 10.12.6 high CPU use when enable this extension for vscode · Issue #47 · wix/import-cost

not sure why, the graph below is simple record in my mac, with or without this extension in my vscode, not sure this is a bug or something else.

jihchi 18:51:29
https://twitter.com/domdorn/status/952134061211963392?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

haha.. some dude made a #github pull request to #emacs which removed all emacs code and replaced it with #vim .. calls it "Fixed some UI issues." <https://github.com/emacs-mirror/emacs/pull/6>

2018-01-16

mofas 02:44:24
eamcs真的有點煩
mofas 02:44:42
但是目前寫的語言都只在emacs有比較好的支援
mofas 02:44:58
racket, idris, agda, pie
mofas 02:45:04
所以也只能繼續用 😞
jihchi 08:42:19
https://twitter.com/jaredpalmer/status/952987635370340352?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Introducing After.js A Next.js-like framework for server-rendered React apps built with React Router 4 :atom_symbol: React server-side rendering :inbox_tray: Data fetching with getInitialProps() :fire: Hot module replacement :package: Code-splitting :hammer_and_wrench: Zero-config tooling #0CJS <https://github.com/jaredpalmer/after.js> <https://pbs.twimg.com/media/DTmuu7qVoAAzacF.jpg>

jihchi 08:49:28
https://twitter.com/dassurma/status/952858549515898881?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Today seems to be a JavaScript-y morning! Did you know I maintain a collection of lodash-esque functions for arrays and iterators that you can just copy-paste? <https://surma.github.io/underdash/>

Michael Hsu 09:15:07
https://github.com/reyronald/awesome-toolkits

GitHub

reyronald/awesome-toolkits

awesome-toolkits - A curated list of open source, high-quality, popular and well maintained toolkits

jihchi 19:06:44
https://twitter.com/danistefanovic/status/952920071684403200?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Pipeline operator in JS? Yes, please! It has recently been moved to Stage 1: <https://github.com/tc39/proposal-pipeline-operator> Babel plugin: <https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-pipeline-operator> <https://pbs.twimg.com/media/DTlzwPJWkAEnxPO.jpg>

jihchi 19:11:40
GitHub - GoogleChrome/dialog-polyfill: Polyfill for the HTML dialog element
https://github.com/GoogleChrome/dialog-polyfill

GitHub

GoogleChrome/dialog-polyfill

dialog-polyfill - Polyfill for the HTML dialog element

jihchi 19:14:44
GitHub - fastpack/fastpack: Pack JS code fast & easy
https://github.com/fastpack/fastpack

GitHub

fastpack/fastpack

fastpack - Pack JS code fast &amp; easy

2018-01-17

mofas 02:17:05
https://lawsofux.com/

Laws of UX

Home | Laws of UX

Laws of UX is a collection of the key maxims that designers must consider when building user interfaces.

jihchi 08:42:25
https://twitter.com/ebidel/status/953306347067473922?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

:boom:Puppeteer 1.0 🤹:skin-tone-2:‍♂️ shipped: Chrome 65, JS/CSS code coverage API, PDF customization, XPath support, raw devtools protocol access. Congrats to the team and all our contributors! new docs: <https://developers.google.com/web/tools/puppeteer/> release: <https://github.com/GoogleChrome/puppeteer/releases/tag/v1.0.0> npm: <https://www.npmjs.com/package/puppeteer> <https://pbs.twimg.com/media/DTrRH-MV4AAQqPL.jpg>

jihchi 08:47:06
https://twitter.com/graphcool/status/953335983621230592?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

:tada: Introducing Prisma: Turn your database into a GraphQL API <https://blog.graph.cool/introducing-prisma-1ff423fd629e>

2018-01-18

mofas 01:42:53
https://twitter.com/dan_abramov/status/953651118147604480

twitter

CSS Modules support just landed into Create React App :eyes: <https://github.com/facebookincubator/create-react-app/pull/2285>

jihchi 08:44:03
https://twitter.com/mattpodwysocki/status/953670624009965568?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Still a fun JS interview question of how if (a == 1 &amp;&amp; a == 2 &amp;&amp; a == 3) console.log('Boom') can print 'Boom'. Easy! Just make valueOf side effecting. Evil yet effective! const a = { x: 1, valueOf: function() { return this.x++; } };

jihchi 09:54:50
https://github.com/sindresorhus/react-router-util

GitHub

sindresorhus/react-router-util

react-router-util - Useful components and utilities for working with

jihchi 19:28:54
http://antoinevastel.github.io/bot%20detection/2018/01/17/detect-chrome-headless-v2.html

antoinevastel.github.io

Detecting Chrome headless, new techniques

This post presents techniques that enables to distinguish a vanilla Chrome browser from a Chrome browser running in headless mode. It updates information presented in the post of August.

2018-01-19

mofas 01:54:03
https://slack.engineering/keep-webpack-fast-a-field-guide-for-better-build-performance-f56a5995e8f1

Several People Are Coding

Keep webpack Fast: A Field Guide for Better Build Performance

webpack is a brilliant tool for bundling frontend assets. When things start to slow down, though, its batteries-included nature and the…

📦 2
jihchi 08:33:45
https://twitter.com/reasonconf/status/954084342086717441?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

:loudspeaker: We're excited to announce world's first Reason conference in Vienna, Austria There is a highly enthusiastic community all around the world. Now it is time to bring them together... to innovate, to learn and have fun :raised_hands::tada: See you on the 11th - 13th of May 2018!

jihchi 08:46:41
https://twitter.com/_developit/status/954142102409170945?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Here's that unistore announcement... wait, it's another library?? :card_file_box: Stockroom: Offload your store management to a worker. <https://github.com/developit/stockroom> <https://pbs.twimg.com/media/DT3LFvVV4AEpS2m.jpg>

2018-01-20

mofas 02:55:26
今天嘗試升CRA@next
mofas 02:55:38
結果storybook直接噴掉
mofas 02:55:54
因為有新專案想用CSS module
mofas 02:56:16
所以就用rewire 自己改了CRA的 webpack
mofas 02:56:32
想用同樣改法去改storybook讓他吃
mofas 02:56:52
結果發現storybook的webpack設定的跟CRA不一樣
mofas 02:57:04
所以又要自己重新塞規則- -
mofas 02:57:20
一整天就在改webpack中度過了
jihchi 08:30:47
人生~
jihchi 08:31:08
rewired 也還沒支援 CRA@next
jihchi 08:31:49
https://github.com/ReasonVienna/reason-conf

GitHub

ReasonVienna/reason-conf

Contribute to reason-conf development by creating an account on GitHub.

jihchi 08:32:20
gatsby, reason and sass-css-module
jihchi 09:27:07
https://github.com/1j01/jspaint

GitHub

1j01/jspaint

jspaint - :art: Classic MS Paint, REVIVED + :sparkles:Extras

mofas 11:29:53
https://twitter.com/kentcdodds/status/954443777342689281

twitter

Well this is awesome! A react-scripts@next app by <https://twitter.com/evenchange4|@evenchange4> that uses his new graphql.macro module to import .graphql files without needing to change any configuration! App: <https://graphqlmacro.netlify.com/> App Repo: <https://github.com/evenchange4/graphql.macro-example> graphql.macro: <https://github.com/evenchange4/graphql.macro> :fishing_pole_and_fish:

👏 2 😳 2
mofas 11:30:03
施主自己出來解釋
Michael Hsu 17:42:28
哈哈 macro 試玩了一下 但是目前還有一些問題還沒克服

2018-01-21

mofas 06:08:41
Dan 表示
mofas 11:30:19
https://medium.com/@alexandereardon/dragging-react-performance-forward-688b30d40a33

Medium

Dragging React performance forward – Alex Reardon – Medium

I work on a drag and drop library for React: react-beautiful-dnd :tada:. The goal of the Atlassian library is to provide a beautiful and…

2018-01-22

jihchi 08:54:44
https://www.valentinog.com/blog/webpack-4-tutorial/

Valentino G. | Blog

Webpack 4 tutorial: All You Need to Know, from 0 Conf to Production Mode

All you need to know about webpack 4, the next generation module bundler. From zero configuration to production mode, this post is a living, breathing introduction to webpack 4.

Michael Hsu 2018-01-22 09:45:53
點開發現進階設定 coming soon… XD
不過一開始有搔到癢
💪 1
jihchi 13:32:18
https://github.com/stereobooster/css-in-js-101

GitHub

stereobooster/css-in-js-101

css-in-js-101 - :barber: CSS-in-JS 101: All you need to know

2018-01-23

jihchi 08:30:10
https://twitter.com/wsokra/status/955446279198396416?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Yeah after 2 weeks dry period... webpack 4.0.0-alpha.5 with a lot of big changes: * CCP =&gt; optimization.splitChunks * ProfilingPlugin * Refactored chunk graph * acorn 5 * bugfixes Here the full v4 changelog so far: <https://github.com/webpack/webpack/issues/6357>

jihchi 08:34:24
https://twitter.com/_egoistlily/status/955437508208205824?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

A microservice for <https://twitter.com/PrettierCode|@PrettierCode> ``` curl \ -H "Content-Type: application/json" \ -X POST \ -d '{"source":"const a={a:1,b:[ 1]}","options":{"semi":false}}' \ <https://api.transform.cool/prettier> ``` <https://pbs.twimg.com/media/DUJlUi3U0AIxZ3V.png>

jihchi 08:42:04
https://twitter.com/cpojer/status/955525416286121985?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Are you staying or going home <https://twitter.com/dan_abramov|@dan_abramov> ? <https://pbs.twimg.com/media/DUK1S4lW0AEdXaP.jpg>

Michael Hsu 09:24:48
https://twitter.com/mxstbr/status/955476413846564864

twitter

:tada: styled-components@3.0.0 is out! - No more /native for ReactNative! Just import styled from 'styled-components' and you're good to go :fire::fire::fire: - Flat bundles on npm - ReactNative update, adds styled.SafeAreaView and removes styled.Navigator <https://github.com/styled-components/styled-components/releases/tag/v3.0.1>

jihchi 11:13:13
https://github.com/webkul/micron

GitHub

webkul/micron

micron - a [μ] microInteraction library built with CSS Animations and controlled by JavaScript Power

這個昨天看過,覺得「嗯這要怎麼跟 React 接 w」
www
ref 大法
mrorz 18:38:00
Anyone using `luxon` to replace `moment.js`? It’s immutable.
https://raddevon.com/articles/choose-luxon-date-wrangling-javascript/

Rad Devon

Why You Should Choose Luxon for Date Wrangling in Javascript « Rad Devon

Luxon is a modern Javascript date/time library built by one of the Moment.js developers to address some shortcomings in the old standby for date manipulation. Here's why you should try it next time you want to work with dates and times.

沒有 relative date feature 呀
好吧繼續用 moment.js (欸
咦。不是 date-fns 嗎
咦咦咦咦
date-fns 勝
Luxon 顯得沒有開發的意義

2018-01-24

jihchi 07:56:13
🎉 Trailing commas 🎉 by jordwalke · Pull Request #1775 · facebook/reason · GitHub
https://github.com/facebook/reason/pull/1775

GitHub

:tada: Trailing commas :tada: by jordwalke · Pull Request #1775 · facebook/reason

Intelligent printing and parsing of trailing commas on basically everything! Please see the stack of diffs here. Each commit accomplishes some purpose and it will be much easier to understand the e...

jihchi 08:30:55
https://twitter.com/sindresorhus/status/955878567723847680?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Public Announcement: It's possible to set an emoji as the browser cursor. <https://fiddle.jshell.net/sindresorhus/xym6y51r/show/light/> <https://pbs.twimg.com/media/DUP2faOVQAEFsLj.png>

jihchi 08:31:55
https://twitter.com/_developit/status/955905369242513414?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

:mega: Announcing... Karmatic! 🦑 Easy automatic (headless) browser testing :hammer_and_wrench: No config needed, auto-detects webpack settings 🤹‍♀️ Only one dependency to juggle :racing_car: Powered by Karma, Webpack, Jasmine &amp; Puppeteer <http://github.com/developit/karmatic>

jihchi 08:32:29
https://twitter.com/parceljs/status/955855137402109952?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Parcel v1.5.0 is out! :rocket: :world_map: Source Maps! :gear: WebAssembly :crab: <https://twitter.com/rustlang|@rustlang> → WebAssembly with zero config :money_with_wings: Config files like .babelrc invalidate cache :earth_americas: .env file support :rocket: Even faster for small projects :ok_hand: Lots bugfixes and improvements! Read more! :memo: <https://medium.com/@devongovett/parcel-v1-5-0-released-source-maps-webassembly-rust-and-more-3a6385e43b95> <https://pbs.twimg.com/media/DUPhKqtVwAA17NV.png>

jihchi 14:59:57
https://jaredforsyth.com/posts/reason-mobile-cross-compilation-deep-dive/

jaredforsyth.com

Reason mobile cross-compilation deep dive | Jared Forsyth.com

I figure it's good to document what I went through for future ocaml cross-compilation spelunkers.

2018-01-25

mofas 03:32:52
有人嘗試整合過storyshoot & addon withInfo嗎?
mofas 03:33:12
我剛剛試了 發現storyshoot會把addon的資訊也存進去- -
mofas 03:33:14
這哪招
mofas 07:40:24
有人有遇過jenkins 的 node.js Installion 會沒辦法執行node嗎

```
$ /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/bin/npm install -g yarn@latest
env: ‘node’: No such file or directory
```
你直接 `$ type node` 應該沒有東西吧?畢竟你是 full path 執行 `npm`,表示 `$PATH` 裡面沒有把 `/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/bin/` 加進去,自然找不到 `node`
我有echo $path 喔
外加我有直接執行 `/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/bin/`
一樣不過
😱
mofas 07:40:48
我ssh 進去docker裡面 有檔案 但是執行一樣跳錯
mofas 07:40:58
不知道這誰的問題- -
jihchi 08:39:46
https://twitter.com/wsokra/status/956300912330493952?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

4.0.0-beta.0 We will now avoid breaking changes until webpack 5 (except bugfixes). This will give the ecosystem 1 month to become compatible until the v4 release at 2018-02-24. <https://github.com/webpack/webpack/releases/tag/v4.0.0-beta.0>

jihchi 08:47:07
https://twitter.com/thejameskyle/status/954906997169664000?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

JavaScript testing frameworks would be better if they didn't have describe() or beforeEach/afterEach(). Why the hell have we decided that this is a good way to test code? <https://pbs.twimg.com/media/DUCCghzXcAAJDoA.jpg>

<https://pbs.twimg.com/media/DUCCh9xV4AA7FCa.jpg>

完全無法理解他那兩張圖在說什麼。

他的 after 那張圖,把 `test` 換成 `it` 是有差膩⋯⋯

沒人規定他一定要寫 `describe` 與 `beforeAll` / `afterAll` 呀⋯⋯
是喔。我的理解是他想表達,為何大家寫 test 都會走 `describe` `it` 這種 nested 風格,後者不是比較簡潔嗎?
這是一種情緒抒發吧~?
因為 `describe` 做的事情就是在每個 `it` 前頭加個 prefix。大家這麼做不是什麼跟風,是因為想要那個 prefix,以及他的 scope 底下可以擺放共用的 `before` / `after` 的小小好處——雖然要自己在每個 `it` 裡頭自己呼叫,也不是不行啦。
然後他在 after 圖裡面使用 ava 而在 before 裡面不使用,看起來就像是想要讓讀者誤以為「只有 ava 才能做得那麼簡潔」。
抱歉我對這種比較特別敏感 QQ
XD
他的確是有 promo ava 的意味在,畢竟是他在用了 ava 後的感想
讓我想起之前有篇文在講 Makefile,說 JS 的人都喜歡重造輪子什麼的。

講得好像 JS 的人從沒用過 Makefile 一樣,而且他文中的 Makefile 沒解決一堆 bundler 才能做的事情。
「看不慣事情看得淺就大幅批評」?
jihchi 08:49:50
https://twitter.com/thelarkinn/status/956237650108780545?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

I just published “:notebook: webpack 2017: A Year in Review :notebook:” <https://medium.com/p/webpack-2017-a-year-in-review-9f4a760fddd4>

Michael Hsu 09:29:20
這channel 之前有討論過 舊版可以參考 @mrorz 做法
新版可以直接用 jest mock
https://github.com/storybooks/storybook/issues/1011#issuecomment-322698049

我剛剛試了 發現storyshoot會把addon的資訊也存進去- -

👍 3
mofas 09:36:24
我用了更hack的方法
```
// avoid storyshot to include all withInfo JS DOM
if (process.env.NODE_ENV !== 'test') {
addDecorator((story, context) => withInfo('')(story)(context));
}
```
💪 1
jihchi 10:39:03
https://github.com/facebook/react/issues/11527#issuecomment-360199710

GitHub

RFClarification: why is `setState` asynchronous? · Issue #11527 · facebook/react

For quite a while I've tried to understood why setState is asynchronous. And failing to find an answer to it in the past, I came to the conclusion that it was for historical reasons and probably ha...

2018-01-26

jihchi 08:32:06
https://twitter.com/jedwatson/status/956672083840221184?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

I just published a new alpha of react-select v2, check it out! <https://github.com/JedWatson/react-select/pull/2289> Still quite a bit of work to do before it hits parity with v1, but I'm really happy with the new architecture. Would :heart: feedback!

jihchi 08:34:25
https://twitter.com/acdlite/status/956390180637650944?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

:atom_symbol: Just merged: a new context API! :atom_symbol: - Statically typeable - Propagates through shouldComponentUpdate-&gt;false - Future-proof: works with async React features - render props (so hot right now) Available in the next minor release. <https://github.com/facebook/react/pull/11818> <https://pbs.twimg.com/media/DUXGc2rU8AAikTe.jpg>

cjies 09:14:15
> New in Safari 11.1—Service Workers 👀
https://developer.apple.com/library/content/releasenotes/General/WhatsNewInSafari/Articles/Safari_11_1.html

developer.apple.com

Safari 11.1

Describes new features introduced in versions of Safari.

jihchi 09:37:52
https://github.com/ryyppy/reason-css-modules

GitHub

ryyppy/reason-css-modules

reason-css-modules - A toolbox for typed OCaml / Reason support &amp; CSS modules

chi 16:25:29
@totodile has joined the channel
mofas 23:16:54
https://twitter.com/jlongster/status/956896582842093568

twitter

New Post! "Tracking State over Time with Snapshot Diffing" <https://dev.actualbudget.com/snapshot-diffing>

2018-01-27

mofas 00:31:05
Jenkins 真的是上時代的產物..一堆問題解決方法都是移除再重新安裝
mofas 00:31:09
ㄇB
mofas 00:31:12
超雷
mofas 00:31:42
大家有其它CI tool推薦嗎
jihchi 09:46:31
Go 寫的,沒用過:https://github.com/drone/drone

GitHub

drone/drone

drone - Drone is a Continuous Delivery platform built on Docker, written in Go

mofas 10:04:09
Travis CI private project 要錢直接不考慮了

2018-01-28

mofas 13:54:41
https://clementc.github.io/blog/2018/01/25/moving_cli/

clementc.github.io

Clément Chastagnol ~ Moving efficiently in the CLI

A cheatsheet for moving efficiently in the CLI!

jihchi 13:58:00
我都用 u 跟 k 的位置來判斷,哪個刪前,哪個刪後。u 靠左所以向前,k 靠右所以向後。

clementc.github.io

Clément Chastagnol ~ Moving efficiently in the CLI

A cheatsheet for moving efficiently in the CLI!

mofas 22:43:36
iTerm 不能用Alt
mofas 22:43:45
有點麻煩
jihchi 22:49:25
要自己改 binding
+1 我也有改過
所以 alt 用得很開心
搭配 ctrl+a, ctrl+e 移到最前面 / 最後面
找到惹 只要勾 esc+就好惹

2018-01-29

mofas 03:54:50
湯姆哈迪改寫dependent type惹
jihchi 07:31:25
https://twitter.com/reinhardt1053/status/957379973471506432

twitter

<https://twitter.com/nathanewest|@nathanewest> <https://twitter.com/UnixToolTip|@UnixToolTip> <https://twitter.com/elliotsbriggs|@elliotsbriggs> Go to Preferences-&gt;Profiles tab, select your profile on the left, and then open the Keyboard tab. At the bottom is a set of buttons that lets you select the behavior of the Option key: set to ESC+. <https://pbs.twimg.com/media/DUlLxLlWAAA4vA9.jpg>

jihchi 07:37:21
https://twitter.com/v8js/status/956976954074267648?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Every single one of the new ES2018 language features is available by default in <https://twitter.com/v8js|@v8js> v6.4 and Chrome 64. <https://twitter.com/mathias/status/956970099063189505>

twitter

:tada: New JavaScript features in ES2018: - async iterators/generators <https://jakearchibald.com/2017/async-iterators-and-generators/> - object rest/spread <https://developers.google.com/web/updates/2017/06/object-rest-spread> - Promise.prototype.finally <https://developers.google.com/web/updates/2017/10/promise-finally> - various RegExp features <https://twitter.com/mathias/status/956397406538510336>

jihchi 09:45:55
https://github.com/jmacdonald/amp/

GitHub

jmacdonald/amp

amp - A complete text editor for your terminal.

jihchi 09:47:18
https://github.com/facebook/prepack/pull/1142

GitHub

Allow Side-effectful Abstract Functions in Pure Additional Functions by sebmarkbage · Pull Request #1142 · facebook/prepack

TL;DR this tracks any reachable object or binding that a side-effectful function could mutate as having an unknown value after that call. Use Case In the React compiler we see a lot of examples lik...

mrorz 11:27:32
Dan 在這裡提到的 nwb 與 neutrino 有人有用過嗎
https://github.com/facebook/create-react-app/issues/167#issuecomment-358356948

GitHub

How to customize babel config? · Issue #167 · facebook/create-react-app

Note from maintainers For people coming to this thread later—if you use MobX or a similar library, you don’t need decorators. They are just syntax sugar in this case. Learn more: facebookincubator#...

mrorz 11:28:16
neutrino (by mozilla) - https://neutrino.js.org/
nwb - https://github.com/insin/nwb

GitHub

insin/nwb

nwb - A toolkit for React, Preact, Inferno &amp; vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)

jihchi 11:33:08
`neutrino` 還不錯,偏 developer 彈性擴充,蠻多 preset,支援 web / react 等等。 `nwb` 支援蠻多種不同類型 project,例如 React component / React Application 等。
jihchi 18:58:31
https://twitter.com/mxstbr/status/957903300963328000?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

styled-components@3.1.0 is out with a massive performance boost and streaming server-side rendering support!! :tada::tada::tada: Huge shout out to <https://twitter.com/real_schwers|@real_schwers> and <https://twitter.com/probablyup|@probablyup> for making this happen :heart: :speech_balloon: <https://spectrum.chat/thread/845da820-83f7-4228-981c-ff5723d33e61> :memo: <https://medium.com/styled-components/v3-1-0-such-perf-wow-many-streams-c45c434dbd03>

2018-01-30

mofas 03:25:26
我剛剛發現VScode 竟然可以trace node.js 的 dependency tree..
所有的import 他都可以查出 export 了什麼method 然後有auto completeion.
jihchi 08:07:31
有 type definition 還會提示
mrorz 10:07:21
是的
而且如果有寫 jsdoc 他也會顯示
打 `/**` 會自動補完 `@params`——啊,喜歡寫 curry function 的就 sorry 啦,他不會抽內層的 params。
jihchi 10:17:52
不愧是 IDE 之王的公司開發的..
mrorz 10:20:48
當 Visual studio 遇上 eclipse 的開發團隊
jihchi 10:23:43
個人覺得 Borland / embarcadero 的 Delphi IDE 也是威威
mrorz 10:24:11
咦我找不到 eclipse team 有協助 vs code 的 reference
是我誤解了嗎
mofas 10:27:42
而且vscode改theme可以realtime preview耶
jihchi 19:01:28
https://twitter.com/maybekatz/status/958157474397171712?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

npm hot tip of the day: want to make sure your whole team is running your app with the same version? $ npm install node@7 ^ This will make it so any time you do `npm test` or `npm start`, it will use _that exact version_ of node, regardless of what your global node version is.

2018-01-31

jihchi 08:46:07
https://twitter.com/andrestaltz/status/958350711246475264?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Introducing a new JS library: Callbags! It is: - A reactive programming library - An iterable programming library - All of the above - None of the above Check it out: <https://github.com/staltz/callbag-basics> <https://pbs.twimg.com/media/DUy-gGEXcAAah-Z.jpg>

1
jihchi 18:51:47
https://twitter.com/hrmny_/status/958511259758088192?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Excited to announce Parket, my take on a state library :pray: Small (~1.5KB) :snowflake: Immutable from the outside, mutable in actions :crystal_ball: Reactive (state emits updates without explicit calls to i.e. setState) :building_construction: Modular (you can nest models inside each other) <https://github.com/ForsakenHarmony/parket> <https://pbs.twimg.com/media/DU1ODPIXcAE4-_A.png>

jihchi 18:55:25
https://twitter.com/thejameskyle/status/958591823789940736?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

Just published: GLOW: Take your boring <https://twitter.com/flowtype|@flowtype> errors and make them awesome - Pretty-printed, code highlighted type errors - Interactive watch mode - Filter through errors to focus using globs <https://github.com/thejameskyle/glow>

jihchi 18:55:49
https://twitter.com/mbostock/status/957700460659421184?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

D3 5.0 prerelease! :tada: Adds contours, density estimation, ColorBrewer color schemes and adopts Fetch for loading data. <https://github.com/d3/d3/releases/tag/v5.0.0-rc.1>

jihchi 19:05:52
https://twitter.com/leeb/status/958515258527662080?ref_src=twcamp%5Eshare%7Ctwsrc%5Eios%7Ctwgr%5Ecom.tinyspeck.chatlyio.share

twitter

I just released DataLoader v1.4.0 which includes better Flow types and now supports direct use in the browser. If you're using it, check out this new version. <https://github.com/facebook/dataloader/releases/tag/v1.4.0>