« first day (2084 days earlier)      last day (2858 days later) » 

3:11 AM
Funny because I can read this: stackoverflow.com/q/38113346/5647260
 
@AndrewL. answer it. It is your turn to shine!!!!
 
It asks if anyone can look at his code for him because of the error
@William Rather not lol
@William tempted to comment in chinese
请说英语 - Please use/speak English
 
3:28 AM
@AndrewL. just commented 请说英语 - Please use/speak English
 
Lmao
 
Why doesn't stackoverflow autocatch things posted in the wrong language?
 
It does.
It should
 
how did this get through then
 
Not sure. Think they only have a japanese, french, dutch, and russian filter @William
To prevent things like: сука блядь
 
3:30 AM
To be fair, the question body is almost all English.
 
Ehh
I can translate it
 
And since the single line of Chinese says nothing, main problem is the title.
 
Not the question itself but the content so you guys can understand
You speak chinese? @Sheepy
 
ton.yeung does i believe
 
Me? No, I won't say I speak Mandarin, if you mean that by Chinese. Not at all :)
 
3:31 AM
Haha
 
I don't believe anyone else besides Andrew and ton.yeung speak chinese
 
Title: 'When I do "new PhantomJSDriver" I get an error" Body: 'Could you please look at this code?'
Pretty vague and low quality anyway @William @Sheepy
 
@William 你肯定? 。◕‿◕。
 
我的名字叫李安得!@Sheepy
Just told you what my name was ;)
 
Nice to meet you. It my pleasure.
 
3:37 AM
你的名字叫什么?
What's your name?
 
Sheepy
The symmetry
 
:) it's amazing
 
Indeed :)
 
Semi-symmetry
Or: 田
 
How do you memorize all these?
 
3:40 AM
Memorize since birth boi
 
Roughly the same way you memorize words (not letters).
 
@Sheepy so do? Or is it Gogle Transalate
 
In English we don't read words as individual letters (until we want to). Same for Chinese.
 
Never google translate. That's cancer
Yeah. Chinese is a character-pictographical language
 
By the way, I'd write cat as 貓 instead of 猫.
 
3:42 AM
Traditional? Nah
 
It's hard to tell them apart
 
I'd prefer not bring that simplified vs traditional war here, so... your opinion is duly noted.
 
@Sheepy how fluent are you
 
:) My parents use traditional. I hate it. It's too complicated for my simple mind
 
@AndrewL. chinese is more difficult then english yes?
 
3:44 AM
Ehh, depends on which background you come from
 
ethnic background? or language experience background?
 
@William Not very fluent. Did some part time Chinese translation, both written and verbal. Only have 1 mil words under my belt.
 
I grew up witht both languages, though english is still the main one. I find chinese harder because of the writing but english grammar rattles my brain
 
only 1 million words hahahah
i hate english grammar
 
Is 1 million supposed to be little?
 
3:45 AM
Yeah, only
 
That's usually a big number
 
Ahh
 
@Meredith Compared with professional translators, yeah :)
 
1 million? Chinese doesn't have 1 m characters
 
I mean I translated 1mil, by the way, not that I know 1mil words. I don't think we have that much words.
 
3:47 AM
Ahhhh makes sense
That's still a huge number
When I was a kid I tried counting to a million. I fell into depression by 1079. I realized how big it was.
 
do you think knowing chinesee makes you smarter @Sheepy @AndrewL.
 
Chinese grammar can also be deep. Currently reading a book that compares the grammar of two different Chinese dialects.
 
I was just about to say that @sheepy
 
How many dialects does Chinese have?
 
It depends on the area too as casual speakers of different regions speak different dialects. Those can be confusing
Many, many, many, many
 
3:49 AM
Depends on how you define "dialects", really. I have seen examples of a language that is totally not Chinese but is written in Chinese characters.
 
Cantonese?
 
No. Cantonese use many ancient characters, even if most speaker can't write them.
 
My grandparents grew up in a small town near Jiangsu, they speak something totally different (sound-wise) to regular chinese but it's written in chinese
 
that is confusing as heck
 
@William Not at all. But it gives me an advantage when I studied language processing with my AI degree.
 
3:51 AM
I can translate it into mandarin
 
no wonder they had to make china communist
 
@AndrewL. hah same
 
The communist party is forcefully pushing Mandarin, so we are expecting many minor dialects go extinct in our lifetime.
 
@Sheepy it someone documenting the dead dialects
 
I will never forget the dialect I was taught
Sounds weird as heck
 
3:53 AM
It's not just the sound.. their verb endings are different
 
@littlepootis do you speak another language
 
