« first day (1778 days earlier)      last day (3175 days later) » 

user406009
12:00 AM
Oh yeah, it was codepenisbetter
 
i cant tell if he's trolling or if he's serious
 
user406009
I think he's both.
 
user406009
I really do wonder how people new to programming come across PHP and think "Darn, that would be a good first language to learn"
 
user406009
Easy setup I guess?
 
user406009
Perhaps we need to improve the ease of setting up a simple nodejs server.
 
user406009
12:04 AM
Or more tutorials or something.
 
@Callum I am an idiot it was because I set two things named bob I renamed the first one two x, proto seems to work fine.
Just trying to learn (as a noob) the prototype chain prototypical inheritance etc
http://jsbin.com/juvoreteja/1/edit?js,console
 
@Lalaland there's already really simple tutorials for that
 
What the author meant by following: "It is bad practice to use and depend on setTimeout instead an event call back should be used. Otherwise different time durations can give indeterministic results."
 
i think a lot of node-related stuff actually suffers from too simple documentation
like socket.io
actually that's not even the problem, it's just so vague
 
lemon is pissed
from wine gums
 
DDR
12:13 AM
Lalaland: You can see something -immediately- when you're working with PHP. It's very direct. :/
 
@Lalaland I can't get over his name though. "php_purest"
 
DDR
It's horrible to scale though, imo.
Good at the start, not at the end.
 
if you don't fix that spelling error after like a year then you have to be a troll
 
lol
 
@ʞɔᴉN doesn't he mean that PHP is the 'purest' language :P
 
DDR
12:17 AM
Either way.
 
php the purest of all
 
user406009
@DDR I know. That's what I am talking about. PHP's success is partially an indication that we need better tooling.
 
DDR
I think it's deeper than even that.
After the php process is set up, which iirc is pretty damn trivial, you can write anything in a text file and have it appear. It's not php (yet), but then you can build off that as slowly as you like.
There's as little framework around it as is possible. The only simpler thing is Javascript, and that's complex because there's three to five internet browsers you can care about, each with their own idea of how to run your program.
 
class A {
  save () { return new Promise(); }
}

class B extends A {
  save () { return super().then(); }
}
 
DDR
"hello world" is valid php, one could argue - it'll print hello world when run.
 
12:21 AM
some part of me fucking loves that ^
 
DDR
You can also add php in to an existing html document trivially. It sucks for maintainability, but whatever. Easy start.
/me runs back to his lisps
 
@phenomnomnominal why the empty then? It just forks
 
@BenjaminGruenbaum yeah cause that's actual code :P
 
oh, I thought you actually did that, there's an actual use case
 
What's the use case?
 
user406009
12:28 AM
Darn, StartSSL is down tonight. LetsEncrypt can't come fast enough.
 
user406009
Are there any other free SSL certificate providers out there?
 
@Zirak looks fluxy to me
 
anyone have an opinion on this:
class A {
  save () { privateThing.call(this); }
}

function privateThing () { }
vs:
class B {
  save () { this._privateThing(); }

  _privateThing () { }
}
 
user406009
I assume you are using modules so that privateThing is not in global scope?
 
user406009
12:40 AM
I would usually go with option B if _privateThing actually needs access to the full instance. Go with option A if privateThing doesn't need a reference to this.
 
user406009
Anyone else have any comments?
 
B allows for the abuse of the interface
 
user406009
If people are going to call "private" methods, then you already have problems.
 
user406009
Simply enforce as culture to consider things with a leading underscore as private.
 
yep, but that doesn't mean I should make it easier
 
user406009
12:43 AM
I assume you already enforce that people don't do stupid things like Array.prototype.map = 3; through culture?
 
user406009
This is simply one more thing to enforce.
 
Yep, it would only be one more thing. But I haven't really seen a reason other than that's how you do it?
You didn't even say if you just think it looks nicer?
 
user406009
It makes it easier to understand what this is when you read privateThing.
 
user406009
I am totally fine with helper functions. I just prefer not to rely on fiddling with this.
 
Simply enforce as culture an understanding of this :P
 
user406009
12:45 AM
Especially consider the case where you have multiple classes in a file.
 
