« first day (1921 days earlier)      last day (3032 days later) » 

12:00 AM
(the data format is obviously different, but otherwise same ideas)
 
12:57 AM
Just finished a crewed mission to collect data on the easter egg on Bop
yay
 
kerbal
?
 
yeah
I'd post screenshots but spoilers
 
man i could never get a crew back... they all died on landing usually
(not the return trip either)
 
died on landing? I think that's called crashing.
a.k.a. "not landing"
 
If I need to find the area of a cylinder, then which function defi is better? f(height, radius) or f({height:10, radius:20})
 
1:09 AM
while I sometimes like objects as parameters, in this case I like the first one
 
definitely the first one
 
since the arguments needed for area of a cylinder is not likely to change
 
and @Luggage - attempted landing - lets not be so harsh with crash :D
 
when do you prefer objects as parameters? to change the state of an object
 
when the arguments are likely to grow additional ones over time
or when there are a lot
or a mixture of one or two 'primary' arguments and an 'options' object as the last one.
just my style...
 
1:11 AM
I like using objects when it's more of a "defined" type
 
2
A: What are the advantages/disadvantages of using objects as parameters to other object methods?

Doc BrownIt depends, and I try to discuss this by using a more real-world example. For example, lets say you have a Person object with attributes like FirstName, Surname, NameAffix, DateOfBirth, Gender. And you are going to create some methods to process that data (for example, for a formatted report). ...

@tymeJV you mean programming to interface?
 
that link is for PHP
 
Does php function calling mechanism is different from JS?
 
savePerson(newPerson) {
    //newPerson is an object
}
 
yeah... I suppose
 
1:14 AM
@tymeJV ok. I gues you replying to php question
 
// sometimes mix of objects and separate values makes sense
renderTemplate(name, options) {
    // name is just a string
    // options is a {}
}
No, that savePerson() was an example of what @tymeJV meant.
 
yeah... not the question
 
crl
!!> Boolean(false)
 
@crl "true"
 
Rigged
 
1:23 AM
that is boxing primitive boolean literal false as wrapper object
 
!!> [Boolean(false), Boolean(false)]
 
@copy "false,true"
 
ohh, that's all it was. I ran to MDN to see wtf was up
trolls :)
 
!!> 3 * -4 * -5
 
@copy 60
 
1:29 AM
Is it recommended to write singleton by maintaining function property(static member) or by maintaining private variable in function?
 
whatever works for you.
 
lol
 
2:20 AM
@Loktar wtf why
 
why not?
gotta make it pretty
 
also, I was half expecting a pickup ._.
no I don't gotta make it pretty
my computer is hidden away under my desk. I don't look at it
 
I show mine off proudly
sits right next to me
lol needless to say my next build will have glowing ram :p
 
why....
it doesn't make it faster
 
neither does a car painted red
just preference
I suffered through the beige case days
 
2:23 AM
@Loktar hangouts real quick ? about 20 mins thats it.
 
wtf is strikethrough lol
 
strikethrough
 
@Loktar I got an Alienware because of the lights. It was a silly decision.
 
i picked up the square corsair case, love it
 
@KevinB yeah that looks pretty nice
I know the one you're talking about can't remember the model#
I got that one for a win 98 build recently
put a mini atx p4 board in it
 
2:30 AM
corsair one is a bit.... simpler looking
 
yea
what i like about it is how the motherboard is more centered, which gives plenty of room for whatever cooling system you have
 
@Loktar what form factor is that, cubesat?
 
micro atx
 
pooey
go big or go home
 
2:31 AM
my primary is a full tower
 
lol
 
my old case was much larger, too damn big
 
but I like to get really small ones for my retro builds
 
too heavy
 
@Loktar try googling yourself
 
2:32 AM
my current case
@Abhishrek by my real name, or loktar?
 
@Abhishrek lol I can see both what you googled last and what you googled first
 
hahah
 
google urls are funny
 
2:34 AM
oh my.
I remember that
 
untss untss untss
 
3:33 AM
@Abhishrek I am mildly disturbed
 
@Lemony-Andrew lol
funny the difference an r and y can make.
rlemon made it lemony finds it disturbing vOv
 
hahahaha
 
