« first day (893 days earlier)      last day (4049 days later) » 

8:00 PM
nah just MI is so poor compared to NE
 
London, Ontario. Canada.
 
ah. got a minute?
 
@Loktar get a visa and move to Canada :P
 
<textarea id="area" onchange=change()>Enter your color here:</textarea>
<p background-color="000000" id="ptag">Your text here</p>
<script>
var change = function() {
var col = area.value
var pg = document.getElementById("ptagk")
pg
</script>
 
(ohhh noes ma guns!) <- I can hear it from up here
 
8:00 PM
haha
yeah I couldn't live outside the US
Im stuck here forever :P
 
@Loktar I feel like that could be a repository of horrible UI design.
 
im in the middle of a function, i want pg's color to change to the contents of the textarea
 
@RyanKinal haha yeah
 
@deep nothing about that code is right
 
@rlemon I have so many friends who are toooootally pissed about the so-called "war on guns"
 
8:01 PM
Oh god here it comes : what did i do?
 
answer: everything. wrong.
 
how?
 
I used to get mad about it.. but then I realized theyll never actually take my guns while Im still alive..
so now I don't worry as much :P
 
As in, you'll go out guns-a-blazing, or you'll die of old age before any real laws are in effect?
 
the first :?
 
8:03 PM
lol
 
but if they tried to take peoples guns shit would hit the fan
 
awkward angle.
 
so I wouldn't be a lone person or anything
 
Well, there was an arrest recently... in New York
 
ah yeah, totaly bs
the guy who stopped a robber right?
using his body guards gun
 
8:04 PM
 
New York is pretty crazy when it comes to gun laws
problem is they don't enforce current laws.. its really stupid
 
Embarrassingly enough, I don't remember the exact situation.
 
1) don't use inline event attributes, bind them with javascript.
2) pretty sure "background-color" is either deprecated or never existed
3) y u no use input instead of text area? <input type="color" id="color"/> if you want to be cool.
 
They're starting to, though.
 
> according to the National Criminal Justice Reference Service (NCJRS), in 2010 of the 6 million Americans who attempted to buy a gun, about 76,000 were denied. Of those, the Bureau of Alcohol, Tobacco, Firearms and Explosives (ATF) referred 4,732 cases for prosecution. Of these, 44 people were prosecuted and 13 were punished.
 
8:05 PM
@rlemon, what does var frm = document.forms.colorSelect,
input = frm.elements.userColor, bit do?
 
I mean thats insane..
76k were denied, so they knew they couldn't actually get one, yet tried
and only 44 were prosecuted?? lol
 
@Shmiddty 1) IE supported a bgcolor attribute iirc
2) color inputs are not quite there yet. I like them but they do some ill shit sometimes.
3) lists are fun, no?
 
would be like 76k kids a year trying to buy alcohol and only a handful getting in any trouble
 
@deep that is the most semantic code I have ever seen dude
 
Sorry?
 
8:06 PM
you know some will slip through the cracks and actually get the alcohol if you don't enforce the laws..
 
Semantic?
 
var frm = document.forms.colorSelect, // looks in the document, for the forms, then selects the form with the name 'colorSelect' or id 'colorSelect' (id takes precedense over name)
input = frm.elements.userColor // same thing but now searches the forms inputs (selects, input, button, etc)
 
Why do people still insist on doing var x = 10, y = 11; rather than var x = 10; var y = 11;?
 
@RyanSmith that is stupid
 
8:07 PM
@RyanSmith Er... what?
 
@RyanKinal Why do you insist on repeating yourself. :P
 
why would you insist on bloating your declarations by repeating var each time
 
@rlemon If a browser doesn't support them, they fall back to standard input. I see no problem with it
 
@rlemon maintainability.
 
@Shmiddty I have had chromium crash.
 
8:08 PM
@RyanSmith eh idk how I feel about that one..
 
@RyanSmith it's no more maintainable.
 
seems like he was in the wrong
idc if your a vet, follow the law, don't sell to a damn felon wtf.
 
@Loktar , I still do not see the problems kids (16+) trying to buy alcohol.
 
