These are chat archives for escherpad/luna

18th
Dec 2015
Dominic E.
@d3lm
Dec 18 2015 09:25
Good job!
Ge Yang
@episodeyang
Dec 18 2015 09:25
Thanks!
Did you see the new readme?
also, to save part of the store:
Dominic E.
@d3lm
Dec 18 2015 09:27
You mean storing your state in subscribe in the localStorage?
Ge Yang
@episodeyang
Dec 18 2015 09:27
yeah… took me a while to find it lol
Dominic E.
@d3lm
Dec 18 2015 09:27
haha :D
Ge Yang
@episodeyang
Dec 18 2015 09:27
how did you know this?
Dominic E.
@d3lm
Dec 18 2015 09:27
Well looks ok, to do that in the subscribe
What do you mean?
Your combineReducers looks way to complicated :D
Ge Yang
@episodeyang
Dec 18 2015 09:29
Oh! It’s just that I was talking with people in the react discord channel (they don’t use gitter), and someone mentioned that they are stuggling with finding a good way to add persistent storage to save part of the store,
Dominic E.
@d3lm
Dec 18 2015 09:29
Ah ok
Ge Yang
@episodeyang
Dec 18 2015 09:29
and the way they currently do it feels strange (similar idea but different code pattern, making it kind of unintuitive)
Dominic E.
@d3lm
Dec 18 2015 09:29
Well localStorage is good to store things on the client side ^^
Ge Yang
@episodeyang
Dec 18 2015 09:29
yeah just for account session auth stuff.
but I AM planning on saving compressed data there too, so that user can load right away.
did I tell you about my real-time collaborate backend ^_^
Dominic E.
@d3lm
Dec 18 2015 09:30
nope ^^ ?
Ge Yang
@episodeyang
Dec 18 2015 09:31
What do yo think of the combineReducer’s function by the way? lol it is complicated indeed!
Dominic E.
@d3lm
Dec 18 2015 09:31
Yes crazy complicated :D
Ge Yang
@episodeyang
Dec 18 2015 09:31
haha so I wrote a nice real-time collaboration backend for my app, and it merges arbitrary data structure
can’t wait to actually start working on the app
Dominic E.
@d3lm
Dec 18 2015 09:32
Mh what does the backend do, besides merging data?
I mean you say real-time collaboration
Is it useful for people in development or what?
Ge Yang
@episodeyang
Dec 18 2015 09:33
so it is like firebase, but with comflict merging
for developing google-doc
Dominic E.
@d3lm
Dec 18 2015 09:33
Ah, I see
Ge Yang
@episodeyang
Dec 18 2015 09:33
took me a good three month
check this out
Dominic E.
@d3lm
Dec 18 2015 09:34
Nice, you work on a lot of "pet"-projects?
Or your own projects?
Ge Yang
@episodeyang
Dec 18 2015 09:34
escherpad is my pet project right now
just one I guess
Dominic E.
@d3lm
Dec 18 2015 09:36
Ok and the backend?
Looks amazing dude
Ge Yang
@episodeyang
Dec 18 2015 09:36
:flushed: so the backend is in node
Dominic E.
@d3lm
Dec 18 2015 09:37
Did you do this at work or just for yourself?
Ge Yang
@episodeyang
Dec 18 2015 09:37
just for myself
Dominic E.
@d3lm
Dec 18 2015 09:37
Nice
Ge Yang
@episodeyang
Dec 18 2015 09:37
thanks!
Dominic E.
@d3lm
Dec 18 2015 09:37
What did you use for the UI? Is that a desktop app?
Using for example electron?
Ge Yang
@episodeyang
Dec 18 2015 09:38
it is written in angular1
it is webapp
my build chain was not good at that time,
then I spent a month improving the build tool
then I realized that I should move to angular2
so now I’m re-writting the whole thing, in angular2 and typescript.
Dominic E.
@d3lm
Dec 18 2015 09:39
Ah the video looks like it was a desktop app :D
Ge Yang
@episodeyang
Dec 18 2015 09:39
Not sure if it is a good idea
Dominic E.
@d3lm
Dec 18 2015 09:39
Of course! Pretty good idea
Ge Yang
@episodeyang
Dec 18 2015 09:39
haha it is in safari, and I cut off the top of the window, that’s probably why it looks like a desktop app.
Dominic E.
@d3lm
Dec 18 2015 09:39
I am currently working on an ng1 app but using all the modern technologies such as webpack, typescript, es6 modules, classes etc
It kind of works out but still having some problems here and there
Ge Yang
@episodeyang
Dec 18 2015 09:40
oh man you are lucky
Dominic E.
@d3lm
Dec 18 2015 09:40
Will publish my starter for that on github soon
Ge Yang
@episodeyang
Dec 18 2015 09:40
nice!
Luna is using webpack, but escherpad is still using browserify
Dominic E.
@d3lm
Dec 18 2015 09:40
So the app structure to get ng + typescript + webpack up and running in seconds =)
Ge Yang
@episodeyang
Dec 18 2015 09:40
NICE!!
looking forward to it:)
Dominic E.
@d3lm
Dec 18 2015 09:41
Escherpad is on github?
Ge Yang
@episodeyang
Dec 18 2015 09:41
No, it is not open source at this point
I’m not exactly sure what I want to do with it yet
Dominic E.
@d3lm
Dec 18 2015 09:41
Ok
Did you do all the styling yourself? Or did you use a framework? Looks pretty clean and flat
Ge Yang
@episodeyang
Dec 18 2015 09:41
I do all the styling by hand
Dominic E.
@d3lm
Dec 18 2015 09:42
Ok awesome!
Ge Yang
@episodeyang
Dec 18 2015 09:42
usually it takes me two~ four hours per page
and then the crazy flex-box stuff takes longer
Dominic E.
@d3lm
Dec 18 2015 09:42
Just asking cause I am primarily a frontend js dev and this stuff is my passion :D
Ge Yang
@episodeyang
Dec 18 2015 09:42
it’s fun right?
Dominic E.
@d3lm
Dec 18 2015 09:42
Flex box ? So no IE < 11 ? :D
Well working on javascript is my passion and thats my focus but moving pixels for designers sucks
Ge Yang
@episodeyang
Dec 18 2015 09:43
T_T my gf right now used a IE 11, and my UI broke on the first date
She’s like oh no it is not working!
LOL