4:22 AM
too dark ?
 
4:36 AM
ha lol
Does anyone know of good level editors? Even if they're not free.
 
@Lemony-Andrew level editors ?
 
@Abhishrek Such as for a game!
 
Aren't they game specific ?
/cc @SomeGuy @rlemon @Loktar would be the usual ones
they know everything about games
 
I wouldn't say they're "game" specific. Of course from time to time there will be some extra functionality required from a level editor but some can do the job for most games
I'm trying to use "tiled map editor" for mine, but it's missing one small thing for me to really use it effectively.
Actually, I think tiled may work for me, which is rather uplifting!
 
m59
4:59 AM
 
googles level editor
 
@pootis lol I've spent a lot of time looking at some haven't found what I liked.
 
m59
That's why I was saying "React markets itself as functional". At least some of the core devs do.
 
Level editor is very game specific to me too. 2D vs 3D for starter, and puzzle / strategy game editors are rarely compatible with each other.
 
@Lemony-Andrew i.imgur.com/xqPJdeM.png ...
 
5:01 AM
@pootis I've seen it, wasn't very happy with it. lmgtfy.com/?q=level+editor
 
@Sheepy same thing i thought
 
Aren't level editors game-specific?
 
The data format Itself is a pain to do right
 
@m59 I'm still not sure I'm sold on cycle.js though. Everything handled in one loop seems like a lot of bloat to me. I'll have to take a deeper look into it. I did watch an hour long video on it last night though, I was turned off by the excessive mount of code for an 'incrementer'..
 
m59
@Lemony-Andrew heh. Watch the first 6 minutes and tell me your thoughts =D
3:30 - 6:00 ish
 
5:05 AM
@pootis I've made a lot of different games using one level editor lol
@m59 I'll take a look!
 
m59
Cycle code is like 3x less code than React, outrageously less LoC in the lib itself, and outrageously lighter API (almost none), thereby reducing complexity.
 
@Lemony-Andrew When I was a kid, I used gba rom editors to make my own games.
 
@Lemony-Andrew And I have played lots of different games with their own, different editors.
 
I made *Pokemon TRO (Team Rocket Origins).
well, those editors, iirc, are game-specific
 
Let me see. The incredible machine, Balder's gate, Neverwinter nights, Heroes of mignt and magic, Civ, Galatic civ... These are just some game series, each with multiple editors (for different versions), that I can think off my head.
 
5:16 AM
All of those games have different level editors but plenty have many thousands more games with just one level editor.
 
downloads fire red
 
Ever heard of actual game engines such as unity3d, unt2d, cry engine, Game Salad, Game maker and Construct?
 
@Lemony-Andrew If only they were avail. for linux
 
@Lemony-Andrew Then you should say unity3d level editor, which will be for example very different from a Ren'Py editor.
 
@pootis right haha. There's a lot of factors I couldn't list for why linux doesn't have nice game-related things
 
5:20 AM
1. Money
2. Money
 
@pootis couch microsoft pushed for it cough
cough not couch lol
 
You gotta love Gaben. Ex-microsoft employee who's done a lot for us linux users.
 
I think DirectX helped a lot. In fact it was so successful, if it didn't screw up in some early versions I don't think OpenGL will be as popular as it is now.
 
@m59 I liked the first 7 minutes. Though, the shown example is extremely minimal and isn't comparable to a real word situation. Of course React is going to look larger for a minimal application, it wasn't meant for something as trivial as that!

Though, I do think cycle.js has potential. Do you know how it compares in dom-updates compared to react?
 
m59
@Lemony-Andrew as far as speed? I think it's faster, but I can't remember for sure. I can't fathom how cycle code could be larger for any purpose. The same principles that made that small apply always. There is literally nothing else to cycle but what was demonstrated there.
 
5:25 AM
@m59 there's also drivers though, isn't there?
Aren't drivers how you modularize your program?
 
m59
The DOM driver was demonstrated there
oh, no, the only other thing is isolate()
that's not verbose haha.
It's a single function call you need to use sometimes to isolate parts of the app so that you aren't using globals.
There's no magic, and that's the great thing. I suspect your issue may be more with functional programming itself and not so much Reactive programming and Cycle.
 