@canon I've whittled my vocabulary down to a small dictionary. It results in a more efficient search when finding the "right word"
 
@rlemon See Ben Alman's blog post, here shows how silly the first way really is.
 
8:08 PM
@rlemon Well that's a problem.
 
@Loktar I agree. But people are pissed about it.
 
@RyanSmith no the other way is silly and I don't need some other dev to tell me why. I've been a dev for ten + years and I am telling you var x = 1; var y = 2; is silly when you can var x = 1, y = 2;
 
Why?
 
i amma release my kamehameha
i am back on facebook :'(
cause of tapeer
 
8:10 PM
@rlemon Why is multiple var statements silly?
 
@RyanKinal yeah my complaints are mostly about restricting law abiding citizens. If you sell to a felon you should get in trouble, especially if he vocalized he was a felon.
Thats how these tragedies happen.. people who arent supposed to own guns get their hands on them
 
because his ENTIRE ARGUMENT is editor whitespacing
@RyanSmith sorry but so far all of your arguments on coding style have been pretty bad.
 
@Loktar Oh, absolutely. The part where people are pissed is because the guns he was selling were recently made illegal.
 
@rlemon No his entire argument is maintainability supports multiple statements.
 
lol, ok. troll.
 
8:11 PM
@RyanKinal yeah, thats where Im kind of on the fence in his case
 
and after reading bens article he is also a troll.
 
@rlemon I'm not trolling. I'm simply stating facts
 
but it's not a fact, it is his style an opinion
 
@deep i'm using a jquery plugin and for some unknown (to me) reason it create a div element after my script block which is at the end of the page. Of course i cannot remove it using my script since it's after the script block. Any idea?
 
@rlemon You've read it that fast?
 
8:12 PM
but.. he really killed any sympathy I had when he "sold" to a felon (even though it was a cop)
 
First think I would do is to change all of his code to , vs multiple vars if I had to maintain it
 
NY is retarded on gun laws though.. so restrictive
yet so much crime
 
and yes I am a very fast reader
 
@rlemon right
@rlemon and stubborn yes?
 
/me hates multiple vars.
 
8:12 PM
lol, no. sensible.
 
1 var to rule them all.
 
@rlemon why is it better?
 
ask anyone here what makes more sense.

var x = 1,
    y = 2;

or

var x = 1;
var y = 2;
 
Relying on automatic semicolon insertion... ew. I like my semi-colons.
 
@rlemon That's poorly indented
 
8:13 PM
I'd say
var x = 1;
var y = 2;
 
var x = 1,
    y = 2;
 
@BenjaminGruenbaum didn't format due to leading text.
there
 
var x = 1,
    y = 2;
 
lol quick everyone fix!
 
4 spaces for the next line people!
 
8:14 PM
@rlemon why is it better?
Douglas Crockford has also wrote a post on why multiple is better.
 
@RyanSmith because 1) less code, 2) just as maintainable Ben is a moron, and 3) more readable as well.
 
doesn't look redundant
 
I disagree with points 1 and 2
 
who cares what Douglas says :P
 
Crockford is also a moron. his style is not my style
 
8:14 PM
Who needs local variables?

(function(x,y){
    ...
})(1,2);
 
Honestly I don't care for his style at all.
 
@Loktar EXACTLY!
 
Crockford is not a moron... I just don't always agree with him.
 
2 and 3*
 
@rlemon Crockford is not a moron, you might not agree with him on a lot of stuff but he is defiantly one of the more knowledgeable JavaScript developer
 
8:15 PM
@Shmiddty lol
 
not to be a dick, but I find him less relevant since JS has exploded in recent years.
 
@Loktar Agreed
 
No one should always agrees with him, but on this particular argument I think people should
 
people used to preach his word as if he was the JS God. I give him credit for helping many in the dark times, but now idk, hes not the end all be all to me.
 
@Loktar I agree with that for sure
 
8:16 PM
@Loktar The fact JS exploded in recent years so well is somewhat attributed to him
 
unless I see some ground breaking performance or maintenance block for some code style, it's is my style and I can do with it as I please. and @BenjaminGruenbaum Crockford is a moron if he thinks his style is somehow superior than the rest (idk if he does but from the limited exposure to him not in talks he has been a pretty big dick)
 
