« first day (1781 days earlier)      last day (3162 days later) » 

9:01 PM
*secretly writes mvc framework in jquery
 
Run. Run while you can.
 
$('body').mvc({options and a shitload of callbacks})
 
@Luggage since when are apples like pears?
 
since like, forever, man.
 
The latest thing is awesome! Whatever's popular is dumb because I've used it long enough to discover the tradeoffs. Also we built it all wrong because we keep switching too fast to learn how things work.
 
9:02 PM
superficially.
 
How long do you think the average time between a framework being made and the first question relating to said framework is?
 
@SomeKittens sounds about right
 
Sometimes the new framework is just a way to keep the devs interested.
so you let them fuck up the code
 
@Callum negative six months
 
@Luggage ... then get them to port it to something that makes sense?
@SomeKittens I can't say I've much experience within that area, but I'd say that's a very good estimate.
People should consider, y'know, not using the latest shit of the day :p
 
9:12 PM
Unless it's Gustav. Then you should be all over it.
 
But it's in development, which never usually stops me but for the sake of a point it will until somebody comes in and complains about jCurry not connecting to their database.
And anything in that read me may be not technically exist ;P
 
 
Angular's in that position right now
 
@Callum Oh, but there are MANY people that don't use the latest shit of the day. They use jQuery. You know. That has been around for at least a millenium and inspired the creation of JavaScript in the first place.
 
Popular, well supported, and people have used it long enough to really run into the tradeoffs & issues.
 
9:14 PM
things like modules and pagelets are probably the next aspect i'll try to tackle.
 
Most people don't use the latest shit.
That's asking for trouble.
 
Node was there a while ago, and that's where we got iojs
 
@r3wt Oh, you were being serious ;P
 
@SomeKittens Angular is past that into the decline phase.
 
Do people even use Angular in production? I've done a bit on Codecademy but never used it outwith.
 
9:16 PM
yes
 
@Callum, yeah and i know that it sucks, but its fun and its an api thats simple and easy for me to work with. that's why i'm pursuing it
 
Afternoon all, anyone here worked with Meteor?
 
@PaulMcloughlin Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@Callum yes, very much
 
9:16 PM
I use Angular for mobile apps. In production.
 
@Callum The majority of my career has/is Angular dev
 
I can see where it'd be useful, but there's already metric fucktonnes of other frameworks that do it too.
 
@Callum exactly
that's why people are moving to React, mostly
 
@Callum Well, given 11ty frameworks that do it, what would you use to pick?
 
turns out React is less of an engineering circle jerk
Angular was written to look like Java and eventually starts feeling like Java
 
9:17 PM
@ssube ...wat
 
@SomeKittens A die with 11ty sides, ShadyJS on all of them.
 
@SomeKittens Angular was modeled to make Java app devs comfortable
 
> eventually starts feeling like Java
 
that's why it looks so much like Guice and has bits of Spring and stuff
if you've ever used Guice, looking at Angular for the first time is weird
 
last I checked, I wasn't building an interface to a factory to an interface
 
9:18 PM
it's like "wait, did they copy-paste that?"
that's only because JS doesn't have interfaces. Wait for Angular 2, you probably will. :P
it already has service factory constructor factory service provider constructors
 
Will A2 have *.ang.js, then?
 
@Callum Typescript
which does have interfaces
 
type="text/jangular2"
 
user406009
STACKOVERFLOW IS ON TO US @rlemon. THE'RE COMING AFTER OUR EXTENSIONS. THEY HAVE ALREADY KILLED MY STAR COLLECTOR!!!!
 
all the factory/service stuff is pulled straight from Java's dependency injection best practices
 
9:20 PM
@Lalaland Is that why it isn't working?
 
user406009
Yeah.
 
user406009
They stopped providing names in their polling api.
 
user406009
It still works in the websocket api, but that's likely to change soon.
 
Can mods/ro's see who starred stuff?
 
anyone can, right now
 
user406009
9:21 PM
No idea.
 
user406009
@FlorianMargaine It looks like they are fixing that as we speak.
 
user406009
They have already fixed one api, the rest will probably follow suit.
 
@Callum with SO interface, no, noone can see who starred stuff
 
@FlorianMargaine Thanks,
 
the info is in the websocket though, but as @Lalaland says, it may go away soon
 
9:22 PM
You get people to send what they star to a server?
 