That's never going to be a case
 
user406009
Ok. Then they are roughly equivalent.
 
user4013295
12:56 AM
echo
 
user406009
echo .. echo .. echo
 
user4013295
LOL
 
user4013295
muffin runs away, scared off by his own echo
 
1:15 AM
Nick, who is drunk, flys in through the window, screaming, "PEPTO BISMOL"
 
1:26 AM
rlemon steals his booze
 
corvid is the booze
 
2:00 AM
One more glass, and I'll have drunk this entire bottle of wine
 
Cheers
 
Is there anyway to add to a function block?
 
This is the first bottle of wine that i've actually liked
I ususally pick out shit wines
I once had a wine that tasted like olives
 
Is it just the same as a c like function block or is it stored some where even before calling it?
 
fucking gross
what do you mean, adda function to a block?
I'm a bit drunk, but I can maybe help
 
2:08 AM
as in after defining a function can you make another this.varable = "bla"; later in you file
 
can you make a quick example of what you want?
 
ok
@Nick I'm just trying to understand the differences between a functions constructor part and its object part
http://jsbin.com/gazemuluzu/edit?js,console
 
So, wait... do you want it to be a static property? Or do you want it to be a property of an instance of f?
do I make sense? I'm drunk
are you familiar with javascript's prototyping?
 
2:26 AM
@Nick I'm a noob who's just learning so you make more sence than me anyway :P
Yeah I do understand how prototype is shared with new objects as [[prototype]] / __proto__
what I'm trying to understand is what a function is I guess.
 
Well, a function is weird in javascript... it can either be a regular function, or it can be instantiated, like a class...
However, we do have a new class syntax now
 
@Nick it appears the stuff in a function definition is not part of its object properties is that right?
just like c c++ php etc
 
uhhh, I dunno... too drunk
 
@sabgenton you could do str = myFunction.toString() and then some funky string shit and then new Function(str);
:P
 
wat
no
 
2:29 AM
@phenomnomnominal ok but that destroys the original function yeah
well your not using it anymore I mean
 
if you wanna be like the cool kids, you can use a transpiler, like babel, and use the new class syntax
class Foo {
    constructor() {
        this.a = 3;
    }

    static a = 2;
}
 
is that equivalent of function Foo(){this.a =3;} Foo.a=2; ?
thats the two spaces I'm trying to understand I guess
 
yeah
exactly the equivalent
 
ah banna !
 
class Foo {
    bar() {
        ...
    }
}
is the equivalent of
function Foo() {}

Foo.prototype.bar = function() {
    ...
}
is this helpful?
 
2:36 AM
Yeah when you said the first one match my one liner that was the kicker
yeah that makes sense too
 
class Foo {
    a = 3;
    static a = 2;
}
new Foo().a vs Foo.a
 
?
what about when I see .contructor on things
I guess it points to the whole object not just its constructor
..
anyway {} is an empty object function (){<stuff>} is an empty object with a constructor also (the braces)
thats what I'm taking away here
 
how do i show a different error message for different http error code received in ajax?
 
2:53 AM
1 message moved to Trash can
@ShubhamNishad Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
error: function(jqXHR, textStatus, errorThrown) {
    alert(jqXHR.status);
    alert(textStatus);
    alert(errorThrown);
}
 
3:09 AM
even on getting 403 response, function in 'error' not getting executed.
I tried something like this
error: function(jqXHR, textStatus, errorThrown) {
console.log('Hello');
}
 
3:54 AM
remind me never to become a woman and move to India
 
4:41 AM
happy new morning
 
happy happy
 
5:15 AM
this looks interesting: codebunny.io
 
5:27 AM
I was expecting this
left disappointed
 
@copy lmfao...on the one hand, "I can masturbate anywhere!" Is not a valid counter argument for anything, let alone antisocial behavior....but on the other hand everything else is solid gold...that's the internet, right there. Awesome
 
I don't like how they are using console.log and not alert.
 
1 message moved to Trash can
 
that code babes thing made my stomach hurt
aand then she said "your instructor removes one piece of clothing" and suddenly i want to kill myself <=/
 