@BenjaminGruenbaum yeah Id even agree with that
 
@BenjaminGruenbaum Agreed.
 
The "change the order of these statements" thing is an edge-case anyway.
 
user1125394
Is there something better than datatables.net to have sortable tables, please in your experioence?
 
8:16 PM
@BenjaminGruenbaum not knowledge on js. sorry, on style rules.
style rules are subjective (unless they make no sense at all)
 
@crl heh, thats the only one I've used.. the default style is so ugly, but they work alright.
 
@RyanKinal Yeah, I was like... "Really? That's the argument you're going with?"
 
and , vs multiple var is subjective for sure
 
@rlemon Dude, did you even read his lectures or are you just speculating? Crockford never said he thinks his style is superior...
 
@rlemon certainly is.
 
8:17 PM
@rlemon He is a big proponent of just sticking to a specific style
 
@BenjaminGruenbaum yeah its not reall him (Douglas) its everyone else who preaches it
 
> (idk if he does but from the limited exposure to him not in talks he has been a pretty big dick)
 
> Douglas does this! DO IT!
 
^ did you stop reading at some point?
 
user1125394
@Loktar fine ok, I don't like pagination, prefer the loadmore/ infinite scroll but that would be hard with sorting eh
 
8:17 PM
and limited exposure I mean: his response to emails and bugs in his software - he comes off as a big dick.
 
@rlemon watch his talks :) He talks about it. I've never seen him be rude in a bug-response or email response
 
@rlemon do you also leave out semi-colons?
 
in his talks and tutorials he is nice, but he is giving a talk. and obviously he is boasting his tools. so yea, he comes off a bit elitist.
 
@BenjaminGruenbaum same here.
 
@rlemon The argument against multiple var statements is hoisting, not saving key strokes.
 
8:19 PM
@rlemon did you and I accidently switch nicks today, usually you don't get many arguing with you :P
 
and when hoisting is concerned i'll deal with it
@Loktar no clue :P it's not even trolltember
 
haha
 
@rlemon which is why he usually says you should just pick a style and stick with it, that JSLint is a tool he created for himself to avoid common mishaps that happen to him.
 
@rlemon I'd hardly call this trolling. I just happen to have found someone who disagrees with my style and I want to know why, what's wrong with that?
 
It doesn't please my eyes.
 
8:20 PM
@rlemon That you should use it if you'd like, and you should configure it to use whatever standards you see fit, he does say what he thinks is important to use, and what settings you might want to change if you don't like. Also, I use JSHint, which doesn't enforce coding like Crockford
 
@rlemon You haven't answered two of my questions. (1) Do you miss out semi-colons as well? (2) Why is multiple worse than single?
 
ugh its like the comma first argument...
fuck that style too
 
@RyanSmith first question is no, and second question is moot because it is stupid - more code, no gain in readability, no gain in maintainability, only hoisting is concerned and when you use comma chained var declaration as part of your coding style this is engrained into you and you don't run into hoisting issues
 
@BenjaminGruenbaum I use his styles to improve readability and maintainability, but also to reduce the likelihood of bugs in my code.
 
@Loktar Yeah... SSMS generates everything in comma-first format, and it's pretty annoying (to my eyes)
 
8:22 PM
@Loktar Raynos is all comma first ASI hipster now isn't he?
 
Yes.
 
:(
 
I remember a time when he didnt love it
 
@rlemon It does benefit maintainability as Ben Alman points out though, so other than he is stupid I see no valid argument against his points.
 
@RyanSmith Readability and maintainability reduce the likelihood of bugs :)
 
8:23 PM
@RyanSmith no it does not benefit maintainability if you know what you were doing when you started writing the code.
the argument that he is stupid is valid if he thinks any of that MAKES ANY FUCKING DIFFERENCE! :P
2
 
@rlemon what if someone looks at it who didn't know what they were doing...
 
Then.. they should learn..
 
var x;
var y;
^ instant assumption is you didn't know you could var x, y;
 
hardcore mode: comment nothing, and perform all math with bitwise operators
 
