« first day (670 days earlier)      last day (4278 days later) » 

7:01 PM
@rlemon Nice! But you could easily break 100 if you put all your function args on new lines too
And don't forget your if conditions
They can be on new lines too
 
TheOatmeal is totally crazy. He made so much pub for the Tesla Musuem projects that they already have 400K $, in 20 hours...
It will make a lot of pub for Indiegogo too
 
I'm ticking on 80 lines, still haven't written anything useful yet
 
Nice
 
@Erfan your question will be close quickly I think...
 
7:05 PM
s/'re/r/
 
Thx, Luv'
 
:blink:
 
Someone told me the more LoC and the more complex your code is, the more money you will get paid.... so here is my 111 lines to declair the string "Hello World!"
 
héhé
 
lol, well I will be the first, I will keep you guys posted on how well it works
 
7:07 PM
@rlemon seriously ? :(
 
@dievardump turn that frown upside down mister.
 
101 lines! I still haven't done the logic for handling "Hello"!
 
$(dievardump).toggleFrown("fast");
 
@Zirak Nice!
 
@dievardump You Can Help Me :D ? how to create function for add new button is this editor (JqueryTe) ?
 
7:08 PM
oh man, this is awesome.
@atomSmasher Thank you. This project is like toxin release.
 
I tried to make mine not have any useless functions however
 
haha, glad I could help
 
I'm really enjoying how you guys are taking this whole "LoC is a terrible measurement" to heart.
And, of course, to horrifying extremes
 
it is
I still like this one (and I have to make sure I actually use it in a program some time)
var question = bb || !bb;
 
Does filezilla store a log of uploads?
 
Does filezilla store a log of uploads?
 
Pro Tip: before asking any question EVER, first type out the question, paste it into google, click search, and make sure it is not in the first three results. then ask
 
why would I do that?
Im in this window, now, full of PRO's right?
 
@atomSmasher s/PRO's/people more than likely working.... or making 100+ line hello worlds
simple questions that would require ME to google them... you should google first.
is all i'm saying
 
@rlemon I hope someday I can meet you.
 
7:14 PM
Aug 10 at 15:20, by rlemon
+15195880050
10 bonfield place kitchener ontario n2e1h5
rob.lemon@gmail.com
born september 5th 1986
I'm 5'8 (I shrunk 2 inches in the last 3 years :<) and 155lbs.
brown hair and green eyes (although they go blue depending on what i wear)
blood type O positive
 
Yeah, it's really about specificity. Your question was very specific to the tool, and not all of us will even use FileZilla (I do, but I rarely care about logs) - it's a matter of efficiency.
 
I'm pretty easy to find ;) :D
 
thanks Ryan
@rlemon good to hear
 
Chances are really good than a lot of people in here will Google anything that's not directly related to JavaScript, or web development in general (and even some things that are)
 
@atomSmasher I really wasn't even trying to be rude dude, I think you may have taken it that way - but really, this is why sites like lmgtfy.com exist. and @RyanKinal has got it right. we all have strong google-fu and use it quite extensively. so if someone asks a question that is more than likely first five result material...... expect to get a "google it" response
 
7:18 PM
so why respond with a smart ass answer? Why not type nothing at all
i thought this was a chat room
 
I responded with your EXACT question as a search term in google
 
time after time this website becomes more disappointing to use
 
smart ass || giving you the tool to answer your own question.
 
@atomSmasher The underlying message behind @rlemon's answer was that Google is a good tool, and using it is highly recommended.
 
hahaha
thank you for the news flash
 
7:19 PM
We often "teach a man to fish", rather than "giving a man a fish"
 
I give a man a fish, he eats for a day... I teach a man to fish, he (starts a fish market and sells the fish for a profit then buys some steak and) eats for the rest of his life.
 
rofl
 
@atomSmasher now who is being rude ? ;) :P
 
lol, not rude, honest
 
@Erfan I don't know. I hate jQuery.
 
