« first day (837 days earlier)      last day (4111 days later) » 

What happens to the JS object after they've been created? Is there a way to enumerate those? For example i've created object like this new MyObject. Is there a way to get it?
 
Give it a look, doesn't seem like raisins.
@Ivan0x32 Did you bind it to a variable...?
 
BOTH SAEM ANIMAL AN "CAT"
O RLY?
  YA RLY, VISIBLE "J00 HAV A CAT"
  MEBBE BOTH SAEM ANIMAL AN "MAUS"
    VISIBLE "NOM NOM NOM. I EATED IT."
OIC
 
not me
 
Like, var foo = bar()
 
2:01 PM
system maybe binds, but i don't know to which one or how its called
 
haha, i'd have a great time coding in that language
 
If not, then tough shit, unless you're the interpreter/compiler. Just like any other language, really.
 
@Ivan0x32 how do u not know how it was called?
 
oh wait, isn't all global var bind to Window object? better look then
 
hello
Need help...
 
2:03 PM
@JDev: if you need help then ask a question.
 
Dude, if you're just calling functions arbitrarily, their values don't get automagically stored somewhere. I mean, they do, but you don't have access to it, because see last message.
 
Because its not me who creating it, i'm just writing some functionality for already existing class that is widely used in system and i don't even know all those places where its used
 
have anybody integrated mapandroute.?
 
@Ivan0x32 That's the problem? Ever heard of grep?
 
2:03 PM
Actually system itself are a bit fucked up... well honestly not just a bit...
 
Or testing?
 
i want to integrate mapandrout map for iphone.
 
Why you so sure there's gurantee it even bind to something?
 
@JDev ok... that's nice...
 
There is no guruantee, that's what I said. Repeatedly.
Unless you're binding it, i.e. assigning the result to something, it won't be available to you.
Which isn't surprising.
 
2:05 PM
anybody have idea about it.? please help.
 
@JDev You're not actually asking any questions
@JDev you want help with something but haven't specified what your particular problem is.
 
this is the question dear i dont know how to integrate. :)
where to start :( and how to integrate.
coz i have always integrated google map :)
 
so there's no like some global variable that hold all created variables on page?
 
then look at the docs of that other map
i'm sure they have examples.
 
@JDer if it has an API you should be able to integrate it in some way.
 
2:07 PM
@Ivan0x32 That's a horrifying idea
 
ME NEED HELP! SOMEONE? ANYONE?
 
Why would that even exist?
Have you any sanity!?
 
RatingLike.Vote = function(likeId, voteAction)
 
2:11 PM
Am i right that if i call it like RatingLike.Vote(bla, bla), "this" will return RatingLike constructor (code of constructor actually)?
 
@Zirak Existence is not a property that an object can have
 
s/code/function
And if i use (new RatingLike).Vote "this" will give me actual RatingLike instance.
 
@Ivan0x032 You should test it dude, see if it does give you what you're looking for. You're asking the same thing over and over again.

try something like
RatingLike.Vote = function(likeId, voteAction) {
console.log($(this))
}
 
'mornin all
 
If that fails try to log the parameters
 
2:14 PM
hahaha
that just had to happen, i guess
 
@RyanKinal you have some responses here: reddit.com/r/programming/comments/17ibvo/the_illusion_of_class
 
I saw that
The Dart guy has no idea what he's talking about
 
lol im looking at the live feed on analytics. 10 people from reddit are current on ur article
 
...people in /r/programming don't know what they're talking about? Heavens!
 
upvote anyone? news.ycombinator.com/item?id=5139484 currently 3 ppl reading from hn
 
2:19 PM
@Neal No one likes an upvote whore.
 
@SomeKittens haha i am just trying get @RyanKinal's article up to the top of hn.
 
@GNi33 Sad, just sad.
 
w00t @RyanKinal got a compliment ^_^ news.ycombinator.com/item?id=5139535
 
@Neal \o/
 
lol
wth is Netvibes? people just came from there
 
2:23 PM
Aggregator, maybe?
 
No idea.
 