I see. I haven't seen that one yet! How do you segment your code effectively then? I mean, what if you have two similar functionalities in two different parts of the code?
 
m59
functions, my friend!
 
It really throws me off haha. The whole thing just seems fishy
 
m59
Learn functional programming first =D
if you keep watching staltz's talk about RxJS and absorb the examples, it helps understand what Reactive/Functional is offering that's so good.
It's just dead simple.
 
5:30 AM
Lol ramda not lambda
 
hello all
anyone knows about node.js here
??
 
@m59 Thanks for trying to keep me on board with cycle. I'll watch the video before going to bed so it's the last thing in my head!
 
m59
There's an image in that talk that shows how the application logic flows. Man... compare that to the recommended approaches to React (flux and flux-like things).
@Shubham Yes.
 
@Shubham I know enough to get things going lol, not a pro thouh
 
i am using socket.io in my chat application and i want to change socket.id
 
m59
5:33 AM
@Lemony-Andrew Neat. I'm glad you're not annoyed =D I'm just really excited about it. I've just been messing with it. I want to write a real app with it so bad, but haven't had a chance.
@Shubham why?
 
@m59 If you ever start a repo I'll contribute for practice!
 
@Lemony-Andrew tiled
 
actually i am creating userObject and appending this id to that object
 
@Loktar I'm sticking with that for now. It can get what I need done, I'm using it at the moment. Just a little cumbersome in some situations.
 
5:35 AM
@Loktar read his next message
 
and when socket is created there is a "/" in each socketId .
 
too many messages :p
 
@Shubham Read room rules. One of them: just ask your question, don't ask to ask. If anyone want to help they will. Otherwise tough luck.
 
@Sheepy OpenGL > Directx
 
@pootis not anymore, and not for a while.
 
5:37 AM
i am creating userObject and appending this id to that object
and when socket is created there is a "/" in each socketId .
and when i am sending this object via url , it is breaking.
 
@Loktar I've used both on my machine, and OpenGL does slightly better
 
@pootis on linux or windows? Under what circumstances?
vs what vs of DirectX?
So many factors when you're just talking about performance
 
That's for games originally developed for DirectX.
 
because Mantle and DirectX12 kill opengl.
 
@Loktar OpenGL on Linux, DirectX on Windows. TF2, Dota 2, NMRiH and GTA IV
 
5:40 AM
opengl quake also runs better for me than directx :p
 
@pootis They have a long history, a very fascinating history. You assertion does not only depends on point of view, I can also amend that they both messed up big in the past and captured opportunities in the past.
 
however Glide runs the best for me in quake.
@Sheepy there are generally too many feelings involved when discussing them
but when you see people like John Carmack claim DX has a better API, or a Valve employee saying why DX is better it's hard to really argue.
 
@Loktar Exactly.
 
@Loktar Objects in tiled are very annoying to work with. Do you know if there's a way to add a secondary grid or a better way to segment rooms within a larger map?
 
Then you see the crazy disparity of games in DX vs Opengl..
OpenGL works fine on Windows, however many devs still flock to DX for a reason.
@Lemony-Andrew I haven't used it for a long time :/
I can't remember anything about a secondary grid though
 