7:20 PM
yes i'm a pedantic little SOB. but I am helpful and when given real questions I can find answers :P
 
0
Q: Can you create a complete website with only 1 page?

MattSo using XHTML,CSS,and JavaScript. You can change the content and structure of a web page. Could you build a website (that would normally have multiple pages) but instead bundle it all into 1 page essentially, and use JavaScript to change the structure and content of the web page so drastically...

 
@dievardump :D Not problem ... Tanx for all
 
@GNi33 ^ FragBuilder would be nice for that :P
 
oh god, the answers
hehe
i'm just waiting that someone starts to upvote every single one of those answers
 
does anyone know the address for google?
 
7:22 PM
Like... IP address?
 
1600 Amphitheatre Parkway
Mountain View, CA 94043
Google main office.
 
CA, US
 
no, there is a little white box at the top of my screen, I think I am suppose to use it for navigation purposes, I just really need to ask google a question
 
@dievardump there is only one "Mountain View, CA"
 
i was SO hoping that this would result in an endless recursion -> lmgtfy.com/?q=google
 
7:23 PM
-_-
 
@atomSmasher I'm surrounded with a big white box. but it is ok because it is padded and matches my outfit. It's getting harder and harder to type with my toes though.
 
if there was something like that for ddg, this could actually be the case.. hmm
 
@atomSmasher I dunno, maybe you should type "Google" into Bing.
 
hahaha
 
@rlemon yes but when I read a US adress, there never is a " US " at the end
 
7:24 PM
that's more like it
 
Like if it was obvious.
 
oh oh oh, there is
 
@dievardump I don't say Kitchneer, Ontario. Canada. I just leave it as Kitchener, Ontario.
but in googles defence. I got that from here google.com/about/company/facts/locations
 
ha, it happened
someone upvoted all of them
i dislike stupid questions with even more stupid answers like that
 
7:28 PM
@GNi33 Is it me, or is this one of those questions that will have no "best" answer?
 
nah, he stated he will just accept the first answer that was posted... hehe
 
BRILLIANT
 
who is upvoting questions like that? ah, well, i don't really care after all
 
Q: Can I make a one-page site? A: YEP NEXT QUESTION PLZ
 
That would be quite nice at Jeopardy
"You can do this"

"SPA!!! SPA!!!!!"
 
7:32 PM
Anyway... I've been more than useless at work today. I'm taking off early, so I can do something productive.
The most productive thing I've done is mess around with CSS transformations.
Later all
 
js sucks
 
have a nice evening!
 
see ya @RyanKinal
@Warz woah there..
 
@Warz LOLTROLLS :ignored:
 
lets not get hasty.
 
7:33 PM
im sorry i just dont understand it very well
 
ha, so chemistry sucks too!
or cooking
i don't have a freaking clue about cooking! it must suck!
 
it must
 
Nearly done...
Just need documentation
 
;)
@Warz nah, it's getting late, just ignore my stupid chatter, i can't think straight anymore
 
@Warz I don't understand vacuums... the suck..
 
7:37 PM
vacuums have documentation
 
@rlemon the 1 page website one?
 
well it got -5 of them.
the other -2 were another question
seemed more dramatic if I say it was all one.
 
so have +10 to even it out
 
lol I could really care less about rep. I'm honestly here for two (and a half) reasons: 1) to have fun, troll, be entertained, get trolled, etc... 2) to help people who generally want to learn. 2.5) to get help. but moreso to get guidance on how to help myself.
 
7:46 PM
@RyanKinal @rlemon @atomSmasher @Rob jsfiddle.net/WP4BJ
6
So, how much do I get paid?
 
@Zirak hahahaha, oh my god
 
@Zirak lol, dude I need to get you to go though my next open source project just to comment it after the fact.
 
It's 100% cross-platform
 
you forgot to include jQuery though
 
It's well documented
 
7:49 PM
It looks so JavaAbstractionFactory
 
unminified, would add a lot of lines
> function static_void_main ()
hehe
 
set : function (
        exprs
    )
    {
        this.exprs = exprs;
    },
 
