« first day (761 days earlier)      last day (4180 days later) » 

4:00 PM
I mean, I guess I realized it... but I didn't much think about it.
 
Right, y.prototype is undefined
 
@RyanKinal They have __proto__ though
 
Yep. But IIRC, __proto__ isn't writable cross-browser
 
yeah, it's non standard and pretty much fucked up
 
Can someone help me turning this into a valid conditional click function?

if #DrawerContainer is visible AND IF there's a click on ".current", then do stuff
 
4:07 PM
you're mixing events and conditions
 
click-handler on .current, check in there if #DrawerContainer is visible -> do stuff
 
@FlorianMargaine well I'm learning so I'm sure I'm making a loooot of mistakes :)
 
I have no excuse for making a looooot of mistakes. I'm just stupid.
 
Ok @GNi33 but I'm really stuck with my javascript vocabulary... Now I'm fighting with this and it not even handling the click:

if ( (!$('#DrawerContainer').is(':visible')) || (!$(this).hasClass() != "current") { //do stuff });
 
$('.current').on('click', function(){
    if($('#DrawerContainer').is(':visible')){
        alert("OH HAI!");
    }
});
 
4:14 PM
@GNi33 syntax error: unexpected {
(didn't run it)
and it's "O HAI" !
 
ah fu
 
you vulgar person @GNi33
 
:)
 
I might flag you!
 
@FlorianMargaine fu not being directed to you
 
4:16 PM
@GNi33 I'm sad now
 
fu being directed to myself for leaving out that )

;)
don't be, makes me a sad pandabear too
 
ok ok I'm not
I still am though
but for other reasons
 
anyways, have a nice evening/day everyone, i'm off to vienna
see you guys!
 
Team Rocket is such a nice group of criminals. "oh, I see you made our pokemon blackout. here, proceed to loot our base and disrupt our plans. feel free to come back anytime."
 
4:19 PM
Hi
 
@Zirak ... are you still playing pokemon?
 
oh crap, my problem wasn't coming from this...
 
On and off. c# is bringing me down so I take frequent breaks. (seriously wtf brain?)
No wait
AAGGGHHH
 
4:37 PM
I want to play terraria
It is strangely addicting
 
heh yeah
I played the hell out of that game the first week it came out
apparently I dumped 130 hrs into it
 
@Zirak Why C# bringing you down? :(
 
the game gets kind of boring once all hardmode bosses have been defeated a few times though
 
@robjb Because I love data, and I hate writing dummy containers for data.
It's not C#'s fault, really
Well, it is. But it doesn't do anything extraordinary to suck.
 
at least you don't have to write getters and setters in C#
 
4:44 PM
oh don't remind me
There's something I just don't get in the C# world. Why the hell do people litter their internal data with int _x; so their transparent getters and setters will look nice?
Fuck people. Make it public. You're doing that anyway.
 
Probably because the getters and setters have either side effects or error/bounds checking
 
@Zirak I do it for the occasional case where I need to add logic to getters and setters, or remove a setter to make a property read-only (but allow setting the property internally)
 
thats why I use getters and setters heavily in JavaScript
 
There's less refactoring
 
Hey, can anybody tell me the key code of Android back button in Firefox?
 
4:47 PM
I mean transparent getters/setters
get { return _fudge; }
set { _fudge = value; }
 
@robjb You can do that with get; private set;
@Zirak That in itself is so wrong.
 
@ThiefMaster They've added a bit to the game since I played last
There wasn't hardmode when I started playing
 
And if the getters/setters have logic in them, I make it a method, not h4x
 
Seriously? I don't think it's that wrong.
 
@Zirak *facepalm*
 
4:48 PM
That's the whole point of properties over fields.
 
That's what property setters and getters are for, so you don't have to write a method.
 
Now complex logic, or non-intuitive side effects, those are evil.
 
Well of course you don't want to be mutating some global state from a property :P
But that's almost just as evil from within a method
 
@robjb I think that was one of the smartest things C# did since that's a very common pattern to use
 
@Neil Property getters and setters? I agree
 
4:51 PM
It might be because I'm a bit insane and nearly never use private methods
At least, people tell me I'm insane because of that
 
lol nearly all my methods are private. event handlers.
 
yeah you're nuts here
 
If you ever wanted to add getter logic, you're not stuck having to change it everywhere you used it
 
getters and setters are the greatest thing since bread
 
You only have to change the default getter logic on the existing property
 
4:52 PM
not sliced bread, bread bread
they're that great
 
@SimonSarris: They are not. But properties are.
 
lol Simon, I was about to comment on that before you did it yourself.
 
@ThiefMaster thou knowest what I mean!
 
I'd rather go without bread than without get/set.
2
 
"Real" getter/setters in Java are just a proof that the language sucks ;p
 
4:53 PM
Getters and setters are nice, but methods are betters. getFudge and setFudge are ungh, but at least methods have a logical name if you do logic.
 
Disagree :(
 
the class system sucks by the way
2
 
I do agree with "getFudge and setFudge are ungh"
 
howMuchFudge and setAmountOfFudge?
 
Who needs bread? Let them eat cake
Lets see how many cliches we can make off of this..
 
4:55 PM
once again I side with the robs of the room
 
computerPleaseTellMeHowMuchFudgeIsThere sounds better than getFudge?
btwLowerCamelCaseSucks
iCantReadCodeWithIdentifiersStartingWithSmallLetters
 
UpperCamelCaseIsntCamelCaseAtAll
ItsCalledCapitalization
 
UpperCamelCaseIsCamelCaseItsLikeLookingAtCamelFromTheLeftSide
CamelsHeadIsHigherThanCamelsButt
SomeCodeInCIsntCamelCase`SomeCodeInJavaScript`IsBecauseTheButtItTooHighInTheFi‌​rstExample
 
Hmmm. I guess you're right. But not due to that logic.
But I always thought there was a difference between "camel case" and "Pascal case"
CamelCase (or camel case), also known as medial capitals or Pascal case, is a term which refers to the practice of writing compound words having one or more internal uppercase letters. Such words may be formed, for instance, from phrases in which the elements are joined without spaces with each element having a capital letter within the compound. Pascal case words always start with a capital letter, but camel case allows the first letter to be either upper or lower case, as in "LaBelle", "BackColor", or "iPod". The name comes from the uppercase "humps" in the middle of the compound word, su...
 
Pascal case? o_O
It's case insensitive
 
5:01 PM
Java beans says that if you have <class>.getSomething and <class>.setSomething, then you can use EL expression to say <class>.something to set and get that property automatically
 
Maybe "Pascal case" means Win32 case?
 
:shrug:
 
It works also with boolean if you use isSomething.. but only for is, which annoys me to know end to not be able to write "areSomething"
 
I dunno... to me, lowerCamel for variables, UpperCamel for classes/types.
 
Something like NPCSquad.IsEnemy sounds better than NPCSquad.AreEnemies to me
@RyanKinal same
 
5:04 PM
UPPERCASE for constants :-D
 
But I prefer Subsystem_FunctionName for functions, globals and macros
@RyanKinal no
 
UPPER_CASE? :-P
 
For constants, I prefer Subsystem_ConstantName
Because it can change to a const variable or even a mutable variable at some point
 
Yecch. Underscores are for SQL tables/columns
 
@SiPlus I'm trying to think of a good circumstance but annoyingly nothing comes to mind
BooleanCollection.IsTrue
 
5:06 PM
Module_GlobalName for global stuff, localName for local stuff, the best naming convention ever
 
I want to write AreTrue
 
In namespaced languages, Module::GlobalName
IsTrue for single instances, AreTrue for lists, sounds good
 
dudes
just use lisp
all-lower-cases-with-hyphens-as-separators
 
@FlorianMargaine F THAT
 
5:07 PM
is profanity allowed?
 
@SiPlus encouraged if necessary
 
@SiPlus Yeah, we usually don't mind
 
otherwise, flaggable
 
@SiPlus Absolutely fucking yes
 
"Fuck yeah" is ok, but "fuck you" is not, am I correct?
 
5:08 PM
swearing for the sake of swearing isn't well seen though
 
Actually, now that I think about it, I often use hyphenated names for CSS classes
 
@RyanKinal CSS classes should be all hyphenated, like lisp
and seriously
 
@FlorianMargaine Now we're in the context of "Cussing to be able to cuss"
 
lisp allows - in identifiers, + almost any character
 
B allows . in identifiers
Let's write in B
 
5:10 PM
B isn't used anymore, lisp is ;)
 
@FlorianMargaine Soo I can write a variable named (()((()(?
That would be a bit confusing
 
"almost"
 
that would be stupid too
 
main () { auto i; extrn hello; i= hello, putchar; while (*i != '*e') putchar(*i++); } hello "Hello, World!"; /* guys, let's write in B */
 
but afaik, () is allowed (not sure, but there's no reason it shouldn't be)
not allowed characters are: '#".
and :, sorry
 
5:14 PM
damn, my B code has an error
wrote i = hello too early
 
why did you learn B?
 
wanted to write a compiler for it for DCPU-16
but I'm too lazy to do this
and just to know programming history better
btw, you know what's good about B?
 
not really
 
it can be learned by reading only 2 html pages
 
I just know it's what C is based on
 
5:18 PM
unlike C++ or <insert language name here>
 
lisp can be learned by reading 2 html pages too :p
 
Is A learned by reading 1 page? And C by 3?
 
what's size of those pages?
 
Thus each language increments on the previous one?
 
(defun hello-world ()
    ("Hello, world!"))
 
5:19 PM
2,147 followers, no tweets: twitter.com/YCstartups
 
google "bref.ms" and "btut.ms"
 
@SomeKittens lol
 
@Zirak there's no "A"
there's BCPL, but I can't into it
 
Joke: Sent = 4, Received = 0, Lost = 4 (100% Loss)
2
 
are you sure your DNS server has a record for "joke"?
try 8.8.8.8
maybe it has
 
5:34 PM
UGH
 
0
Q: how to insert javascript variable into mysql database?

Tom BurmanI cant seem to work out how to simply add a javascript variable into a mySQL table! I have a html code which is just making a canvas for my game. I then have a javascript file doing all the game proccess and here is the code i am using to send the javascript variable to a php file: var uiStats...

Hm.
 
Merging 47 changesets SUUUUUUCKS
 
@RyanKinal why don't you merge the last?
 
@FlorianMargaine
 
Well, it's more that I'm merging the result of 47 changesets
 
5:37 PM
@SomeKittens eff you, I lost
 
Also, it's not git... it's hg... I don't know how much of a difference that makes. But things in the Stable repository are anything but stable.
Because people didn't RTFM
 
0
Q: Inverse object element order

ValeriWhat's the best way to inverse an order of json data? var myObject = [ {"id":"001", "content":"content11111111111111"}, {"id":"002", "content":"content22222222222222"}, {"id":"003", "content":"content33333333333333"}, {"id":"004", "content":"content44444444444444"} ]; myJson = JSON.stringify(my...

people don't google, do they?
 
NOPE
 
#4 of this article is bollocks.
Clearly they don't understand the difference between a true value and a truthy value.
 
5:41 PM
Really? nettuts is shit?
 
o/
what a day
I miss my chats
 
Sup brah!
 
Article: What Have You Tried? (Yep, it's old, but still awesome)
 
in meetings from 10am till now.
 
5:43 PM
YaY! more projects on my plate! </sarcasm>
 
oh fuck, #8
How about instead of nesting, break into different functions?
Exceptions are tiring
 
@RyanKinal You can just use whathaveyoutried.com
 
True :-)
 
@OctavianDamiean #1 document.getElementById("someUL").innerHTML(liststring);
 
#11 is stupid
 
5:44 PM
@FlorianMargaine Oh yea. I forgot. :D
#1 is golden too. They talk about document fragments but don't show an example, instead they go with some string concatenation and stuff like that. :D
 
I can't remember which one, but they said that document.getElementById('something') is legacy, and you should use document.querySelector('#something') instead
 
read the comments... "well if you just used this jQuery...." o_O
@OctavianDamiean innerHTML to smash strings into the DOM scared me
 
You know, we're actually quite stupid. Instead of bitchin' about them we should just write some tutorials, publish them on Nettuts and get some money for stuff that's already documented. :D
 
golden! I know what I'm doing tonight
 
it's fun in the comments
 
5:49 PM
but i'll do it drunk, so designers can understand me
 
if you see someone saying "thanks for sharing", it's an indian
 
Or from AA
 
I'd like to add yet another tip to those 20.
 
> The console function $() has changed from $=getElementById(id) to $=querySelector(selector). You might try $("#pocs")
 
5:51 PM
fiddling around with Ext.js... could be easier >_>
 
#21: Don't use the randomize function of your math library because calculating a random number is processing intensive. Use a pseudo-randomizer function.
 
@FlorianMargaine !?!?
 
"Oh look, no we do not have a simple setter for this thing. Just go ahead and rip out the guts of our Tree Selection Panel so it might bleed to death upon our next release" -.-
 
function getRandomInt() {
    // chosen by a fair dice roll
    return 4;
}
 
0
A: Why am I able to use jQuery syntax in Chrome's JS console when current page doesn't have jQuery loaded?

Florian MargaineBefore, Chrome had an alias to document.getElementById with the $ variable. Recently, it has been changed to an alias to document.querySelector. So your code is the equivalent of document.querySelector('body').

 
5:53 PM
@OctavianDamiean Oh yeah! Boy are those returns processing intensive
 
Way better than Math.rand() ...
Also guaranteed to be random.
 
@FlorianMargaine :(
 
@Zirak v
 
Yeah I've seen it
But why? There's $$ already
 
it's querySelectorAll
querySelector pretty much opens to anything else
 
6:02 PM
No shit
 
all the explanations are there bugs.webkit.org/show_bug.cgi?id=92648
there hasn't been much discussion tbh
the reason is that others (firebug) are doing it, so they want to stay the same
 
Seems a bit unnecessary, but meh. Not that radical a change.
 
-1
Q: Add a parameter to a dynamic function

RobbertI have a generic javascript class that creates an html input element. The code allows me to pass a function as a string that will be called whenever the value of the element changes, using jQuery's change method. I'm using the following code: 1. var changeFunction = "runThisCode()"; 2. 3. ...

HAHAHA
0
Q: (How-to) JavaScript - Test for Unsigned Integer (UINT) using Regular Expressions (RegExp)

Trenton BostProblem: How to test/check if a value is an Unsigned Integer (UINT) in JavaScript.

the guy asks a question and self answers (sure, no problem), but the answer sucks
and a way better answer is added
 
outch
0
Q: Unexpected result when comparing value in a switch statement

Marco SandovalI'm trying to do a basic calculator / POS system for a school project. I've been stuck for the past days without being able to go further. So basically it's a web interface and .text() gets the value of a DIV in index.html. To verify that everything is fine, I've added a console.log(key) line a...

french guy there ^
 
6:38 PM
Whoever thought advanced math should be required for CS should be beaten. Severely. Or forced to take an advanced math class. From my perspective, they're synonymous.
 
Hahahaha
 
Discrete is quite useful
Functions, sets, etc.
Not that I'm any good at discrete :-P
And, full disclosure, advanced math classes are mostly why I don't have a degree.
 
You don't have a degree either?
So you, Zirak, and Ivo
 
degrees.
psh
 
Agreed, pssshhhhhh
 
6:46 PM
:P
 
But I still think I'll get one might get one
 
I don't even have a HS Diploma
or GED!
I say FU formal education
 
YEAH!
If only my parents would get that
And well, I had something else to do
 
in other news... second try a the stickfigure animator: dl.dropbox.com/u/2332843/figure/index.html
Ext.js isn't that bad after all
still some hackish stuff going on for adding nodes to that tree view... but meh :D
 
Hah, the root is the crotch
 
6:50 PM
think of that whatever you want :P
 
It is, after all, the origin of the world
(Depending, of course, on your point of view)
 
Thanks god that I'm not into this religion stuff...
 
@IvoWetzel INFIDEL!
 
where are my updates people!?
I shouldn't be the only regular doing this...
 
I was out, sorry
-.-
Amaan is awesome.
 
6:55 PM
guy has one day of meetings and the entire system goes to shit!
 
I thought the system was "@rlemon does tldr updates"
 
:(
so it's like my dayjob!
so i'm torn, should I use reveal.js or impress.js for my sales presentation
will be to a room of 75+ potential new dealers
 
!!/choose "reveal.js" "impress.js"
 
@AmaanCheval impress.js
so not end users, middle sales guys
 
function getTLDRUpdate()
{
    var update = null;

    if (@rlemon)
    {
        update = @rlemon.createTLDRUpdate();
    }

    return update;
}
 

« first day (761 days earlier)      last day (4180 days later) »