^ done (really, I kinda do this now)
 
8:24 PM
Plane manufacturers don't make their turbine designs based on my knowledge
why should I write my JS to help a complete noob who doesn't understand JS?
 
@rlemon you don't need to know it.
 
user1125394
var (x,y);
 
user1125394
tuple in js..
 
I don't need to know what? the code i'm working on? the language I work with? my job?
 
var [x,y] = '1,2'.split();
 
8:25 PM
@rlemon "does not benefit maintainability if you know what you were doing when you started writing the code" I think that is probably one of the silliest things I've ever heard.
 
then you need to re-asses your career and/or hobbies
 
@rlemon Y U ANGRY?
 
I'm not. annoyed at this kid, but not angry.
 
@rlemon You don't need to know the single var statement way if you use the multiple statement way.
 
well.. to be fair if thats the silliest thing hes heard then thats sad..
just sayin.
 
8:26 PM
you and I arguing is just fun because I know you and when you are trolling
 
@rlemon I'm not trolling, that statement is offensive :P Also, no you don't
 
@rlemon You don't me, and this isn't trolling (which in itself proves that you don't know me)
 
LOL...
 
wow, now you two are confusing what i'm saying to whom
 
@rlemon Use '@' then
 
8:27 PM
@rlemon you dont know when Im trolling!
 
@rlemon Dude, he's a new guy, new guys always argue with room regs over stupid stuff
 
lol
@RyanSmith awesome thanks for teaching us that feature
 
@rlemon Also, I have no idea what you and @RyanSmith are arguing about
 
Im going to use it every day
 
@Loktar what feature?
 
8:28 PM
@BenjaminGruenbaum you are cool, I know when you are joking or not. So I don't get angry when we argue.
 
the @!!
 
I'm still waiting for a valid reason why multiple var statements is worse.
 
@RyanSmith cool story?
 
@BenjaminGruenbaum we were arguing about if multiple var statements is better than var x,y,z;
 
@rlemon It's worse, because of hoisting
@rlemon or was that what you were saying? In that case, I claim the complete opposite XD
 
8:29 PM
> Dear Journal Today I woke up, joined a random chat, and picked an argument with someone, was really fun. I heard the silliest thing in my life that day and I laughed alot!
 
@BenjaminGruenbaum thank you! At last.
 
user1125394
var potatoes, carotts;
var banana, apples;
 
!!>[x,y]=[1,2]
 
@Shmiddty "ReferenceError: Invalid left-hand side in assignment"
 
@RyanSmith About what?
 
8:30 PM
I'm saying if you know what you are working on and understand the arch you don't need to ALWAYS multiple var.
 
@Shmiddty Not yet :P
 
user1125394
grouped by meaniung
 
works in SpiderMonkey!
 
You don't need mult vars if you're not a noob basically is what @rlemon is saying.
 
var x = 1, y = 2;
var z = y - x;

why would I write var for y here? makes no bloody sense!
 
8:30 PM
@Shmiddty sure does :)
 
backgroundColor is for the background, whats font color?
 
^ color
 
@deep just "color"
 
user1125394
var x=1,y=2,z=y-x;
 
@rlemon why would you declare x or y at all in that case. Examples are great!
 
8:31 PM
@canon it was a stupid example.
 
@Shmiddty so style.color?
 
rlemon no want to type long examples
 
@deep yes.
 
.. what if x was storing coords of an object?
 
@rlemon I'm just saying that all these examples are stupid. So are alman's.
 
8:31 PM
yea.
8 mins ago, by rlemon
the argument that he is stupid is valid if he thinks any of that MAKES ANY FUCKING DIFFERENCE! :P
 
That dude leave?
 
user2157210
@Darkyen I spent the entire evening searching a german seller for this watch
 
or is he still laughing over the silliest thing he ever heard?
 
user2157210
I can't find
 
idk, he started it all too!
 
8:32 PM
@Loktar Not laughing.
 
25 mins ago, by Ryan Smith
Why do people still insist on doing var x = 10, y = 11; rather than var x = 10; var y = 11;?
 