iz too early - ma brain no worky
    public void InsertFolder(string name)
    {
        TreeNode node = new TreeNode(name);
        node.Tag = node.ImageKey = node.SelectedImageKey = "folder";
        if (treeView1.SelectedNode == null) // no selection so add to root
        {
            treeView1.Nodes.Add(node);
        }
        else if (treeView1.SelectedNode.Tag != "folder") // selection is a file
        {
            if (treeView1.SelectedNode.Parent != null) // can we add to parent?
            {
                treeView1.SelectedNode.Parent.Nodes.Add(node); // yes
mad code looks like this
 
And this is why I post more on Blogascript than my personal blog. @Neal publicizes for me :-P
 
I am sad
 
@RyanKinal :-D Am I a good publicist or what?
 
2:24 PM
Works for me
 
haha i still need to finish my article lol. dunno when im gunna do it. prob tonight (maybe)
 
I think I'll do one more OO post. Then I'm not sure what.
I was considering something silly like "JavaScript: A Love Letter"
 
@RyanKinal hehe
 
Wax poetic about the language
 
Do you even need to respond to this? @RyanKinal reddit.com/r/programming/comments/17ibvo/the_illusion_of_class/…
 
2:27 PM
(function(lover) {
  var programming_language = this;
  // but i'm not in love with a window? wtf is up here? we must look deeper!
  // the next 300 lines are poking fun at js with an inception like feel all the while professing my undying love for the language
 return null; // why not?
}(me));
 
I feel like all I'd have to say is Don't Be STUPID, Grasp SOLID
 
Wow 101 users currently on the site. Holy monkeys!
 
"Fat Classes" is the dumbest concept I've heard in a long time
 
Really?!?!?!?!?!
DART > JS for OOP?
GTFO
DART ... just sucks.
 
You'll probably murder me for Friday's post: "In defense of strong types"
 
2:29 PM
We have two downsides to the web. One is that it can't drive the hardware as well as the native platforms. The other one is that web applications aren't installed alongside other default programs making it easier to remember what you have access to.
I think shorter URLs can help with the latter. The former it depends on the platform's goals.
How does shorter URLs have anything to do with that point?
 
@SomeKittens I won't
 
is this guy retarded?
 
Unless the article sucks
 
can someone explain why I keep getting undefined here jsfiddle.net/LADQa
 
@copy Don't worry, you'll probably find something wrong with it.
 
2:30 PM
Would someone please explain the "me" portion of this. What does passing "me" within the invocation do? (function(lover){...}(me));
 
prob take you guys two seconds
 
I've seen this done before like (function($) {...}(jQuery));
 
@SomeKittens I might berate you... but I won't murder you.
 
98% is new visitors ^_^ w00t
 
I know I can do a self invocation like (function(){...})();
 
2:32 PM
@stewbydoo why... why are you not casting variables, defining some in loops that are static, and why are you doing this? What is the expected outcome
 
@ZachShallbetter do you understand french?
 
yea I didn't put that there originally but though thats why I was getting undefined
 
Hi guys
 
@FlorianMargaine no
 
and why do I need to cast variables?
 
2:33 PM
if you don't, then I'm too lazy
 
@FlorianMargaine translate to the rescue
 
var i/j in the loops man!
 
expected outcome is it takes the letter a and returns the next letter in the alphabet so it returns b if its a
 
I'm pretty sure there's a far more efficient way to do that
 
how can i set a default value for a variable in a function?
functionName(value = 1) ?
it gives me an error in aptana
 
2:35 PM
whats the error
 
f(a) { if (typeof a === 'undefined') a=1;
 
@rlemon what?
 
@RyanKinal What're fat classes?
 
classes with extra weight...
 
@FlorianMargaine This is great. Although, there is a little bit lost in translation. You should write/post an english version someday
 
2:37 PM
!!> var alphabet='abcdefghijklmnopqrstuvwxyz'.split();function plusOne(letter) { return alphabet[alphabet.indexOf(letter) +1];plusOne('a');
 
@SomeKittens "SyntaxError: Unexpected end of input"
 
> A fat class is a useful class that can have more code than just to do just one thing at a time. So a fat class can and should do more than just one thing at a time, making it more useful than otherwise. It should keep you from duplicating code so you after you have a fat class, you better start using it for everything that it does.
 
....no
 
@stewbydoo var placeElements = function(i = -2){ -> give me multiple markers at this line
 
@RyanKinal I think he's a troll
 
2:37 PM
Do One Thing
 
Basically, a class that defies the Single-Responsibility Principle
 
...wat
yeah, that's amazingly retarded
 
Maybe was dumb idea. but this guy is an idiot:
in Lounge<C++>, 2 mins ago, by Bartek Banachewicz
@Neal Because javascript is a shitty language and you came here posting a blog about it
 
it worked
 
@Neal ... well, you did post about JS in a C++ room...
 
2:38 PM
@RyanKinal Obviously better.. though it helps to throw in a couple singletons and factories too, you know, to make it give more bang for the buck
 
@redditors: how do you quote someone in a reddit comment?
 
> some comment
 
@Neil Hey, factories are a solid concept. But I get your point.
 
@RyanKinal but read the rest of what he said.... he is rly stupid...
 
Probably > something
 
2:39 PM
in Lounge<C++>, 1 min ago, by Bartek Banachewicz
@Neal actually, if you use javascript, you already admitted failure. CSS3 and HTML5 are enough for everything
 
Like in emails (and following them, markdown)
 
wtf
 
That's what I meant... > some comment
 
@RyanKinal That's sort of the point of a factory is that it does only that. It's supposed to remove coupling
 
@Neil the factory isn't a fat class
 
2:39 PM
^
 
@FlorianMargaine I meant throw it all in the same class and make it do every and all.. it was an obvious (at least I assumed) joke
 
it uses encapsulation to separate the factories behind the curtains
 
Naming it something "clever" doesn't make bad coding practices ok
 
> But I get your point.
 
@SomeKittens Neither does calling something fat
 
2:40 PM
@copy @ThiefMaster Again regarding the ajax, I'm sorry to bother you again but it is tight regarding all sorts of injections using swf flash files?
 
@SomeKittens I like the way you did that but that doesn't answer my original question but thanks anyways
 
Though.. maybe if you called it PHAT... hmmmm...
 
@BenjaminGruenbaum: Flash has something like a same origin policy, too
 
@stewbydoo Mine's actually broken, but I'm too lazy to debug it. It also doesn't work for z
 
@Neil Perfectly Honest Abominable Twattery? Doesn't right too well
 
2:42 PM
@SomeKittens just cheat and add a after z hehe
 
@RyanKinal this guy does not seem to agree with you: news.ycombinator.com/item?id=5139618 I do not understand why people don't just comment on the actual blog lol
 
@ThiefMaster I remember some sort of crossdomain.xml , can I trust it though? I've heard there were some problems with it
 
@Neal I could see how that might be true.
 
i'm not that familiar with flash but i'd expect so
 
@RyanKinal which part?
 
2:44 PM
if not you could circumvent token-based csrf protection, too (you'd just request the page to get the token and then use that token)
 
@Neal The singular concept in that comment?
 
@ThiefMaster that's what I thought, thanks :)
 
I'll have to do some testing, though
 
@RyanKinal ahhh.
hmmmm
 
@stewbydoo Did someone fix your problem?
 
2:47 PM
LOL @FlorianMargaine
 
@neil SomeKittens gave an alternative solution but didn't answer my original question
 
I just noticed that you have an "a" at the beginning and the end of your alphabet array.. since you don't break out of your inner loop, you end up assigning tempChar to the position of the last "a" + 1.
which is undefined
That is the reason for your original error
 
Oh hell...
> It works better to trust Dart than to not trust JavaScript at all.
LTFL (learn the fucking language), noob
 
function letterChanges(str) {
    var alpha = (function () {
        return "abcdefghijklmnopqrstuvwxyz".split("")
    }()),
        len = alpha.length,
        tmp = str.split("");
    return tmp.map(function (cur) {
        if (isNaN(parseInt(cur, 10))) {
            var try_index = alpha.indexOf(cur) + 1;
            return try_index < len ? alpha[try_index] : alpha[0];
        } else {
            return parseInt(cur, 10)+1;
        }
    });
}
Works like a charm
increments numbers as well.
 
@RyanKinal LOL
 
2:49 PM
doesn't reset them at zero - but that is easily done.
 
@RyanKinal that guy should better crawl back to Java then (that came out wrong with Ryan's name in front there ;) )
 
:sigh:
 
@Neil I just removed the last "a" in the array and I am still getting undefined
 
:-D
 
2:51 PM
Convoluted code sometimes cannot be fixed.
 
thanks @rlemon
 
new approaches are fixes in these cases
 
@rlemon yea I appreciate it I just don't understand how j+1 returns undefined. seems pretty straight forward that if the tempChar = alpha[j] then set tempChar = alpha[j+1]
 
w00t #13 on hn :-) news.ycombinator.com/news
 
doesn't it?
 
2:53 PM
@stewbydoo Ah I see now
 
\o/
 
tempChar == "a" ? true, therefore you assign tempChar to "b"
 
@stewbydoo end of the array boss man
 
@Neal The fact that there are no comments on the blog makes me wonder if it's too hard to comment on the blog.
 
2:53 PM
next cycle, tempChar == "b" ? true, therefore you assign tempChar to "c"
 
ternary operation in mine takes care of that
 
maybe I should hire @neal as Recoding's publicist
 
and on it goes until you hit undefined for the last value in the array
you probably mean to break after you find it
 
@rlemon shittttt
 
@RyanKinal I do not think it is... all they have to do is enter their name and email addy. standard on most blogs...
 
2:54 PM
@SomeKittens Perhaps
 
yea thats what I mean to do
 
@AmaanCheval XD
 
Here is fully commented source @stewbydoo (last link)
 
@Neil yup
 
@Neal So, they're just lazy, then :-P
 
2:54 PM
@RyanKinal hehe yea. They are already logged in to reddit/hn so they dont want to type any more than they have to lol
I guess we can add a comment to the bottom of the post to the extra comments? no.
 
I should probably cave and make a reddit account.
If I get addicted, it's your fault
 
I keep trying to rely on interesting articles and continually-improving writing skills, when all I really needed was someone to post the link everywhere and spam up the room
 
dooooo it
@RyanKinal you will get addicted.
 
@RyanKinal haha go for it ^_^ so u can respond to the trolls...
 
that is a given
 
2:56 PM
@RyanKinal Don't do it. Value your time
 
Currently 135 people reading the blog @SomeKittens
 
@rlemon really cool!
 
it's like crack... if you say "sure I'll have some crack.. but If I get addicted it's 100% your fault!"
 
@SomeKittens he can make account just for commenting
 
@rlemon thanks
 
2:56 PM
np - hope it helps.
 
Okay. Discipline. Discipline. Discipline. Resist the reddit.
Make an account, respond to comments, and do nothing else.
:oooommmmmm:
 
@RyanKinal sounds like my day to day
 
Oh. Google Music now requires a free transaction from a US credit card. :/
Looks like I'll just have to use my old account, then
 
grooveshark!
grooveshark.com
go
 
@AmaanCheval I saw that
 
2:58 PM
@AmaanCheval ...ouch
 
:7452410 lol it spikes at random times. remember this is 135 at this exact second. it keeps fluctuating. I am looking at live analytics.
 
Reason enough for me not to make an account.. too Big Brother for me
 
@stewbydoo I prefer GMusic. I have it on my old account, so I'll probably just keep using that one
 
> I bring the concept [of fat classes] from Ruby where core classes do many things by default like a string class having many extra methods.
:shakes head:
 
@RyanKinal LOL
 
2:59 PM
@rlemon why are you splitting alpha at all
 
@RyanKinal Yes, but functionality of string class in Ruby always pertains to string
wtf is he going on about?
 
I have no idea
 
He's got to be a troll
 
@canon array operations are faster than string operations
 
I can't think anyone actually thinks that's good practice
 
3:01 PM
I wonder why my other blog posts on hn did not go as far as this one.
 
Discussions attract attention
 
jsfiddle.net/rlemon/LADQa/8 Capitals, Punctuation, and whitespace now handled.
Capitals are just converted to lower case and ignored later
 
@Zirak's got the right of it
Although, there's not much discussion on HN...
 
@Zirak ehhhh but there is not much discussion on hn
 
@FlorianMargaine Awesome! Thanks
@Neal oh, got mixed up with the troll
 
3:04 PM
@Zirak lol that would be reddit :-P it is not even voted up much there...
 
@phenomnomnominal What'd I do now?
I swear I didn't touch your sensitive spot then
 
o no.... he exists! reddit.com/user/ryankinal
 
I do indeed
Not going to bother responding to Dart Guy, though
 
Optional dependencies for texlive-core
    perl: for many useful tools
teehee
 
lulz perl
 
3:05 PM
@FlorianMargaine this sounds effing crazy man, is this true?
> France's radical Muslim problem is getting out of control in a hurry. There are now entire areas of certain cities (751 to be exact) called Zones Urbaines Sensibles (Sensitive Urban Zones) where even the police can't go so it's basically Sharia law, the native French are violently attacked if they enter without one of the local residents escorting them.
 
@RyanKinal lol y not? it'll be fuuuun
 
Not giving him the satisfaction
 
@Neal It's good practice to feed the trolls
 
@Loktar msg me on steam later k
 
!!s/good/bad/
 
3:06 PM
@RyanKinal @Neal It's bad practice to feed the trolls (source)
 
@RyanKinal is this true? news.ycombinator.com/item?id=5139747 it seems fishy
 
@Loktar yeah it's true
 
@rlemon alright
 
it's like gangs' areas
 
im at work so itll be in like 7 hours or so
 
3:07 PM
Whats wrong with passing by ref
 
@Neal There's no such thing as pass by reference in js
 
clone and move on
 
@FlorianMargaine man.. thats just insane
 
@Neal I believe it is, yeah
 
We've been over that before
 
3:07 PM
@Zirak I am getting conflicting arguments here @RyanKinal
 
France has a pretty proud history.. I hope they put a stop to that
 
Yes, it'll mutate the object, but it doesn't even touch the reference
His argument is bleak anyway
 
So that won't happen or it will?
 
> Yes, it'll mutate the object
It's not a problem with the "class pattern" at all, and it's not special to js in any way
 
Hmmm
 
@RyanKinal it is making it's way on twitter now: twitter.com/search?q=javascriptroom.com&src=typd
 
Ooh, there are even some click throughs to SlickText :-D
 
lol
Ryan is super happy about free advertisements
 
Hellz yeah I am
 
@RyanKinal your welcome :-)
 
3:17 PM
Neat
 
Why do you think I started writing on this blog in the first place? To help people? To spread knowledge? Fah.
Do-follow links! That's where it's at.
 
Ryan i'm re-tweeting the shit out of this
I expect much love when lemonmeme goes live
 
Of course :-)
 
:P I scratch your back, you shave mine!
 
Waitaminute... that doesn't seem fair
 
3:19 PM
damn... why does not one want to shave my back!
 
@rlemon well u had a click thru on ur comment to lemonmeme.
Keep commenting :-P
 
lemonmeme todo list:
#1 everything
#2 see #1
icons in winforms suck ass btw
 
Anybody want to type "text marketing" into Google for me? Just to, you know... verify some results?
 
@rlemon hehe, what does everything mean?
 
3:28 PM
!!/define everything
 
@rlemon everything: All relevant matters: told each other everything. (source)
 
-.-
are you planning a complete rewrite, that's what i mean
 
I forgot to add hashtags. Now I added them. Odd that it doesnt change ur posts as well @RyanKinal @rlemon
 
@GNi33 pretty much yes.
There are a few util methods I can reuse
 
okay, then i'll wait with my fork
 
3:29 PM
UI and functionality all needs re=writing
 
Sam
Maybe a little bit slowpoke. Maybe nothing new for most of you. But I found this video quite useful. Enjoy!
 
lememe (what it is right now) is done development
lemonmeme will not be open source
 
oh, okay
 
but I will offer select people 'cleaned up' versions of lememe with customization
you can comment on instacode - awesome
 
@rlemon HA!
 
guess u approved that comment @RyanKinal I am not a big fan on chaining.... Guess some people are..
 
"Making SFW" :D
 
@Neal It's clever, and definitely an option.
 
@RyanKinal dat be true.
 
is that you?
who are these people and why are they interested in my code?!
 
3:36 PM
and changing line-endings in a commit like a bauce
and no, that's not me
 
seriously.. no pull requests - no issues... wtf man ?!
community coding means nothing?
 
Pretty sure that guy is using it somewhere
 
pretty sure he is as well.
i'll find it!
 
at least he made it SFW :D
what i like the most, is that this rrinaldi - guy forked it, but never touched it. the only commits to his fork are coming from someone else
 
rene powell is the guy "selling" lememe
he has like 10 domains with it on it
 
selling it from a few
 
is that still going?
 
yea
basically I "know" because I made up a few meme bases and their names
 
damn, can't you do anything about it?
 
I'm the only generator with "Zion Go Seek"
@GNi33 I can sue - that costs $$$
google "Zion Go Seek" and you'll get a few
some people have changed all the images so I need to sniff for files I know i include like FragBuilder.js
 
3:45 PM
Ummm.
 
rofl.us
"This is the best MEME generator on the internet , Yo."
 
> The site's security certificate is not trusted!
 
really?
stupid godaddy
 
Wait... maybe that wasn't supposed to go with https...
Might be that I'm just an idiot :-P
 
someone wanna see one of MY FUCKING ANSWERS scraped by another site goodphp2.appspot.com/question/5080f2794f1eba38a4cc4f3e
 
3:46 PM
yeah, if you try to access it with https you'll get a security notice
 
no SO affiliation
 
Yep. I'm just an idiot.
 
@rlemon also when you "do" trust it, it goes to the main page and not the meme page (if on https)
 
at least they link back to so
lol some scrapers do not
 
@rlemon hehe was just about to say that. they show the source
 
3:49 PM
no source shown
 
I see
 

« first day (837 days earlier)      last day (4111 days later) »