Well working on javascript is my passion and thats my focus but moving pixels for designers sucks

I see!

I do all styling myself from my head, and I enjoy the tweaking actually
Dominic E.
@d3lm
Dec 18 2015 09:44
Yea its nice
But you are using bootstrap below right?
Gird etc.?
Ge Yang
@episodeyang
Dec 18 2015 09:44
I used to, but very little now
Dominic E.
@d3lm
Dec 18 2015 09:44
Good, try InuitCSS
Modular CSS framework, based on BEM
Ge Yang
@episodeyang
Dec 18 2015 09:45
I’m almost completely off, but rely on BS for some of the button base styling
Dominic E.
@d3lm
Dec 18 2015 09:45
With just helpers and utilities
No styling
Ge Yang
@episodeyang
Dec 18 2015 09:45
I see!
let me check it out.
Dominic E.
@d3lm
Dec 18 2015 09:45
Pretty lightweight
Bootstrap is just a big gorilla and with Inuit you can use just what you need
Its broken up into several parts
Ge Yang
@episodeyang
Dec 18 2015 09:46
it looks linteresting
Ge Yang
@episodeyang
Dec 18 2015 09:48
reading now
Dominic E.
@d3lm
Dec 18 2015 09:48
The creator is well known for great CSS architecture
Ge Yang
@episodeyang
Dec 18 2015 09:49
yeah Harry Roberts
Dominic E.
@d3lm
Dec 18 2015 09:49
Yes
Aleš
@fxck
Dec 18 2015 09:49
inuitcss :+1:
Dominic E.
@d3lm
Dec 18 2015 09:49
:D
Aleš
@fxck
Dec 18 2015 09:49
harry is the man
Dominic E.
@d3lm
Dec 18 2015 09:49
Sure thing!
Ge Yang
@episodeyang
Dec 18 2015 09:50
hahaha
Aleš
@fxck
Dec 18 2015 09:50
just reading his articles made me like thousand times better coder
Aleš
@fxck
Dec 18 2015 09:50
got me into bem and shit
Dominic E.
@d3lm
Dec 18 2015 09:50
This is driving me crazy :D
Ge Yang
@episodeyang
Dec 18 2015 09:50
LOL
oh I see, I see
So have you guys checked out the angular2 animation?
Dominic E.
@d3lm
Dec 18 2015 09:51
Nope, thats ng1 -.-
Ge Yang
@episodeyang
Dec 18 2015 09:51
How ready is it for production?
Aleš
@fxck
Dec 18 2015 09:51
not much to be checked
Dominic E.
@d3lm
Dec 18 2015 09:51
From my ng1 typescript thing I am doing
Aleš
@fxck
Dec 18 2015 09:51
nope
Ge Yang
@episodeyang
Dec 18 2015 09:51
Right I am just wondering
I saw a talk from mooffoo about animation in angular2
and my app rely heavily on animation
Aleš
@fxck
Dec 18 2015 09:52
ng2 animations that were showcased on angular connect are not even released
Ge Yang
@episodeyang
Dec 18 2015 09:52
not even in alpha?
Aleš
@fxck
Dec 18 2015 09:52
nope
animations are faaaaaaaaaar from done
Ge Yang
@episodeyang
Dec 18 2015 09:52
:worried:
I guess my site will have to make do without animations for now then…
It used to be really pretty
Aleš
@fxck
Dec 18 2015 09:53
animations and router are two things that are basically keeping me from embracing ng2 fully
..and well, bundling, but that's another story
Ge Yang
@episodeyang
Dec 18 2015 09:53
What’s wrong with webpack bundling?
Dominic E.
@d3lm
Dec 18 2015 09:54
Well all the war between the tooling atm
Webpack, gulp, SystemJS, JSPM
Ge Yang
@episodeyang
Dec 18 2015 09:54
There went two month of my life.
Dominic E.
@d3lm
Dec 18 2015 09:54
But 2 month richer in experience =)
Aleš
@fxck
Dec 18 2015 09:54
I can't even get the "webpack" command working lol
Dominic E.
@d3lm
Dec 18 2015 09:54
Haha still not working :D ?
Aleš
@fxck
Dec 18 2015 09:54
nope
Ge Yang
@episodeyang
Dec 18 2015 09:55
lol if you need a working example, you can look at luna or Rob’s rxjs/store
oh rob is using systemJs I guess
luna has a working test
you just run karma start.
I use webStorm so it just runs the karma.config.js file.
Dominic E.
@d3lm
Dec 18 2015 09:56
Mh
Aleš
@fxck
Dec 18 2015 09:56
also tried making "vendor" bundle, now I've got two files, one 500kb, other 5mb, but it's kinda intermixed, some of my code is in vendor bundle, and some vendor code in my bundle
Dominic E.
@d3lm
Dec 18 2015 09:56
You get test working with ng2 and webpack? :D
Thats so hard imho xD
Or tests with ng1 ?
Ge Yang
@episodeyang
Dec 18 2015 09:57
@fxck I’m using browserify for bundling. Don’t ask my how long it took… the external vendor is not even working with typescript I think
@d3lm are you asking me?
I’m not testing ng2 in luna, just test the bare store object.
What’s wrong with ng2 and webpack?
Dominic E.
@d3lm
Dec 18 2015 10:00
Yes was asking you :D
Ge Yang
@episodeyang
Dec 18 2015 10:00
haha
so what’s wrong with ng2 and web pack?
are there know problems?
Dominic E.
@d3lm
Dec 18 2015 10:00
Mh havent done testing with ng2 yet but many people including Pavel say its a pain in the ass :D
Ge Yang
@episodeyang
Dec 18 2015 10:01
ah…
okay Chicago just reached 4AM, I’m should probably go to bed!
I will see you guys tomorrow!
Dominic E.
@d3lm
Dec 18 2015 10:02
LoL
What do you do up this late xD
Ge Yang
@episodeyang
Dec 18 2015 10:02
trying to work on escherpad lol
okay have to sleep now ^_^
night!
Dominic E.
@d3lm
Dec 18 2015 10:02
n8!