5:35 AM
@DanieClawson it's fucking deplorable.
Like what the actual fuck is wrong with the people who made it.
 
srsly.
i dont blame the girls. i mean, its not as bad as porn and probably pays well. whoever thought that shit up, tho....satanists are higher on my list of good people
 
I know, let's solve the diversity problem in this industry by actively encouraging the alienation of women.
 
Oh man...why did i read the comments...
 
I can only imagine.
Seriously, if that's what it takes you to learn to program, you're not cut out for it.
 
Right? Go play football or something
 
5:42 AM
i herd dat
 
Your original message was fine
 
brb getting my club
 
lol maybe so but it felt like a step down the wrong path
 
Haha fair enough.
 
use your anger
join the dark side
 
5:44 AM
The worst thing is that the site is still up, so it's probably making money.
 
yeah its probably making a killing :L
I mean any reality in which donald trump is a presidential candidate is fubar, can't expect anything good
 
I was going to say they could've at least made a version with men as well, but that wouldn't fix it.
 
in theory Donald Trump sounds like a boss and I would vote for him
he's so delusional though i cant even
 
@ʞɔᴉN how exactly?
 
yeah, if by in theory you mean "if you like corporate run dystopian futurism"
 
5:47 AM
/nuclear obliteration
 
@phenomnomnominal erm, starting with the deportation of 11 million immigrants?
 
@ʞɔᴉN what about the other 300 million of you who came from Europe?
 
which our economy depends on
>implying I came from europe
illegals, I mean
 
Can you blame them? You spout on about how america is the greatest country in the world, then expect people not to want to be there?
 
5:48 AM
um
 
i dont understand why there is even a concept of "illegal immigration" in a country where the only natives are in tiny fucked up "reservations"
 
perhaps there has been a misunderstanding of what I'm trying to say lol
 
No, I understood entirely.
 
trump believes deporting 11 million people is a possibility
i do not
 
Oh thank fuck
 
5:49 AM
moreover its just preposterous
thank you, whew
 
I thought you meant that was a reason that he sounds like a boss.
I'm sorry
 
nah, its the sikorsky helicopter he flies around in for his presidential tour
boss material right there
also about how he gives no fucks about the traditional way of running for presidency
 
@ʞɔᴉN 1%er cocksucker material*
 
like posing in blue jeans and crap
@DanieClawson heh, maybe
night guys, i gotta sleep
 
@ʞɔᴉN if by traditional way, you mean throwing money at it until you win, then he absolutely does.
 
5:52 AM
true
but i mean the traditional crap like posing in blue jeans
photoshoots on hay bales
like cmon, you're not a rancher
 
No, but he knows he has a high chance of appealing to those who are.
ahh well
 
judging from my facebook feed he's killin it :{
 
he is
 
May god have mercy on our souls.
 
no kidding tho
 
5:54 AM
(non-existent gods and non-existent souls)
It'll be fine.
 
respectfully disagree :/ but either way we're all fucked
 
He won't win.
 
Yeah I seriously doubt he will either but I might honestly take him over Hillary :/ ... I consider myself pretty liberal, and I'd love to see a woman president while I'm still in my 20's, but that's just...embracing corruption on the highest scale
Actually I dont know which is worse
but aaaannnnyyyywaaayyyssss... i hear jQuery gives you cancer???
 
 
1 hour later…
7:16 AM
morning weekend coderz!!
 
MORNIN
 
what ya codin the day?
 
CODEFIGHTING
anyone knows how to check an array if it qualifies this condition
[2, 5, 4, 7, 6] = true;
[2, 5, 3, 7, 6] = false;
Checking if array values are [odd, even, odd] not [odd, odd, even]
 
just write a loop
 
kay
 
7:55 AM
is there a better framework than this for webgl games babylonjs.com
 
Wow.. i just even heard of it. thats nice
 
Hey dudes
 
8:22 AM
sup @Zeus
 
nm choz. What are you up to?
 
Why doesn't my code work?
 
@ZhengquanBai Did you ask it nicely to work?
 
1 message moved to Trash can
@ZhengquanBai Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
^You should use a paste site
 
8:48 AM
Can it wait for a wee bit? I need to go find something...
 