We should try to be nicer to new people :(
 
@BenjaminGruenbaum Im generally nice
but when they aren't well then I don't care :P
 
I am too. some days I get argumenty
 
@deep side-note: It really should be font-color. (it would make more sense)
 
8:33 PM
@rlemon All I wanted was some actual reasons, not "that guy is stupid".
 
because his claim is stupid and moot
and the arguments I gave you didn't like
 
@rlemon X is bad because X is stupid is a fun argument :P
 
@rlemon channel @raynos "Because his code is shit"
 
@rlemon That's because your arguments centred around "that guy is stupid" or some similar variation.
 
@BenjaminGruenbaum no but my argument that it's more maintainable, readable, and easier to write was not taken well. so I backed it up with "he's stupid"
 
8:34 PM
@Shmiddty true or fontColor,
 
I like leading commas.
 
/me prefers gun arguments over silly var arguments.
 
@deep it would be font-color in CSS and style.fontColor in js
 
@rlemon The problem is you did not use enough bad words, should have added scalable, cloud, Web 3.0 and jQuery++ there
 
guys... can we argue about something productive... like politics or religion
 
8:35 PM
@rlemon Ben Alman clearly shows that one is not more maintainable though lol
 
@RyanSmith for him. not for me
 
@canon I like trains
 
@RyanSmith grats dude you read a blog and used his style.
/me golf claps
 
@RyanSmith In what article?
 
and whitespace and hoisting have NEVER become a concern for me
 
8:35 PM
@rlemon Ok politics and religion. So.
 
who even cares lol
 
Politics are dumb, and religion is stupid. === debate!
 
@Loktar Me, I don't want to be writing code in a bad style.
 
@rlemon Are you calling God stupid :O?
 
My style dictates that all variable declarations should be placed at the bottom of the function definition.
 
8:36 PM
If it works for you then good! :P
 
@Loktar If you guys think it's bad then there you must have a reason lol
 
@Shmiddty No it doesn't :P
 
@BenjaminGruenbaum well... he did make man...
 
Dont be like those conservatives trying to force your definition of marriage on everyone!!
 
@Shmiddty yh
 
8:36 PM
@Loktar haha ok then
 
I dont think its bad.. I just don't prefer it.
 
@rlemon Are you calling God stupid :O OMG, but God wrote The Good Parts and tells us that we should never use ++, how could you say that :P?
 
how do you inverse a collor? as in green to pink? 00ff00 -> ff00ff?
 
@Loktar ok.
 
@deep ~color
 
8:37 PM
@BenjaminGruenbaum come again?
 
@BenjaminGruenbaum - finally find the reason ... Google calculate the width of the label and make the adjustment in label in terms of adding dots at the end. So workaround would be increasing chart width or decreasing label font size. I decreased the font size and that did the tricks :)
 
@BenjaminGruenbaum hey I use '+= 1' not '++' lol
 
@SupriyoJana So you find the answer within, that's great!
 
@BenjaminGruenbaum yea I never did agree with ++ being bad. I understand what he is saying that most people don't understand the language... but that shouldn't stop me from using it's operators.
Why do I have to write code assuming everyone else is stupid
 
:'( No one gets my trolls except Zirak
 
8:38 PM
@BenjaminGruenbaum Love trolling people with ++1 vs 1++ haha
 
@rlemon I do agree with assuming everyone else is stupid though :P
 
like, I shouldn't use pre or post increment/decrement because tonnes of people don't understand it?
 
@RyanSmith For the record, both are invalid..
 
@BenjaminGruenbaum - rather than the answer the reason was important
 
obviously I mean x = 1 then ++x not ++1 lol
 
8:39 PM
should I avoid all bitwise ops because people are afraid of them?!
 
@SupriyoJana Exactly, I think it made you a better person
 
anyways, thank you all
 
how do you inverse a collor? as in green to pink? 00ff00 -> ff00ff? do i use maths? or is there a function for it?
 
@rlemon No, but you should avoid them in context they are not the common solution. For example, one could switch two variables using two XORs, but people don't because it's less readable than using an extra variable
 
8:40 PM
@deep it's not as simple as that unfortunately.
 
