« first day (2025 days earlier)      last day (2926 days later) » 

4:00 PM
@JanDvorak Mostly just passes it through, but can also compile it down to es3 or 5.
Apparently TS plays nice with React now, too.
 
@ssube somewhat advanced and yet you need them from day one. Day two if you accept the apostrophe in scanf as magic.
 
I really love their contractual type system and having interfaces, so I'm probably going to start using it instead of Babel.
 
lol
I hope we dont need babel soon for es6
 
Do arrow functions not confuse the flow checker?
Oh. It does understand the syntax.
 
TS had arrows before ES6 came out and Babel was a thing
 
4:02 PM
... oh.
 
support is pretty close to being equal: kangax.github.io/compat-table/es6/#typescript
I'm not going to miss generators or sparse spread much, so TS will be nice
but I do really miss interfaces
 
I don't think we can introduce TS where I work though. The code is full of global variables and other scoping weirdness.
 
Im at programming school (first year). 3 Years in total. I noticed not many teachers are familiar of design patterns.
 
TS makes me cry
 
For example the observer, strategy pattern etc. So when I show them code they struggle to understand how it works XD
 
4:05 PM
drcraigwright.net/about ugh -- blocking context menu, old jQuery, WP theme, cookie banner, crappy inline code... and this guy wants to claim creator of bitcoin? can I assume the underlying technology for bitcoin is also bs? (ofc he didn't write it, but he is happy with it)
 
@JanDvorak I'm not sure TS cares much about that.
@rlemon plus he looks like a boring Charlie Sheen
 
It would still be like polishing rust, though.
 
@ssube LOL
spot on man
 
@rlemon this guy seems like a narcist
there are more pictures of himself than actual text
 
Well, I guess I can bring it up...
 
4:06 PM
First I thought: oh, wannabe model? Oh no what is he doing? XD
 
@ssube I thought it was Charlie Sheen. Saw your message and opened it again.
 
@JanDvorak if you make a module with all your globals declared (in the "hey compiler, these exist" sense), that might be enough for the type check system to accept them.
 
> This website uses cookies
ok
 
^ indicates its out of the EU
 
Then you slowly add types to the globals and let them propagate down, allowing you to type more of the code.
Adding types should point out some dead code and inconsistencies, so you'll know what to start refactoring...
 
4:09 PM
@JanDvorak not that I advocate for types in JS, but integrating Flow would be a lot easier for legacy code than trying to feed it through the TS compiler
 
Do any of you have an idea how to optimize this code further?
 
@ndugger I think it's the other way around. Flow runs on JS, yeah, but it also makes more assumptions and infers more typing.
 
Can you tell TS to skip some files during compilation?
I guess what I mean to ask is that with flow, you have to be explicit about which files get type checked; can you do similar in TS?
 
@ndugger yeah, you feed it files like normal.
So you can set up your patterns or just give it individual files.
 
@ssube we have a lot of accidental globals, too
 
4:14 PM
for (i = 0;;)?
 
@JanDvorak then you add them to the global module as you find them and get free documentation
 
Friend try to resolve this small issue but i can't help him.
0
Q: Same data when i send multiple ajax requests

jellybeanI try to send multiple requests on the same url. I send users.length requests to the server because i need to ban all those users are in this array. The problem is that this code returns me always the same data. I know that i must use promises but i can't convert this code. for(i = 0; i<selected...

 
I smell a duplicate but I can't find it. Sickness induced deja vu?
 
@gtzinos You literally asked that question in here a short bit ago; Did you just create a second account to ask a question?
 
Was for a friend..
@ndugger
 
4:21 PM
Sure, well my "friend" wants to know where to buy the best drugs
 
orly
it's a brand new profile
 
Anyone with a dupe-hammer?
 
is there actually a second question?
 
I swear I saw one, but this guy's chat history says otherwise.
Oh, right. It was a chat question.
I've grabbed a half-full bag of honey rings and one ring came out. I blame adhesion but it might as well be I'm just going nuts.
 
Hello
are there site on stackexchange about ssh, ftp and network?
 
4:33 PM
*sites; yes
or *is, *any
 
About configuring them? Serverfault or Superuser depending on the type of question, but it can probably fit on SO
 
Thanks
Anyway I prefere ask here, how to I could connect 2 terminal?
 
Inb4 it appears on SO and it turns out it doesn't fit.
 
I would connect terminator and uxterm
 
What does it mean to connect two terminals? What's your goal?
 
4:36 PM
connect, how?
 
Being able to manipulate a shell from either? Maybe you're looking for tmux?
 
I use Ubuntu and would for examples connect with ftp
 
Maybe he wants a chat session
 
example: I give a terminator ip x.x.x.x and to uxterm ip y.y.y.y
 
You don't.
 
4:37 PM
from x.x.x.x I use ftp>open>y.y.y.y
Ah ok
 
huh
 
and only for do chat session from 2 terminal?
 
I don't understand. What's your goal?
Tunneling?
 
Can I do a screen
?
 
you're almost always looking for tmux
 
4:38 PM
You're not speaking in sentences
 
2 second
 
(but not actually here)
 
Does any shell offer a telnet server that connects local STDIN to remote STDOUT and vice versa?
 
Describe your goal
 
!!google tmux
 
@JanDvorak You can just nc
But I don't get what ftp has to do with anything
 
I would do a live
I explain you
If I from first terminal I use echo "lol" in the second terminal the terminal return me "lol"
Have you understand?
 
Powershell doesn't know nc :-(
 
@MattewDeveloper why would you want to do that?
 
...and that's that?
 
4:40 PM
@MattewDeveloper frankly, no
 
You want communication between two users?
@JanDvorak nc is netcat
 
all you do is have terminal #2 tail -f ~/file and terminal #1 echo "Hello World!" >> ~/file
 
@ssube Or nc
 
@Zirak Yes
@ssube There isn't a reason
 
shell1$ nc -lp 7443
shell2$ nc 127.0.0.1 7443
 
4:41 PM
I want testing
thanks, now I try
 
> Hey, I'd like the General's chicken and an egg roll for lunch.
> Do you want me to `nc` those to you or pack them in a `nc` or `nc` with `nc`? We have a special on `nc`.
 
nice
 
First shell creates a listening server, second shell connects to it
 
or you could just replace your shell with nc
 
totes
 
4:43 PM
or we could replace Zirak with nc
 
Cmd line:
 
Guys I noticed something. When I pass an integer variable to a recursive function then that variable is being multiplies due to the requestAnimationFrame.
	function update(i) {
		one(i);
		two(i);
		three(i);
		requestAnimationFrame(update);
	}
 
it doesn't work
 
so in my console instead of getting the index 0 I get like 1234.000
 
@MattewDeveloper you have to feed stuff into it
 
4:44 PM
@MattewDeveloper type something in the first console
 
@MattewDeveloper Make an effort and re-read your commands, you got it wrong
 
@Asperger huh, what?
 
> The callback has one single argument, a DOMHighResTimeStamp, which indicates the current time (the time returned from Performance.now() ) for when requestAnimationFrame starts to fire callbacks.
your callback will get the time, so you can do deltas
 
@MattewDeveloper Also, the port numbers are not the same
 
TIL Performance.now
 
@Zirak But I can use anything terminal or only terminal original of Linux?
 
just as I thought it sums up. Doesnt make sense
 
Because I use uxterm
 
@Asperger it's not summing.
 
@ssube oh!
 
4:46 PM
@MattewDeveloper You've used nc
It's a program
 
@ssube so I get the actual timestamp instead? thats what I understand
 
If you have nc you can run nc
 
ah ok
now I install nc
 
I give up
 
You already have nc
 
4:47 PM
@Asperger each call gets the current timestamp, with the assumption that if you care about time (for delta-time animation, for example), you'll hang onto the last timestamp and calculate the delta
 
So, I from my terminal must use

shell1$ nc -lp 7443
shell2$ nc 127.0.0.1 7443
no?
and then?
 
type
 
@Asperger see: jsfiddle.net/dd59mnu3/2
I get almost exactly 16ms between frames, which is 60fps
 
@ssube work
 
He does
 
4:50 PM
thanks many much
@Zirak @ssube Can I ask again a thing?
 
@ssube I only half understood what you were saying. How do I extract the actualy index then? which is 0 and pass that to eventual functions contained in the update function?
I thought of clamping really
 
@Asperger what index?
 
for example: requestFunctionCall(1);
for example I pass in 1 and I want 1 to be the value and not the timestamp
 
You don't
 
the callback within requestAnimationFrame doesn't get an index
you can't really do that
i.e., you technically can, but it means creating a new function every frame, which is super slow
 
4:53 PM
So I cant pass any parameters onto my update function?
 
you're better off using closure/this for state in the render loop
 
Ah! right you are
 
@ssube Can I know as you call this technique of connecting 2 terminal?
 
@MattewDeveloper nc
 
thanks :D
Sorry If I ask many much thing
 
4:56 PM
@Asperger like so: jsfiddle.net/dd59mnu3/3
 
But I like testing on programming and linux
 
@MattewDeveloper You can do much more than connect two terminals using nc
Type this in: nc -lp 1234
And open localhost:1234 in your browser.
 
type this in: your credit card number, your social security number, in chat, and then go to facebook.com in your browser
 
@littlepootis COol
cool*
 
jokes on you I don't have a social security number
 
4:58 PM
@ndugger I don't have any of them :D
 
@KendallFrey l2murka ya dirty syrup sucker
 
joke's
 
canada is too poor to afford social security to old people
 
anyway, Since I love network, connection etc. like thing from study is good study this: ssh, telnet and nc?
 
@JanDvorak jokes on you no one cares
 
4:59 PM
@MattewDeveloper They're just tools. Read a good networking book.
 
or ignore networking for the first 10 years of your education
that's what I did :D
 

« first day (2025 days earlier)      last day (2926 days later) »