user406009
@Callum No. Stackoverflow chat works by having an event stream.
 
user406009
Post events, star events, edit events, etc.
 
user406009
The star events "accidentally" contained who starred the message.
 
user406009
So anyone listening to the event stream could capture that data.
 
I think they do that so that the "is star yellow" code is easy
 
9:24 PM
Shame they're removing it, though. What's the worst that could happen?
It's like a "like" on Facebook, almost
 
Used to work that way for flags as well
Star this if you think @BenjaminGruenbaum smells funny and eats old cheese
10
^ Now we can all tell your opinion on Benji!
 
Starred it for science anyway :p
So we can now safely star every message, then. Seems a bit silly.
 
@SomeKittens dunno about "smells funny", but eating old cheese is a good thing.
 
Old cheese is awful, I really only like cheddar. I know @towc will agree with me <3
 
user406009
@Callum The WebSocket API still has the "feature". It's not completely "broken" yet. It'll take some time to fix StarGazer though.
 
9:28 PM
@Lalaland But like you said, they'll probably fix it either a) now, or b) when they realised that the WS API is still 'insecure' (note the inverted commas)
 
user406009
@rlemon Do you still have the websocket code? Would it be ok if I used that to fix my star collector?
 
Hey, anyone in here good with canvas? Have a quick question
 
@Prefix @towc is and most others know some stuff about it
 
ok cool, mind if I Just ask here?
 
9:43 PM
ask your question and he should see the ping
 
I have a canvas that has the width/height of the window. On the canvas I draw a circle, and animate its x/y/radius around the page. currently I'm using clearRect before drawing the arc, but since the circle is the only thing being drawn, I only want to clear the area around the circle instead of the entire canvas. How would I calculate that?
basically instead of erasing the entire rect (which isn't changing), I only want to erase the parts that change. Trying to optimize performance
 
erase the whole (bounding) rect, it will be faster and easier
 
@Prefix Silly question: do you have stats that show that only erasing a small part increases perf?
 
you can grab a snapshot of what the canvas was before you drew the circle, then draw that back over it
if it's a simple (white/black/transparent) background, just draw a filled rect over it
drawing a rectangle is fast, don't worry if it only changes a few pixels
the rectangle should be from (x,y) to (x+2r,y+2r) to cover the whole circle
 
yeah its a simple page, circle is white bg is gray
not a lot going on
 
9:47 PM
@SomeKittens it is faster
it's also a lot more complicated
 
oh, interesting
 
afaik, most people just erase the whole thing because it renders fast enough
 
yeah, canvas isn't smart about only changing dirty pixels
no rendering engine wastes time at the pixel level, actually
it's all dirty rects, so the smaller you can make it, the better
@Prefix just draw a filled gray rect over it using the coords you have
 
1 message moved to Trash can
@Prefix Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
:25447846 you don't need the 100, but if you're worried about antialiasing, just do x-2 and x+2+2r
or 4 or 8 or something
 
9:54 PM
hm, the gray seems to only be drawing in the lower 4th quadrant
also if anyone has any general canvas performance tips I'm all ears -- animation was nice and smooth until introducing ad units to the page >_< now I'm trying to optimize whatever I can
 
good night
!!urban cbf
 
@catgocat [cbf](http://cbf.urbanup.com/120606) can't be fucked
eg: "i cbf going to work"

can sometimes be used as "can be fucked"
eg: "i'll come around when i cbf"
 
@Prefix Try this:
clearCircle: function (context, x, y, r) {
  context.fillStyle = '#e6e6e6';
  context.fillRect(x - r, y - r, x + (r * 2) + 100, y + (r * 2) + 100);
},
That should draw over the whole circle,
 
ah
excellent!
works a treat : ) thank you
 
No problem :)
 
10:20 PM
@Lalaland that is why they fixed the flag bug as well.
Idk if it was just my script, or I'd peopel had their own. But maybe 10 of us were monitoring and reporting flaggers
 
you're on mobile aren't you
 
Yes
 
That transparent rh?
Fuck
 
"I'd" is totally autocorrect for wanting to type "if" but typing "id" because fat fingers
 
m59
10:24 PM
Experienced Humble Bundle / Steam peeps, humblebundle.com
can I not redeem that bundle on steam?
 
Nope, Uplay only
 
m59
laaaamme
uLame
 