@deep Maths :) you want to invert the bits, that's just bitwise negation
 
@BenjaminGruenbaum agreed, but something as trivial as ++ or -- imo is not as horrendous to understand as bitwise operations
 
y9 computing knowledge tells me to convert them to binary 11011100 and inverse each digit 00100011
 
@rlemon I use ++ and -- plenty of times because I am very strict about typing. I'm confident enough in my code to not worry about 'implicit casting' or any of that stupid stuff
 
Can someone help me find what is preventing the pagination/scrolling from functioning properly on my site. I have a question with more info on SO
0
Q: pagination not working using ftscroller.js

alisamiiI am string to implement the pagination functions of a javascript developed by FT Labs called ftscroller.js. I am using it in conjunction with the companion polyfill script ftcolumnflow.js. Following the documentation, I have set up my html as follows: <html> <head> <...

 
8:42 PM
@BenjaminGruenbaum same, so I disagree with crock here. (all I was saying)
 
function awsumCodez(){
    for(;i--;) console.log(msg);

    /**************************
     *         oooooo         *
     *       o        o       *
     *      o          o      *
     *      o  STOP!!  o      *
     *      o          o      *
     *      o  HAMMER  o      *
     *      o   TIME   o      *
     *       o        o       *
     *         oooooo         *
     *                        *
     **************************/

    var i=99,
        msg = 'lulz';
}
 
@deep conver rgb to hsv then change h to h-360 (invert the hue) and then convert back to rgb
 
@Shmiddty lmao
 
unless, css take hsv or just rbg hex and hsl
 
(@dystroy) and everyone else: RFC please stackoverflow.com/questions/15658391/…
 
8:43 PM
@rlemon subtracting 360 won't do much. Did you want to subtract 180?
 
@rlemon So do I :)
 
@JanDvorak Know why it's called the xbox 360? Cause you turn 360 degrees and walk away. B-)
 
@JanDvorak no I meant 360 - hue but hue - 180 works just as well
 
@rlemon, how do i do that?
 
@rlemon hue-180 and 360-hue do different things. The latter preserves red and cyan
 
8:47 PM
!!/karma i
 
@Shmiddty i has 9 karma
 
poor i
 
!!/karma Java
Java--
 
@BenjaminGruenbaum Java has -1 karma
 
lol
!!/help karma
 
8:48 PM
@JanDvorak karma: No info is available
 
rgb to hsl?
 
Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java-- Java--
!!/karma Java
 
@BenjaminGruenbaum Java has -3 karma
 
oh wait Google! get back in here and help me!
 
8:49 PM
i++
!!/karma i
 
@dievardump i has 10 karma
 
Good Karma.
 
360-hue can be performed without converting from RGB. Just switch the green and blue channels
 
cartesianProduct :: [[a]] -> [[a]]
cartesianProduct [] = [[]]
cartesianProduct (list:lists) =
    [ x:xs | x <- list, xs <- cartesianProduct lists ]
 
Java-- Java-- Java--
 
8:50 PM
Haskell is so pretty :)
 
!!/karma Java
 
@ShotgunNinja Java has -5 karma
 
Good.
 
@dystroy Don't be so excited
 
@Zirak This guy has a pretty similar answer stackoverflow.com/a/12628791/1348195
 
8:52 PM
@BenjaminGruenbaum Not so surprising. Cartesian products are pretty much defined that way.
 
@Zirak your solution is still more verbose and heavier than mine :)
 
i just realized there were no error... i was just looking at the wrong line... fuq me
 
@dystroy I didn't mean to compete with your answer. I meant to explain implementation of cartesian products.
 
@Zirak that's why I make this comment here rather than on the question
 
8:57 PM
Hey. Anyone know anything about Three.JS? Having a problem with collision detection.
0
Q: Using THREE.Raycaster to detect collisions

Joey MoraniI've created this function which is called in my render loop to detect collisions and move the player/camera (it's a first-person game) The collisions are detected using a CubeGeometry named pCube which is moved to match the camera every frame: // Player movements function pMovements() { mPl...

 
Dat use of <script></script>
 

« first day (893 days earlier)      last day (4049 days later) »