@Zirak is that your code
 
OMG.
 
@Esailija :D
 
7:50 PM
You're hired
 
@Esailija look :
 //TODO: consider localization ramifications of amputation by a nation's
        // cancellation with violation of the right of pagination all for
        // liberation of vegetation accomodation
I Think it is his code
 
btw you can use prototypes and not be a douche bag zirak
 
You know what I'm most proud of though? It worked on the first try. Flawlessly.
 
with the unicode ?
 
jsfiddle.net/rlemon/wku2Y fuck LoC - it's all about obfuscation
 
7:52 PM
It's a cocophony of shit, but it's as smooth as a baby's ass
I'm gonna put it on a gist
 
btw don't new in the constructor, take the objects as arguments
then you can make mock classes
 
@Esailija QA doesn't like us anyway
 
Should I use GET or POST when running a PHP file?
 
depends on what you mean by "running" and what the case is
are you GETting something.... or POSTing something
 
When the user runs this PHP file, it sends out an request to the php file. And that php file edits a table on a MySQL server. It's used for a hit counter
 
7:55 PM
GET is for grabbing info, POST is for destructive operations (updating things, creating new things, etc)
@dievardump If, in static_void_main, you pass in the za locale, you can see zalgo's Hello World
 
@Zirak Thanks :)
 
@JasonStackhouse np
hm, I should find an old copy of netscape and see if it runs there...
oooorrr, I can ask Matt to do it!
nah
 
@Zirak You should try Lynx. Looks great, but does not support JavaScript. :(
 
@JasonStackhouse I'm trying to see if this beauty is truly cross-browser
 
@Zirak I wish everyone used Chrome. The world would have been much easier. But... competition is good =)
 
8:05 PM
@Zirak I hate you. I could feel my JS skill draining out of me as I read that
 
Just use breaks everywhere you can to avoid issues with not using semis at that per-line employer.
 
psh
amateurs
for(var i=0;i<2147483647;i++){
    document.write("<br />");
}
 
HTML doesn't count.
Wow, what's all that rage about the BR tag about?
 
NOW you tell me
 
8:17 PM
<br> tag rage? where
 
Uh 6h ago from you in the star column.
lol. NM. I got it. Didn't see the part where the client was disallowing br tags though.
 
yea, i wasn't raging on the tag. I was saying FFS use the tag. :P it was it's intent. and the client should not dictate your code, only your end product.
 
I just love that if there is only one scenario you can actually be certain you're using a br tag correctly, that would be it.
 
0
Q: Dynamically Add Custom Fields in Posts

SebastienI'm building a resume website and I would like to manage the data in custom fields. For examples I would have multiple meta boxes: Education, Work and Competencies In Work I can have multiple positions which hold the following data Title (text) Company (text) Start Year (text) End Year (text...

 
8:39 PM
oh crap, I forgot a copyright notice!
 
Muahahahaha
(the click action sucks atm)
 
are you deliberately making this painfully slow :D
 
@dievardump Would you enjoy working with arrays if instead of someArray[0] you had to write someArray.getArrayElementByArrayIndex(0);? I mean come on. Its a generic API intended for any language so it's hyper-explicit nature makes sense but between the cruft and IE, it's begging to get buried under a more tolerable interface.
 
@Esailija yes. you wait for each image to fully load, then there is like 400 ms to fade it in, then you wait some more time before I even request the next image.
 
The DOM doesn't suck, it's just low-level.
 
8:47 PM
tbh I'm just messing around with it.
 
DOM API*
 
I'll probably change it nine ways till sunday.
 
plz stop calling anything a "DOM" :D
 
blah blah blah
 
if you looked I tried to make shit modular as possible (because I knew it was going to suck)
 
8:48 PM
Your face is a DOM
 
Well there is a model.
My face is like a model's
 
Your face is low-level
 
@Esailija did you not read the source?
sorry @ErikReppen
 
@rlemon what about the source. Cool batman
 