I speak English, Telugu fluentky
Ignore typo
I'm somewhat good at Hindi
I suck at french
 
Say for example, the phrase small thing. My grandparents dialect, we pronounce it as 'xī gāo zì' but mandarin, it's 'xião dōng xì'
I can pinyin ;-;
 
pinyin is the future
 
The dialect usually adds an 'er' sound or a xi
 
3:57 AM
Do people speak grammatically correct Chinese?
 
how do you say williamm in chinese
 
Once tried explaining chinese to an english speaker. They gave up within 2 minutes when I introduced different sounds
 
or wiliam
 
I hate it when people ask 'whats (name) in chinese' because it's just a representation in chinese
 
is 威廉 rigth
 
3:58 AM
So pinyin: ao si dun
 
my biggest concern about chinese for me would be writing it
sorry about asking about my name
 
奥思顿 @William
 
@William williamm
 
@littlepootis No. Not aware of any language that do, for that matter.
 
Sounds almost like austin
In english, oww-sss-doo-un
 
4:01 AM
is it harder to type chinese in comparison to english because you have to use pinyin
 
I don't type Chinese in pinyin.
 
I don't either
 
wtf then what do you do
 
You write
 
My input method break down Chinese into parts, and encode them.
 
4:02 AM
Type chinese, maybe
 
I write
 
I use something like pinyin when texting
 
Please post a picture I don't understand how do you type chinese if not with pinyin
 
Rip not on stack imgur
Use your finger
 
that is on an iphone/android what about a laptop computer don't you have to use pinyin
 
4:04 AM
Think so
On windows I use pinyin
 
For example, in my IME, A = 日, B = 月. Then AA = 昌, AB = 明, BB = 朋.
 
and is pinyin harder then english character by character typing?
 
Ehh
Strings of letters make up one character in chinese
And then there's sound
 
It complicate matters that I am not using QWER keyboard, so that's another level of translation. If you type ASDF on my computer, it comes out as ARST.
 
ā á â à with the 3rd one having an upside down of what's currently there
 
4:06 AM
@Sheepy are you using azerty
 
probably not
not dvorak either
 
@William Yes. A lot. Because many words in mandarin has same pronunciation. So, after you input the pinyin, you have to further pick the character.
 
I am using Colemak. Tried Dvorak and don't like it.
 
Does everyone in china have iphones today
 
4:07 AM
Tedious when I write paragraphs for AP chinese. I'm not use to it
Probably
 
No. Android is the overwhelming majority.
 
Really?
 
Except that they don't use Google Play. Google is blocked in China. They use their own market.
 
Haven't been to china since '07. The year iPhone was launched
Yeah. Also baidu is cancer
Facebook and other social sites are also blocked
 
QQ is not though
 
4:09 AM
Ick. My grandparents use tht
 
Many Chinese use iPhone - more than most countries. It's like a symbol of status even now. But Android is so much cheaper, both in hardware and software.
 
Publishing to the app store takes 99$ a year versus the 25$ one time for gps i believe
 
So is apple not blocked in china although google is?
also is there google maps/ apple maps?
 
Yeah
 
Don't forget that, since Chinese has their local app stores, many paid apps and region locked apps are available for free.
 
4:12 AM
apparently
 
apple makes bank off cheap labor in china
Mhmm
Do you think taiwan should taixit from china? ;)
 
I heard that Foxconn just fired 60k worker, replacing them by robot. Haven't tried to confirm it.
 
Geez
 
what is taixit
 
taiwan exit from china
 
4:13 AM
Exit from china
 
@AndrewL. You joking? Politically, Taiwan says mainland China is part of them, "it's just under enemy occupation".
 
Lmao
 
you are joking taiwan will never exit from china
 
If they do my dad will go berserk
 
they have no representation at the United Nations and minimal at the Olympics
 
4:15 AM
If they become independent china will lose a tactical position for possible battle
So?
The vatican doesn't have either of those
 
the vatican has no natural citizensl
you can't be born in the vatican
vatican is a bad example
 
Fine.
 
Taiwan is independent for all purpose and intent. They are not on UN only because of China's power in UN. Apple and other major sites certainly list it separately.
 
China will veto everything abt taiwan independence
 
Taiwan has their own government, their own land, their own currency, their own finance system, and they tax China imports.
 
4:18 AM
21 un members and holy see recognize taiwan as independent
 
As independent as UK is after Brexit.
 
I want to live in taiwan some day
 
Ehh
 
is ehh acronym or just something else
 
No
 
4:20 AM
Just a sound
 
It's funny when people speak english/chinese and don't think I understand
 
that is funny
 
I can also understand spanish :)
 
