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.

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:

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

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

2018-01-09

yhsiang 00:55:10
@cjies 這個出一陣子囉
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>

mrorz 10:01:31
其實不用 jsx 的話,react 也可以呀 ._.
jihchi 10:01:53
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...

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>

cjies 09:58:10
前天才升完 1.9… 囧
jihchi 09:58:46
不升也沒差吧,有你要的功能再升
cjies 10:01:12
對啊,剛好這次也沒需要的功能。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

jihchi 08:44:35
mrorz 09:59:48
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
所以也只能繼續用 :disappointed:
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 &amp; 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…

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:

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 09:45:53
點開發現進階設定 coming soon… XD
jihchi 09:46:04
XD
jihchi 09:46:10
不過一開始有搔到癢
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

mrorz 12:13:20
這個昨天看過,覺得「嗯這要怎麼跟 React 接 w」
jihchi 12:15:53
www
jihchi 12:16:06
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.

mrorz 18:43:29
沒有 relative date feature 呀
好吧繼續用 moment.js (欸
jihchi 18:44:39
咦。不是 date-fns 嗎
mrorz 19:07:56
咦咦咦咦
mrorz 19:08:00
mrorz 19:08:43
date-fns 勝
jihchi 19:10:21
Luxon 顯得沒有開發的意義

2018-01-24

jihchi 07:56:13
:tada: Trailing commas :tada: 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 &amp; 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
```
jihchi 09:31:05
你直接 `$ type node` 應該沒有東西吧?畢竟你是 full path 執行 `npm`,表示 `$PATH` 裡面沒有把 `/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/bin/` 加進去,自然找不到 `node`
mofas 09:34:31
我有echo $path 喔
mofas 09:34:51
外加我有直接執行 `/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/bin/`
mofas 09:34:54
一樣不過
jihchi 09:58:35
:scream:
mofas 07:40:48
我ssh 進去docker裡面 有檔案 但是執行一樣跳錯
mofas 07:40:58
不知道這誰的問題- -
jihchi