yea i'm just trying to whore out batman ascii
 
8:53 PM
I'm probably gonna steal it at some point so don't remove it from rlemon.github.com
 
heh, nice batman :D
 
florian what's your eductation
 
EFOM API
nose.getBoogerByBoogerId('ew');
 
gist.github.com/3048666 @Esailija here you go boss.
 
@Esailija eductation?
 
8:56 PM
education lols
 
I have 29 out of 30 of my highschool credits. (sorry for the wall guys)
 
He learned to spell that at collage.
 
what about it? :x
 
I think I will have the same
@rlemon thankx
 
education is over rated. it does not depict your abilities or how smart you are. or for that matter your capacity to learn new things (which is all that really matters anyways)
 
9:00 PM
Also, Stanford can turn you into a total douchebag.
 
@FlorianMargaine nvm I can just see it from your facebook lols
 
@ErikReppen UofW as well.
Screw FaceBook get G+ and add me
 
lol
 
or add me to facebook and watch me never sign in
 
prefer facebook
 
9:02 PM
my gf uses my facebook to send herself farmville gifts.
 
I have limited browser tab real estate, I can't have 20 different social networks open at the same time
LOL
stackoverflow is already taking 10....
 
I'm hesitating of taking an extension that groups tabs...
 
i was offered a programming job for $7 an hour online today.... after calling him out and saying that that was less than minimum wage he called me an idiot because he already has a programmer in india whose willing to do it for $7/hour.... >.<
 
lol
did he really call you an idiot
that's so professional
 
9:16 PM
Hey guys
 
@Esailija it was in an online forum so it's not a professional environment. it was also in the "request a quote" forum.
 
why wouldnt this work:

(!$(this).hasClass("cActiveFeatureTab")) ? true : return;
 
I'd possibly do it - if i knew it's done in <5 minutes :p
 
a simple ternary operator, I would have thought...
 
@Kayote: Because you didn't understand the ternary operator. It's not equivalent to if
 
9:17 PM
return is not an expression
 
it uses expressions, not statements
 
do you understand the difference between statement and expression
 
@thi
 
@rlemon His website is awesome: evancarroll.com
 
What you probably want is: return !$(this).hasClass("cActiveFeatureTab") - this returns in both cases, false if it has the class, true otherwise
or possibly if(!$(this).hasClass("cActiveFeatureTab")) return;
 
9:18 PM
@ThiefMaster thanks; @Esailija, I thought they are the same, clearly not
 
that would return if the class is missing, otherwise continue in the current function
 
@ThiefMaster, I was trying to be clever & use Ternary operator instead of the long winded if statement :)
 
That might look clever but abusing them is just going to annoy people (and yourself when looking at the code after a few months)
foo ? bar() : baz();
 
The clever solution isn't always the shortest
 
also horrible
 
9:20 PM
Who the F is that Evan Carrol guy?
 
@ErikReppen: A troll.
 
point taken, thank you
 
they have very clear use.. if you have something like this:
var ret;
if( non_boolean_condition ) {
    ret = true;
}
else {
    ret = false;
}
you probably want ?: or even ||
 
s/true/non_boolean_condition/ - with a boolean condition you'd just return the boolean immediately, possibly negated if necessary
 
wow you can edit chat messages
 
9:22 PM
thanks @Esailija; so basically an expression can be a statement but not vice versa
 
tbh that's a shitty example
 
(ok, !! is even better for the example you posted, maybe make an example that does not return a boolean)
 
@Esailija uh?
 
var ret = !!nonboolean
 
oh wow, right.
 
9:23 PM
@Esailija oh oh, idea, s/foo/bar/ makes the bot do that; traverses up the messages, when it finds foo, it posts a new message where it's replaced by bar
 
then there's a = a && b || c which is same as a ? b : c
@Zirak lol
 
@Kayote Ternaries can be nice for setting flags.

Never mind. That would be stupid.
 
do you really think that would be useful?
var activeTab = $(this).hasClass("class");
prefer also conventional naming
var isTabActive = $(this).hasClass("class");
 