wtf
@AndrewL. how
Well or just ok
 
You just piece it together
 
4:21 AM
spanish is like english
so i guess
 
I catch 70% of it then connect the parts I know
Only things I know in French are j'amapelle and noir
And deux
 
how do you like the matrix?
 
he is an asian american actor...other then that I just liked the move
 
matrix was ok. Just a bit weird when they showed the holes in the nipple region
 
4:24 AM
lol I love that is what you remember
 
Neo was asian/american right?
 
yes
 
That scene where he gets everything unplugged freaked my the hell out
 
you know he never left the matrix ?
 
But what if the 'real world' was the matrix? What if the world where they use humans as fuel was a simulation?1??1
 
4:26 AM
exactly what I was saying he never left
 
I'm talking about the scene where he gets the things unplugged from his head, nipples
 
@AndrewL. Nothing special. You still define who you are the way you think, you speak, you act.
 
I can barely remember the movie
I remember telephones, sunglasses, and of course, nipple-holes
Oh yeah and also that thing that went into his stomach
That was nasty
 
why did you say ehh when i said I want to live in taiwan?
@AndrewL.
 
Taiwan is not bad. Friendly people. Fresh local food. My dad, my stepmom, my boss, and my bosslady are at Taiwan now. Just occasional earthquake, party explosion, or gas pipe explosion.
I dearly love Taiwan's national museum's gift shop.
 
4:36 AM
party explosion
?
 
literal explosion. Many dead. Ground turned to blood pool with burnt skin. Quite a sight.
 
those taiwan people must really know how to party
 
Search "water park explosion" for the news. Dust explosion.
 
wtf doesn't this happen in the us? that is terribel
 
4:52 AM
I said ehh because there are some caveats to taiwan
Off to bed I go
 
> The "Color Play Asia" party was inspired by the colored powder used in the Hindu religious festival "Holi", also called "festival of colors", which is celebrated in India, Nepal, and other countries with large Hindu populations
How did that color powder.. explode?
 
Colored corn starch powder. May be ignited by a cigarette or spark. The initial explosion compress and heat surrounding powders and the site turns to hell in no time.
 
They should've mixed that with water...
 
5:08 AM
Hindsight is always 20/20. :(
 
lol
 
I recall the staff saying that they didn't imagine/know/aware that colour powder can explode.
Edible, food grade powder.
 
how about the guns they carried, were they imagined too to not fire :-P
 
Guns? I think we are talking about a explosion in Taiwan. That use fan to blow colour powder into the party.
 
5:31 AM
according to wikipedia en.wikipedia.org/wiki/Formosa_Fun_Coast_explosion no guns were involved
BYE!
 (\-/)
(='.'=)
(")-(")o
 
@William See you later
 
should i use proxy or just accessors.. to throw assertion errors, so I don't have to assert for it everywhere..
 
5:49 AM
mornin'
 
Guess that depends on how you assert and what to assert...
If few properties, or the assertion varies, use accessor. If need to throw on undefined property, use Proxy. Otherwise... your choice.
 
Oh ... I'm gonna have to use both.. Thanks
 
morning guys.
want to check, is this what functional js looks like?
return movieLists.
	  map(function(movieList) {
		return movieList.videos.
		  map(function(video) {
			return video.boxarts.
			  filter(function(boxart) {
				return boxart.width === 150;
			  }).
			  map(function(boxart) {
				return {id: video.id, title: video.title, boxart: boxart.url};
			  });
		  }).
		  concatAll();
	  }).
	  concatAll();

}
because it looks like callback hell to me.
just learning it and seems like its no better than normal js.
 
6:04 AM
map and reduce.. looks good with :: and better with |>
 
@cswl do you have a link for that operator?
 
@Ming For this part, yes. You can also extract the anonymous functions to top level to make each part smaller and it'd still be functional.
 
@Sheepy thanks. yeah that would make more sense then.
@Sheepy but the thing is, will i have too many individual functions just doing a specific one time job?
 
@Ming If you're gonna flatten the list (which concatAll usually does), you should do that first, then do your filter & map
 
I'm assuming you meant taking out the annonymous functions and making them separate from the main code
 
6:14 AM
@Ming Can you use ES6?
 
@Sheepy you mean () => {return x}. i cant find where you got that :: from although looks familiar. not too sure what |> means
 
|> is the pipe/bind operator
It's not part of javascript and probably will never be
 
@Meredith yes, but either ways, it will still have the same problem of unfriendly code. (eg: not too readable)
 
It's from another fp language... there's proposed syntax for :: which babel supports..
 
It should be the same as flatten |> filter |> map
 
6:18 AM
there's this library which uses :: github.com/jussi-kalliokoski/trine
 
