@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11



Comments:

<0> Hmm, I ***ume what you actually want is to style a link to appear as a button.
<1> why do you like python?
<2> tuxtheslacker: you can't nested links or buttons
<2> ^nest
<3> 3rd now
<3> and it's not loading -_-
<4> GarethAdams, cause i just made my first gui (non web) program
<4> and it's cool
<4> and it was very very easy
<4> and in many ways, similarities are there between it and php to make it easy for me to learn
<1> similarities between PHP any Python?
<1> then which language did I learn that I thought was Python?
<1> *and
<4> huh?



<0> brain****.
<4> the syntax is takin some gettin used to though
<0> You got confused because they both use whitespace as part of their syntax.
<4> it's cool though
<0> Wait, that was another silly toy language.
<1> what similarities do you mean?
<4> wait a second
<4> come to think about it
<4> it's not because there are similarities, it's because i already know programming
<4> =\
<1> lol
<4> see, php is the first programming language i learn
<4> and python is the second
<4> so i went into python with the same attitude i went into php with
<1> I see
<4> and i "recognized" a lot of things
<4> but really it's just because i had a background
<1> and you realised they were nicer in Python
<4> epiphany (sp?)
<5> The word "epiphany" seems to be spelled right.
<0> >_>
<4> :-D
<4> sorry, i'm just having a programmer's high
<6> PHP > Python
<1> def >(a,b)
<1> return a < b
<1> end
<7> um in python wouldn't that be def __gt__:
<1> it was a made up language
<7> ah
<8> Actually, it was ruby... :)
<8> I don't know if that was an accident or not, but..
<9> YOu're making jokes in Ruby now.
<9> I would consider that to be far beyond my own geekiness.
<9> Therefore, you get the hat.
<1> ooh, a crown and a hat
<1> and it's not really ruby either
<4> Stephanie is king without a crown
<4> well....queen
<8> GarethAdams: That's how you overload an operator in ruby.
<4> unless Stephanie is a cop posing as a hot 12 year old
<1> operator functions are called /on/ an object with one argument
<1> AFAIK
<7> they are
<8> Oh, right.
<8> The second argument wouldn't be there.
<1> yeh
<7> but doing def >(a,b) in the root context is just like redefining Kernel.>(a,b)
<7> so your code would be valid :)
<4> i think the joke is getting over-analyzed
<1> Zeros: bonus
<7> hehe
<8> Speaking of which, the fact that a ruby method name can be punctuation is another thing keeping me in python land. ;)
<7> only to some extent mattmcc, and thats what I actually like about ruby
<4> so wait
<7> def ==(a); end
<1> mattmcc: only for already defined operators, I think



<4> in ruby you can make a function called < ?
<7> as opposed to def __eql__:
<7> which seems so silly because you call Object == Object not Object.__eql__(Object)
<7> majd, yes
<4> Zeros, that's messed ujp
<4> *up
<1> Stephanie: you can eat my hat?
<8> I appreciate that it has that direct mapping appeal, but seeing a function name be '>' just doesn't agree with my head.
<9> GarethAdams: I was thinking French toast.
<8> For the same reason a function name having a question mark in it doesn't. ;)
<1> it's a very stylish hat
<7> haha
<4> Zeros, isn't java the same way?
<7> well __foo__ doesn't agree with me
<9> YEAH TOAST!
<4> you define equals()
<7> nor does p***ing self to every function
<7> what the hell
<1> majd: but in ruby, you can define ===, ==, and probably = too
<7> majd, except that you actually call Object.equals() doing Object == in Java doesn't call equals() is just compares the object ID
<4> right
<7> the power of it in ruby means that you can create objects that act like language contructs
<7> +s
<1> there *are* still things I like about python more than ruby though
<7> like what? :)
<1> the way that object.methodname returns a reference to the function, whereas in ruby it would call the function with no arguments
<1> you have to go object.methods[methodname] to do the same in Ruby
<1> or something like that
<8> That seems like something you'd cheerfully accept in order to have the ability to call methods without parens.
<1> oh I can survive :P but it seemed neater in python
<10> Nothing in my emergency digg survival kit is saving my site
<4> what do you mean when you say "returns a refrerence to the function"?
<1> majd: like in javascript
<4> Nanobot, you're so popular
<8> Nanobot: The page is static, I hope? :)
<4> just like returns a value?
<4> mattmcc, who makes static pages anymore?
<10> mattmcc: I have a caching system that sends compressed static pages (already gzipped or deflated, if supported)
<8> That was my next question.. :)
<10> The caches update every 10 minutes
<1> majd: myvar = "abc".split # calling myvar('b') is now the same as calling "abc".split('b')
<1> the ***ignment actually returns the function, rather than the result of running the function
<4> that's weird (i think)
<4> so calling myvar calls the function?
<8> Calling myvar _is_ calling the function, because myvar is merely a reference to the function.
<8> Functions, like everything else, are objects.
<1> (numbers aren't objects)
<8> Yes they are.
<4> mattmcc, hmm, i thought myvar = "abc".split just returns an array/tuple (hehehe i love the name)
<4> but i guess i understand what the whole "reference to the function" means now
<4> Nanobot, wow
<4> lots of comments
<4> you're my digg friend right?
<1> mattmcc: but they can't recieve method calls like other objects
<8> GarethAdams: I consider that a good thing. :)
<1> lol
<11> i've got an issue setting up my nameservers/dns/etc, i've configured the registrar to point to the nameservers, and the nameservers to point to my server, though it is not forwarding it to my server... i've been at this for a few days and am completely unsure what to look for
<8> When a number has a dot in it, we call that a _decimal point_.
<8> 1.foo() is just nonsensical.
<1> good job method names can't start with digits then
<7> I think thats fine and it makes the most sense
<7> either everything is an object or it isn't
<1> it only matters for readability purposes
<7> Java's primitive vs. Object is silly
<4> Zeros, yeah, it is.
<8> Right, that they have to have both a primitive int and an Integer should've been a clue that they messed up.. :
<7> true, but you break OO design by treating numbers differently
<7> and make horrible code
<1> for example Rails' FixNum extension means you can call (Time.now - 1.day) for example and know exactly what it means without any weird multiplication
<7> Math.floor(Math.cost(Math.abs(1.05))))
<7> or let you call methods right on the number?
<7> which is more readable?
<8> Matter of preference, of course.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #web
or
Go to some related logs:

perl tabstrip
#web
ubuntu it821x
mindfree opensource
#debian
ipw-2.4-boot.fw load failed:
emerge syncprov
set gnome monitor refresh rate
n*pi integer 7 106 113
how to format usb disk



Home  |  disclaimer  |  contact  |  submit quotes