It even says at the top :P
> Redeem on Uplay
 
@Lalaland I wonder if that is now why my bot no longer works :/
 
m59
I saw. Just thought maybe there was a way. Like, my Assassin's Creed games are on steam and then direct to uPlay.
 
10:26 PM
I blamed phantom.js
 
user406009
It's always good to blame phantom js. Phantom JS is an abomination.
 
also, I wonder how that convo went down internally. "ugh, people are fucking using JavaScript again. god dammit, I suppose we'll fix it"
 
user406009
@rlemon The websockets still provide the info though. I double checked.
 
@m59 protip: humble games have icons below them indicating what platform(s) they support
 
@Cereal hey thanks for the game!
 
10:31 PM
what does it mean to "be basic" ?
 
been seeing that shared alot cracks me up
 
@catgocat you must be for beginners, and be an all purpose instruction code.
 
pastie.org/10390513 Does anyone here know why this code isn't working?
I'm running actionTimers.clear();
 
@Loktar Have you seen the one about a week ago where Mars was supposed to be bigger than the Moon?
 
10:34 PM
lol yes
it was a photoshoped pic with the moon red
cracked me up
 
@Loktar ha.... ha.
 
My friend shared that - he didn't get laughed at in Physics when asking about it :p
 
I think that I'm supposed to declare it differently... like var actionTimers = new actionTimers but, I have no idea. Any help appreciated. pastie.org/10390513
 
Well, could you link us to where you're getting actionTimers from?
 
I have way too many Basic Bitch symptoms.
 
10:40 PM
@Callum I'm calling it in another part of my code (below the function). I'm receiving the error Uncaught TypeError: actionTimers.clear is not a function
 
Could you give us the code to look at?
 
@Loktar how.. I mean.. why.. is the world really that stupid?
 
 
@Loktar that's the pok3r right?
 
10:45 PM
yea
 
@Nooble you have a friend
@Loktar the esc keycap is a nice touch
 
haha thanks
 
i have the HHKB pro 2, it's nice but the customization options are practically nonexistent haha
 
the hhkb looks really nice
dat price though
 
actually right now is the lowest it's been in a long time
 
10:51 PM
@Callum Did you receive my last post?
 
their export volume is very low so the price you see in USD is definitely affected by the usd/jpy exchange rate
USD always wins because murica
 
yeah still though over $200
the poker 3 was like $129
 
poker 3 is actually a really good deal
the case it comes with is worth like 100 right there
 
yeah for sure, since it has the aluminum case
 
yeah
 
10:53 PM
exactly yeah, feels really sturdy
I really want a back lit vs
was supposed to be out already, but haven't heard much
they did tease a poker 4 on their facebook page, that can split in half
 
@Loktar whats that?
ew ergonomic keyboards
 
@ʞɔᴉN I like pretty lights :p
 
aesthetics > ergonomics all day
 
@Loktar Can you help me... github.com/LNFWebsite/Streamly/blob/master/index.js#L63 Uncaught TypeError: actionTimers.clear is not a function I'm thinking that I'm doing it wrong...
 
really? i don't care much for backlighting
 
i wonder if it locks together securely
 
@ʞɔᴉN yeah that would be my worry honestly
I feel the same way btw about ergonomic keyboards
they are nasty (imo)
 
shh any minute now the ergodox horde will descend on us
 
@Loktar Thank you, looks like that worked. My knowledge of Javascript's advanced OOP has been very sketchy (as can be seen by my code). I appreciate it!
 
yeah np, good luck!
@ʞɔᴉN haha yeah I know there are people here who use ergos idk I can't get into them
 
11:00 PM
@MadaraUchiha Happy birthday!
21
 
@Loktar Pok3r master race!
 
:)
 