Thanks,
 
@SomeGuy that's pretty old :)
 
9:41 AM
Guys, philosophical question here - if you were a Leap Motion, where would you be hiding?
 
10:23 AM
!!should I really spend $20 on the Telltale Game + Goat Simulator?
 
@Zirak Impossible
 
But ;-;
The first two The Witcher games together are ~$4...
 
@Zirak do it.
 
Help I found more games it's now ~$40 but I'm broke what do especially since I don't have any time to play save me
 
10:38 AM
credit card, definitely use a credit card
also humble bundle end of summer sale?
 
sigh yes
 
anything good? I just claimed the free game
 
Look at Telltale Games
 
@Zirak crowd source it
 
Definitely. I'll kickstart "I want to buy these games", goal is $40.
 
10:43 AM
can't believe that planetary annihilation is at 2$ now
 
naah, Humble sale has nothing new for me
 
not all the games are listed, filter by discount
 
k, I'll just grab Goat Simulator, 140 and Super Hexagon...$8...kill me
 
super meat boy is for 1.5$
 
SHUT UP
 
10:47 AM
I already have everything from that list
 
super hexagon is more enjoyable on a phone
 
11:20 AM
@Zirak gamechangercharity.donordrive.com/… in case you didn't have it
40% off mad max on gmg x.x
 
 
2 hours later…
12:59 PM
My liver is a beast
It processes alcohol like a champ
 
Have a quick question, I think I've seen this before between windows and mac environment differences.

I currently have a frontend express/angular server running on 0.0.0.0:8000 and on certain events I'm trying to call the port localhost:3005 and my error is net::ERR_CONNECTION_REFUSED
 
sup scripters
 
I'm thinking I need to run all my microservices on a 0.0.0.0 port rather than localhost
 
How to check gulp version in terminal?
 
gulp -v
 
1:04 PM
!!tell Mr_Green google How to check gulp version in terminal
 
I know nothing, but have you tried gulp -v
 
yup tried that
 
gulp --help
 
throws error
 
1:05 PM
@mibbit You're not listening on port 3005
 
I will install it again
 
A yellow head appears
 
ohh I actually had installed it on other sytem :/
 
derp
 
1:09 PM
@Zirak OPTIONS http://localhost:3005/auth/local net::ERR_CONNECTION_REFUSED

clearly I'm pinging the correct port
running with PORT=3005 npm start to start the service on the desired port
 
@Callum not using i3wm anymore?
 
@AwalGarg New install, trying out new flashy things. I may return, though.
 
just use angular
 
Installed gulp now. still gulp --help of gulp -v is throwing errors
 
@Callum were you ever able to run nautilus on i3wm?
 
1:12 PM
install gulp globally
npm install gulp -g
 
I've still got i3 on my shitey desktop, but don't touch it now I have my laptop converted.
@AwalGarg Never tried. Is the command line too basic?
 