5:44 AM
:(
 
Its all moot though Vulkan is the future amiright :p
even though I still truly believe DX12 is haha
 
@Loktar Ahh it's alright, thanks though!
 
i am using socket.io in my chat application and i want to change socket.id
i am creating userObject and appending this id to that object
and when socket is created there is a "/" in each socketId .
and when i am sending this object via url , it is breaking.
 
6:04 AM
Hey guys! I'm making an ionic app and I'm connecting it using rest to my backend
I have recently heard about an unofficial app for the brand new social app called Peach using unofficial api details a person found when intercepting the network information using the app
Is there any way to "disable" this is a way?
I was thinking a token which is an encryption of the current time and the real token
 
@Shubham Escape special characters when you send and receive any text data. JS's url escape function is encodeURIComponent.
 
@Sheepy .. ok let me try
 
The escape part applies to all languages. HTML is not the only text that need escaping. All text data - even as simple as CSV - has encoding (escape/unescape) scheme.
 
i was using decodeURI and encodeURI
 
Always use the Component version.
 
6:26 AM
Hi
 
To download file from server i use curl and address something like that localhost/server1.xml. But if i want to download that file which entry is inside the server1.xml. So the directory path is like what?
 
@MuhammadRaza If it is an entry, then you'll have to use an XMLParser.
Use the iXMLParser. It's a magnificent gold-plated parset from Apple. Costs only $5999. Works on all versions above OS X 10.5. And oh.. the documentation. You can buy the documentation for just $999 a CD or $1999 a printed copy. That's not all, you can get free support from Apple Care, provided you have the iXP support pass, which costs no more than $1999.
3
 
6:45 AM
@m59 I'm half way through the video right now and I'm seeing some potential problems. The examples provided are working off of arrays --- or I guess they call them 'streams'.
@m59 Why would it make sense to use an array to get the number of clicks? If there's an observable checking for clicks, why not just add +1 to the click count? Why have multiple streams for something so trivial. It seems rather unoptimized and if this is the paradigm of cycle then I think I have a problem with it subconsciously.
@m59 The minimalistic examples demonstrating cycle's power degrade what it may be able to do effectively.
 
user3119231
7:31 AM
good morning :)
 
7:56 AM
mornin'
 
user2620028
mornin taco
 
user2620028
and good night
 
alright man. happy new year :d
 
user2620028
lol you too brotha
 
@taco Dude, it's almost februari
 
7:58 AM
Happy new year to you too! :D
I haven't been on much
 
Hehe
 
somebody's parsing xml? what year is it? :d
 
user3119231
@Cerbrus he's using ie8. The message arrived delayed
 
Anybody familiar with the psql command ? I'm a little puzzled by this PR : github.com/Canop/miaou/pull/64
 
@taco Pretty sure it's 2016 because I saw a "Have you seen my drone?" poster with a nice picture of a quadcopter on my way to work. Last year those posters were usually about missing cats
 
user3119231
8:18 AM
for (var i = 0, item; item = a[i++];) {
      // Do something with item
    }
 
user3119231
Know a good "for-loop".
 