My WASD is a bit faded though.
It's programmable so > HHKB.
Although I miss my arrow keys :(
 
<3 imgur. open the console and they advertise react dev tools, and do the regular job PR crap... then I get like 5-6 react warnings :P
makes it look like a "use react, help us, see these errors?!"
 
user406009
@rlemon To be fair, react sometimes adds a lot of warnings each release.
 
user406009
11:06 PM
So if you are trying to stay updated, you can hit a bunch of them.
 
happy birthday @MadaraUchiha
 
wow so a police officer is going to be speaking to my sons class tomorrow on how violent games are the leading cause of violence in youths.
wtf?
also happy bday @MadaraUchiha
 
@Loktar are you for real
 
yeah, I feel like its 1996 again
 
11:13 PM
seriously
you should take him out for the day :P
 
Send your child in dressed in CoD apparel :p
 
ooo or that
 
there have been multiple studies disproving that.
haha well I want him to hear it, its good to hear what the other side thinks
 
^^
 
but I'm going to send him with a list of a few studies that have been done which disprove it
and he is going to ask her about those :p
 
user406009
11:14 PM
Isn't it a sort of trope by now how each previous generation claims that the youth is "being corrupted"?
 
@Loktar prepare for a letter home saying how he was "disrespectful"
 
@Lalaland i think this is a rather ironic twist on that if you really want to classify it that way
 
because you know, that is how those people think.
 
yeah I figure they will be annoyed
but I don't care. If they want to preach/teach lies he can totally question them.
 
user406009
This sounds somewhat similar to the "don't do drugs" talks cops give in the US.
 
11:16 PM
"we want you to challenge yourself and blah blah blah"
"HOW DARE YOU TAKE MY ADVICE LITERALLY AND QUESTION MY ALMIGHTY WORD!"
 
user406009
I think it was called DARE.
 
user406009
I believe it was actually proved that it caused more students to do drugs.
 
user406009
And of course triggered this hilarious SNL skit:
 
In Scotland, at least, we don't really get told "don't do drugs". We're taught about the dangers, but not told not to do them.
 
user406009
11:17 PM
A classic.
 
For STIs/STDs, oh god... They showed us some pictures :(
 
@Callum pics or it didn't happen
 
pics and gtfo
:P
 
@ʞɔᴉN Didn't have a phone with a camera back then.
> Hop in that van and GET THAT CANDY!
xD
 
@Callum i like to weigh the benefits against the consequences and decide for myself
our war on drugs was blown out of proportion IMO
good intentions but it's hard to tell if it had any positive impact
 
11:24 PM
All your wars are blown out of proportion, tho :P
You see oil and bring Freedoms and Liberties to the area c:
 
user406009
@ʞɔᴉN What do you think we should do instead? Do you think we should try to legalize some of the less harmful drugs?
 
FREEDOM!!!
 
@ʞɔᴉN SCOOOTLAAANND!
 
@Lalaland really I can't say for sure
making everything legal doesn't make any sense IMO
 
scotland isn't even free, bro
 
11:29 PM
SCOOOOOOTLAND!
 
scootland eh
 
anyhow, even legal (prescribed) drugs like opioids cause problems; people are on this stuff for life essentially or they have to switch to something like heroin
 
Aye, Scotland.
 
@Callum jolly good m8
 
11:31 PM
u wont som?
 
he does
bash his head in right proper
 
Ah fockin will, when I go to Murica, which could be never, but if I do. You should run :3
 
 
user406009
@ʞɔᴉN The counterargument is that some claim that several illegal drugs are safer than legal drugs. The common example that people like to bring up is marijuana.
 
@Callum Nah, we'll get drunk instead
 
11:33 PM
Probably, yeah.
 
if I'm ever in Scootland, I've already got one person I need to visit; I'll visit you too, and we'l get drunk
 
It's intentions that matter, not actions :p
 
I've had the same person log into Skype and log out immediately like 20 times.
I'mma head off, now, tho.
Naite
 
@Callum naite mate
@Lalaland this is definitely true in a lot of cases
the main advantaged to prescription drugs is the doctor controls the dose, therefore minimizing risk
 
user406009
11:36 PM
I would argue that the ratio of effective to lethal dose is more important.
 
user406009
You can still OD on a prescription by just taking more pills at once.
 
user406009
The risk of OD is lower when there is a large difference between the "fun" dose and the killing dose.
 
just don't abuse drugs, noob
 
@Lalaland yeah fair enough
 
user406009
There are endless arguments and counterarguments. It's a complex topic.
 
user406009
11:50 PM
All I know is that our current system seems very counterproductive.
 
yeah i'm sitting here trying to think of something but like you said it's quite complex
one argument might work for a certain class of drugs, but would fall flat for something else
and everybody has their own situation
 
my girlfriend just realized she can actually say life gave her a lemon.
five years folks. five years.
 

« first day (1781 days earlier)      last day (3162 days later) »