@cswl good library. thanks for sharing.
just my thoughts but functional js seems much harder to reason as compare to other languages like clojure.
 
FP is a lot worse in javascript than it is in other languages
 
return movieLists.map( ({ videos }) =>
      videos.map( ({ id, title, boxart }) =>
         boxarts
            .filter( ({ width }) => width === 150 )
            .map( boxart => ({ id, title, boxart: boxart.url}) )
      ).concatAll();
   ).concatAll();
 
OOP is also a lot worse
 
How it might look in ES6.
 
6:22 AM
Logic and imperative are also a lot worse for that matter
 
any thoughts on elm or clojurescript?
 
Elm is great
Elm is what React wants to be
 
It all depends whether you want a job or a programming hobby ^^
 
is elm mainly used to replace frontend javascript?
 
Yeah
 
6:23 AM
What.. who uses elm?
 
It's more popular in the Elixir crowd
A lot of apps with a Phoenix backend prefer Elm over React
 
why cant elm be used for backend?
 
user3119231
morning o/
 
also elm cant interact with any js libraries right?
morning :)
 
You can use Elm on the backend
But nobody really does because Phoenix is like a million times better for that purpose
& because no one uses Elm for the backend, there's no support for it, so there's a feedback loop
 
6:26 AM
i see. but for frontend, does it makes things much easier?
 
user3119231
Never heard of Elm and Phoenix
 
JavaScript gained a new feature: the ability to deadlock.
 
can it work with stuff like meteor js?
 
Idk if it works with meteor
 
@Maurice check out elixir
 
6:27 AM
a) I've never really gotten to play around with Elm outside of like a todo list
and b) meteor annoys the hell out of me
 
i thought meteor was simple and productive > like rails for ruby?
 
If you use meteor you have to use it both in front and back end right?
 
I think
That was my impression
Which really bothered me
 
whats the best resource to learn javascript for MEAN STACK
 
user3119231
motivation
 
6:36 AM
I come from a PHP LAMP/WAMP background
 
PEPE stack #1
 
and now want to learn MEAN stack or javascript at best for future proofing my career
 
Learn React
 
mean never gained popularity imho
its jsut wanted to be what LAMP was
 
yea I am really confused
 
user3119231
6:39 AM
if you want the best for the future learn plain js.
 
on what to learn
that is what I am thinking
learning javascript
 
user3119231
plugins and libraries will come in tons
 
user3119231
but the source stays
 
so any startup guide to become pro in javascript for cross browser compatibility coding
I am at above basic level in javascript
and an expert in jQuery
 
Yeah just get good at javascript
Get caught up with ES6 and beyond
 
6:44 AM
@shivgre practice, practice, practice
 
Learn more CS principles too
 
user3119231
@shivgre If you are an expert with jquery start learning real ajax and fetch API.
 
@shivgre What kind of expert?
 
Good at using console commands and modifying any existing jQuery plugin
easily able to debug any jQuery errors
 
Can you rewrite jQuery?
 
6:47 AM
console.info() etc
 
That's not jQuery related.
 
Nah not that but yea if I need to modify a feature or fix a bug I could
but have not tried yet
 
Can you write Vanilla JS?
 
I had modified a lot of plugins written in jQuery
 
user3119231
@littlepootis I totally can, but do I want?
 
6:49 AM
I write 100% vanilla js for work
If you count using babel for es6 features
Let me tell ya
 
user3119231
@Meredith Same here o/
 
We don't use babel for server-side code.
We don't use ES6 for client-side code.
It's fun.
 
I can write pure javascript code to some extent specially for altering html and selecting any element
 
Half of my job is trying to figure out how to write js in a way that fits our principles
Which would be easy in most other languages
 
I spend most of my time trying to please linters.
 
6:52 AM
I am only afraid of cross browser issues while writing in plain JS
 
user3119231
my task for life is to find a way to write the best js!
 
We use the air bnb one
the linter
It's pretty easy to keep it happy
 
And code coverage ._.
 
May the lint gods have mercy on your soul
 
I remember the first actual code that I got to write when I started working
Was translating a bunch of unit tests from c# to js
That was fun
 
6:55 AM
> Similar code found in 1 other location
 
what is linter?
 
Wait, you don't use a jQuery linter??
 
no
I just writes jQuery in proper indentations thats all
 
Mhmm sure you do ;)
 
6:57 AM
you can't not
 
you can't not?
 
I just check browsers console using firefox firebug
and I make sure I don't have any console errors
and check if my logic is working as expected
 
It's not about console errors
 

« first day (2084 days earlier)      last day (2858 days later) »