lol. I didn't even look at what was in the params.
Whose conventions?
 
booleans have the easiest naming convention of all
they answer a yes/no question
 
9:26 PM
thanks both
 
so you have isActive hasNodes canInterrupt etc
 
@Esailija, any recommended article for naming conventions?

I prefer long descriptive names so I can come back and read & understand
 
@Kayote But I do use ternaries a lot that way when somebody hasn't already done the work for me.
 
prefer short but succint names
 
9:28 PM
My favourite ^*2
 
overly long names make it harder to parse (parse, as in, for human to read) because of the sheer volume of content
 
I tend to shoot for noun/verb for method names.
 
@ErikReppen, I know, I feel super human when I use ternary operators instead of if statements :D
 
Er... verb/noun
 
@ErikReppen, example?
 
9:29 PM
Also, I highly recommend to watch these: chat.stackoverflow.com/transcript/message/4899915#4899915
 
@FlorianMargaine glad you found the issue! gratz
 
I said "found", not "solved" :D
 
haha
yeah that's another story
 
but I just solved it
added an event object to the core of tartempion
 
really? nice!
 
9:30 PM
toggleChoices, openCombo, BuildEDIConstructor
 
must be cleaner that way
 
it will be required like this var evt = require( 'tartempion' ).EventEmitter;
 
but there is a dilemma with methods
do you go for
getIsChecked() or... isChecked()
I tend to go for latter
 
I have 25 tabs opened right now
 
(btw, don't tell me to just read the property, this was an example)
 
9:31 PM
still kinda readable, but I need to close some -_-
 
For an internal state object I tend to use get/set.
 
@ErikReppen lol I just countered that :P
the point was that the return value is a boolean
just a bad example
 
I'm actually kind of on the fence. I kind of like JQ's thing where the pattern seems to be more noun.verb() or noun.property(), with property being a method that gets when the arg is empty.
 
say... isLeapYear(2004)
 
256 class override an ID in Chrome
 
9:34 PM
interesting find, I read that this morning
 
The important thing is that it's consistent and that if you have team members you try to go with the established convention flow.
 
@dievardump hahaha
css rules ftw :p
 
I'm guessing it's an HTML thing. Only a byte's worth of indexes somewhere for the tag properties?
 
nah it's a matter of css specificity
 
seems like i finally grasped something here..
 
9:42 PM
?
 
Yeah but 1 ID overrules any number of classes. That's easier to handle for a lazy programmer.
I think somebody assumed they'd never need to read more than a byte's worth of attribute properties on one tag.
 
so in theory I should be able to do a small game with decent lag compensation
 
Reasonable assumption until you work at a place where baby-cooking grills are made possible by setting page layout from query params.
 
@IvoWetzel interesting article
 
9:45 PM
I desperately need some new hobby project... doing API stuff at work for 6 months now :O
 
@Ivo I think that's why you get the rubber-banding effect on a lagging server.
 
If it works out like I hope, I'll have playable (as over the internet) version of this thing I made years ago
 
Nice.
 
awesome
 
oh this version didn't event have the screen filling asteroid of doom yet :(
neither has it the achievements
there it is
beware of the lag though, that's what killed it in the end :(
also seems to be running for quite some time now... judging from the round counter
 
9:53 PM
I made it 8 seconds without actually shooting anything and then I blew up.
I was better at StarControl 2 than Asteroids.
 
Let's hope this new things fixes the lag issues
 
@Zirak yea I luled at that too
@Esailija just got PWNED by rlemon
then rlemon drove into an asteroid
 
:D
 
thanks @ErikReppen & @Esailija for the help, just realised Ive been doing something similar with functions: function playingStarControl2() {....}
 
anyways, off to bed, one more work day tomorrow after all
 
9:57 PM
Vacation? I wish I had vacation.
Oh, weekend. Never mind.
I lost a Wednesday or something.
 

« first day (670 days earlier)      last day (4278 days later) »