be sure you have no falsy element in your array
(and that your colleagues won't kill you)
 
user3119231
at least you can do this:
 
user3119231
for (var i = 0, len = a.length; i < len; i++) {
// Do something with a[i]
}
 
user3119231
This is slightly inefficient as you are looking up the length property once every loop. An improvement is this ^
 
8:21 AM
Now, measure them. Because JS engines are optimized for the standard loop...
 
user3119231
I think Mozilla know what they are doing...
 
user3119231
In fact it is inefficient to check the arrays length every loop => especially if you have multiple loops running.
 
A good old one I often used before new engines was the one with the goto operator:
for (var i=arr.length; i--;) {
(in the frequent cases where the order doesn't matter)
I just checked on jsperf: caching the length in 2016 is dumb
 
user3119231
Just doing the same. Question is what is the perfect loop?
 
8:32 AM
The clearest one
for (var i=0; i<arr.length; i++)
 
@Maurize recursive loops are the fastest
 
because all the basic for loops have the same speed
And... Don't use the for...of of Babel when speed is, even remotely, a concern: the resulting construct is incredibly slow
 
user3119231
nah, the standard loop is ancient
 
function loop( n ){
   // do stuff here;
   if( --n => 0 ) // or whatever conditon
      loop( n );
}
that's the fastest
 
@towc Just to be sure, you're joking, right ?
 
8:34 AM
although you're limited by stack constraints
@DenysSéguret nope. Check it on perf
 
Did you really try it with a loop doing something that can't be easily removed by the compiler ?
 
Not sure what can the compiler easily remove but I think so
 
@towc you mean (n --> 0) right?
 
depends on your condition
oh wait, it's actually the same thing, right?
 
the goto operator is funnier.
 
user3119231
8:41 AM
drop it like its hot, drop it like its hot > stackoverflow.com/q/34871945/3119231
 
@Maurice I don't think you understood the question
 
user3119231
@DenysSéguret I don't think you got that there is a row_id even if you don't do a_i
 
recursion is a lot slower...
no idea what happened when I first tested it
 
how surprising
 
I also thought that whiles were faster than fors
 
8:46 AM
@towc why ?
 
relatively speaking, function calls are expensive
 
@DenysSéguret because I'm young and ignorant? XD
unaware of the dangers of the world
 
jsperf throws a 500 now :(
 
yeah, it's doing weird shit
is twitter down for anyone else?
 
> Something is technically wrong.
 
user3119231
8:51 AM
Why do I get REP -1 if I downvote a wrong answer?
 
so you're disincentivized to downvote like crazy
 
user3119231
He deleted his answer and now the -1 is gone.
 
@Maurice To ensure that people don't downvote irresponsibly
 
user3119231
Man he wrote: <title style="text-align: center"> 1 downvote is much too less
 
*too few
 
8:53 AM
yeah, kill him with fire
 
@Mosho @phenomnomnominal Stop kicking each other!
 
user3119231
 
@SomeGuy I can't
or I would
 
Oh, nice, you deserve that :p
 
9:02 AM
@Maurice agreed, he should've written <center><title></title></center>
Th̺̱e̻ ͏͙͓͓̜̬c͞e̢̮ǹ͓̪̲̘̬͙t̮͈̹͉͎̣̩e̖̥͔r̮̪̥ ͕c̞̟͚a̧̗̺͕̘͎n̨n͇o̱̙͉ț̥̜̩̺̹̜ ̕h͡o͇̬̗̠͓͟l̵̻̳̬̭̦̯ͅd͈̳͕̮̫̮̕ͅ
 
user3119231
no,.
 
user3119231
$stuff = ["<center>", "<title>", "</title>", "</center>"];

for ($i = 0; $i < $stuff; $i++){
	echo($stuff[$i]);
}
 
@Maurice what language is that?
 
user3119231
German.
 
I'm not sure echo() works in php
 
9:07 AM
It works
 
does
 
The () are just not necessary
 
thought you might need a space
 
Hm, let's test that
 
user3119231
I do () for better readability.
 
9:07 AM
 
user3119231
@Cerbrus Works 110%.
 
user3119231
HA
 
and please, 3v4l.org
 
9:10 AM
The one I used is a little easier to remember :P
 
user3119231
echo <<<END "BLABLA..." END; !==  echo(<<<END "BLABLA..." END);
 
user3119231
echo "BLABLA..."; === echo("BLABLA..."); :D
 
crl
9:27 AM
@m59 thanks, is there a notion of state also likein react? (funny because I'm doing similar dom things but on real dom, (don't really need vdom for a wysiwyg (using contenteditable, but I'll need vdom for drag-n-drop))
 
can anybody fix the jquery which i found. it works well with "-" but i want a space " " instead of dash while tying phone number. link to jsfiddle is here jsfiddle.net/juspC/218
i want the output to be xxxx xxx xxx
 
user3119231
oh okay.
 
user3119231
 
crl
@m59 +1 on what he says about jsx
 
did u try typing in it? it adds space abbruptly @Maurice
 
user3119231
9:39 AM
Yeah, I forgot to replace "-" with " " everywhere.
 
user3119231
 
cool thanks
the present output is like xxx xxx xxxx but i want it to be xxxx xxx xxx
can you explain me how do play with regx
 
user3119231
I can't but regexr.com can.
 
thanks. i would study that. but i need a quick fix to get the output as xxxx xxx xxx
i have a deadline today :(
 
user3119231
I can't help.
 
9:51 AM
ok
 
@razorranjan like this ? jsfiddle.net/juspC/683
 
yep exactly
i was not aware of $
 
user3119231
now make 50/50 with GNi :D
 
ahaha
thanks man
 
9:54 AM
$ is the end of the line, ^ marks the start
| is just an or
 
okay
 
do you understand what I changed?
 
haha, fair enough
 
yes
i got it
^ means the starting of the string
 
9:57 AM
@razorranjan The best way to thank us would be to spend the time you saved to study regx and, in the future, help others too.
 
with 4 chars
sure
i would do that
i used to help people with UI related probelms on SO
lately have been busy
 
@Sheepy today me, tomorrow you
 
@FlorianMargaine jsfiddle.net/juspC/685 pls
 

« first day (1921 days earlier)      last day (3032 days later) »