I am forgetting things :(
thanks nick
 
clearly
 
Y'know, I don't think I'll have to touch a Windows computer for the next few years, now. Quite happy.
 
While drunk last night, I told a girl over facebook that I'm a drunk because we don't hang out enough
 
1:14 PM
@Callum nah, I just accidentally opened nautilus in i3wm and it just hangs the workspace everytime I try (subsequent tries only out of curiosity).
 
@Nick Hehe, did she reply?
 
yeah
> Your logic is reprehensible.
 
@Zirak you revealed i3 to me right? still use it? ever ran nautilus with it? what happens? ever tried debugging?
 
@Nick Ha,
Trying to become a not-noob at Rust this weekend, variables are pretty damn cool - hastebin.com/ojajetusaz.rs
 
does the ! after println indicate anything? like ruby has it for predicates IIRC
 
1:23 PM
I'm ridiculously bored with my ps4, wiiu, xbox 360, and pc games... Why don't they make good games anymore!?
 
@AwalGarg It means it is a macro. Fuck knows what it actually means, but it is a macro. Not like a C macro, though.
It could have been a function - but fuck that for a laugh.
 
Do you guys use SVG spritesheet?
 
I've used PNG spritesheets, but not an SVG spritesheet.
 
@mibbit Clearly you're not
@AwalGarg I'm constantly switching between awesome, i3 and KDE. Don't judge me. And no, I've never ran nautilus.
 
1:30 PM
> KDE. Don't judge me.
 
@Zirak I'm running into Same Origin Policy, so the port is correct, the URI scheme is not
 
blasphemer
 
> Don't judge me
 
in this case at least
 
HOW COULD YOU?!?!?!
 
1:31 PM
@mibbit It's not same origin policy, you're not listening on the port
 
I installed LXDE to begin with, use gnome 3 most of the time.
 
netstat -ant | grep 3005
 
@Zirak in firefox Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at localhost:3005/auth/local. (Reason: CORS request failed).
 
@mibbit ...what happens when you browse to localhost:3005? Try to nc to it?
 
Should I go pick up an xbox one now? I was gonna wait until the Halo 5 edition, but I'm sick of the ps4
 
1:33 PM
@Nick When is the Halo 5 edition coming out?
 
@Nick As someone who intends to purchase a PS4 next year, may I ask why?
 
@Callum October 20th I think
@Zirak The current games for it aren't spectacular
same with the xbox one
 
@Nick That long? Would've thought that they'd have bundled the release.
 
but it will at least be something new until the good games come uut
 
user406009
Lol. StartSSL is showing an "SSL connection error" on their site.
 
1:35 PM
@Callum It does; halo 5 doesn't come out until a ew days after you can get the game edition of the console
 
@Zirak in browser connection is refused, netcat seems to be returning nothing, no hanging, just an immediate return so I'm assuming its healthy
 
Halo 5 is October 27th
noob
 
@mibbit When are you going to admit you're not listening on that port?
 
Depending on my bank account, I might just go get an xbox one today, and reserve the halo 5 game, vs getting the special decalled system, lol
 
@Zirak what do you mean exactly by that
 
1:38 PM
@mibbit returning nothing is not healthy
 
No program on your machine say "hey, whenever someone connects to port tcp 3005, forward that connection to me"
Know that thing you're doing on port 8000 (or whatever it was)? You're not doing it on 3005
The shit has sunk
No aliens were available to date you, please try again next Thursday
 
mumbles something about blood of virgins
 
The muffler has been decapitated
The center cannot hold it is too late
 
-1 not enough zalgo
 
ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
 
1:43 PM
I am writing my own websockets like protocol catered for web-SPAs and a client server implementation in C.
 
no zalgo
 
ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
lol
 
user406009
@AwalGarg How are you getting raw TCP access on the JavaScript side?
 
how you do that!!!!!1
 
who watched the olympics
 
1:44 PM
me sometimes
 
@Lalaland no browser/javascript here. just two sides communicating, and asking for resources (both using C).
 
user406009
@AwalGarg Ah. I have also done that. I ended up liking just a simple size and then data format.
 
user406009
Most of websocket's features are not really that worthwhile.
 
user406009
(Outside of the domain of browsers that is)
 
I find native English speakers like to say a word "basically"
 
1:47 PM
that's basically true
 
@Zirak solved it thanks. Btw wasn't my code I was working with. I'd like to think I don't do stupid shit like setting undefined env vars
...
lol
 
I'm a Chinese. I haven't been told about that over years of English learning.
 
@Lalaland I am just trying to optimize the shit out of it. so spa's can load as fast of simple sites (well, somewhat), but we can still have "apps" which can be loaded without installation. Ofcourse this is just for learning.
 
It would be the same if I tried to learn Chinese; I'm sure you say things in your every day life that they wouldn't teach in a formal setting
 
yes, that's the way things turn out to be
 
1:50 PM
!!afk
 
It's part of people's culture, slang, and trends in the language, not part of the language itself. It's the sort of thing you pick up as you're exposed to the language.
(though "basically" being a common word isn't something I particularly noticed)
 
Well yeah, "well" is much more used. I'm also pretty sure it depends on the regions.
Also, @Zirak 2.9
 
Ever since I got this new job, I get shocked when my money lands in my account; I always think it's too much...
THis is a great problem to have
 

« first day (1778 days earlier)      last day (3175 days later) »