22:19 PM
ruaok
yep.
2007-06-22 17338, 2007
22:19 PM
cooperaa
heh, I wish I came in 5 mins ago :)
2007-06-22 17348, 2007
22:19 PM
dholmes
Excellent choice in language at least. Some of us started with C :P
2007-06-22 17302, 2007
22:20 PM
ruaok
BASIC here.
2007-06-22 17305, 2007
22:20 PM
ruaok
but I gave that up fast.
2007-06-22 17313, 2007
22:20 PM
cooperaa
TURING!!
2007-06-22 17319, 2007
22:20 PM
ruaok
assembly.
2007-06-22 17322, 2007
22:20 PM
cooperaa
put "Hello World"
2007-06-22 17327, 2007
22:20 PM
dholmes
Yeah, actually, I sorta started with gwbasic, but that doesn't really count 'cause I was like 5 years old and my programs were a joke =D
2007-06-22 17332, 2007
22:20 PM
luks
ooh, BASIC
2007-06-22 17342, 2007
22:20 PM
ojnkpjg <- logo
2007-06-22 17350, 2007
22:20 PM
ojnkpjg
but i was 3
2007-06-22 17352, 2007
22:20 PM
dholmes
Oh yeah, some of that too =D
2007-06-22 17357, 2007
22:20 PM
ojnkpjg
C was my first real language
2007-06-22 17307, 2007
22:21 PM
yllona used logo :)
2007-06-22 17317, 2007
22:21 PM
catgroove
arg why does not \n or \newline work
2007-06-22 17325, 2007
22:21 PM
catgroove
(don'tr answer that)
2007-06-22 17334, 2007
22:21 PM
ruaok
pascal was my first real language.
2007-06-22 17351, 2007
22:21 PM
ruaok
but the first language that I wrote meanigful programs in would be C.
2007-06-22 17356, 2007
22:21 PM
Freso
catgroove: Learning Python? :)
2007-06-22 17334, 2007
22:22 PM
luks
I had really hard times switching from "safe" pascal strings to C pointers
2007-06-22 17358, 2007
22:22 PM
dholmes
That's why in a way, I think starting with C is easiest in the long run
2007-06-22 17301, 2007
22:23 PM
ojnkpjg
me, too
2007-06-22 17303, 2007
22:23 PM
ruaok
like playing with razor blades.
2007-06-22 17325, 2007
22:23 PM
ojnkpjg
i learned C hacking early linux 2.0 up :/
2007-06-22 17326, 2007
22:23 PM
dholmes
I always enjoyed relaxing while my classmates struggled with C because they learned something like PHP
2007-06-22 17341, 2007
22:23 PM
catgroove was gonna jokingly say 'me cheats using print "1 0 1" n "0 1 0" n "1 0 1"' but since have found that doesn't work grmpfh
2007-06-22 17342, 2007
22:23 PM
ojnkpjg
learning anything after you've mastered C is a week-long activity
2007-06-22 17344, 2007
22:23 PM
catgroove
so much for my joke
2007-06-22 17302, 2007
22:24 PM
ruaok
catgroove: pretty clever.
2007-06-22 17322, 2007
22:24 PM
ruaok
until I'll tell you to read a number to determine the size of the square.
2007-06-22 17336, 2007
22:24 PM
dholmes
catgroove: I've found that actually works in some graduate-level computer science classes. You can often tell when the TAs never actually look at your code
2007-06-22 17350, 2007
22:24 PM
hawke_ joined the channel
2007-06-22 17301, 2007
22:25 PM
catgroove
I don't understand your sentence ru ;)
2007-06-22 17325, 2007
22:25 PM
catgroove
'read a number' ?
2007-06-22 17350, 2007
22:25 PM
ruaok
read a number from stdin (keyboard).
2007-06-22 17358, 2007
22:25 PM
ruaok
if 4 make the square 4x4.
2007-06-22 17303, 2007
22:26 PM
ruaok
if 5... make 5x5
2007-06-22 17304, 2007
22:26 PM
ruaok
...
2007-06-22 17317, 2007
22:26 PM
catgroove
so its 3?
2007-06-22 17318, 2007
22:26 PM
Aankhen``
Mmm, Python.
2007-06-22 17319, 2007
22:26 PM
catgroove
or 6?
2007-06-22 17326, 2007
22:26 PM
catgroove
1 space 0 etc
2007-06-22 17337, 2007
22:26 PM
cooperaa
2007-06-22 17337, 2007
22:26 PM
Aankhen``
catgroove: `print` takes a string. "\n" is simply a part of that string, not an additional operator.
2007-06-22 17344, 2007
22:26 PM
catgroove
ok
2007-06-22 17348, 2007
22:26 PM
Jugdish
2007-06-22 17351, 2007
22:26 PM
Aankhen``
catgroove: So to say hello followed by a newline, that'd be: print "hello\n"
2007-06-22 17357, 2007
22:26 PM
catgroove
ok
2007-06-22 17302, 2007
22:27 PM
cooperaa
Jugdish: I second that ;)
2007-06-22 17307, 2007
22:27 PM
catgroove
don't tell me then i'm supposed to figure it out by myself :P
2007-06-22 17311, 2007
22:27 PM
luks
Aankhen``: that prints two newlines ;)
2007-06-22 17315, 2007
22:27 PM
Aankhen``
Heh, okay.
2007-06-22 17315, 2007
22:27 PM
catgroove
also rss feed and no email yes plz
2007-06-22 17323, 2007
22:27 PM
Aankhen``
luks: Meh, whatever. :-P
2007-06-22 17324, 2007
22:27 PM
cooperaa
but first, I'd like all comments on an edit to be replies so they show up in context in gmail ;)
2007-06-22 17334, 2007
22:27 PM
Jugdish is tired of being emailed about his own edits to his subscribed artists :/
2007-06-22 17337, 2007
22:27 PM
Aankhen`` is not such a huge fan of Python.
2007-06-22 17347, 2007
22:27 PM
ojnkpjg
python is a nice first language to learn
2007-06-22 17349, 2007
22:27 PM
ojnkpjg
it's clean
2007-06-22 17357, 2007
22:27 PM
Aankhen``
Oh, definitely.
2007-06-22 17303, 2007
22:28 PM
dholmes
It's a nice last language to learn, too, if you ask me =D
2007-06-22 17307, 2007
22:28 PM
Aankhen``
I've pointed two of my friends so far at Python.
2007-06-22 17314, 2007
22:28 PM
ojnkpjg
easy last language to learn
2007-06-22 17318, 2007
22:28 PM
Aankhen``
I just don't like it all that much myself.
2007-06-22 17338, 2007
22:28 PM
catgroove
lol print "1 0 1\n" "0 1 0\n" "1 0 1" did it, but that's *not it* and i *know* that
2007-06-22 17342, 2007
22:28 PM
ruaok wants to smack the smashing pumpkins
2007-06-22 17344, 2007
22:28 PM
ruaok
2007-06-22 17328, 2007
22:29 PM
Jugdish
heh, saw that
2007-06-22 17335, 2007
22:29 PM
chillware
anyone know when luks is gonna take picard out of alpha? seems to be running pretty stable these days..\
2007-06-22 17339, 2007
22:29 PM
Aankhen``
ruaok: Jeez.
2007-06-22 17344, 2007
22:29 PM
Aankhen``
(Smashing Pumpkins)-- # jackasses
2007-06-22 17345, 2007
22:29 PM
Aankhen``
(Smashing Pumpkins)-- # jackasses
2007-06-22 17318, 2007
22:30 PM
ojnkpjg
what label are they on
2007-06-22 17320, 2007
22:30 PM
Jugdish
(Smashing Pumpkins) -= MAX_INT
2007-06-22 17322, 2007
22:30 PM
Jugdish
does that work?
2007-06-22 17325, 2007
22:30 PM
Aankhen``
Nah.
2007-06-22 17327, 2007
22:30 PM
ojnkpjg
probably more the label's doing than theirs
2007-06-22 17336, 2007
22:30 PM
ojnkpjg
i quit buying anything on RIAA labels totally
2007-06-22 17341, 2007
22:30 PM
ojnkpjg
and sold off everything i did own
2007-06-22 17357, 2007
22:30 PM
Aankhen``
ojnkpjg: Can't be done without their consent (whether joyous or contracted).
2007-06-22 17307, 2007
22:31 PM
BrianFreud
hmmm, how do I get python to print on the same line?
2007-06-22 17324, 2007
22:31 PM
dholmes
BrianFreud, put a comma after the string, I think
2007-06-22 17331, 2007
22:31 PM
BrianFreud
ok, thanks
2007-06-22 17349, 2007
22:31 PM
cooperaa
"My god, you have to go to Target (and only Target!) to get the version with the title track! That just ain't right." hahahahahahaha
2007-06-22 17319, 2007
22:32 PM
Aankhen``
O_O
2007-06-22 17330, 2007
22:34 PM
ojnkpjg
eh, i always thought that band sucked, anyway
2007-06-22 17355, 2007
22:34 PM
drsaunde really likes Siamese Dream...and none of the other releases really
2007-06-22 17323, 2007
22:35 PM
cooperaa has quit
2007-06-22 17344, 2007
22:35 PM
BrianFreud
2007-06-22 17325, 2007
22:36 PM
ruaok
yay.
2007-06-22 17330, 2007
22:36 PM
FauxFaux
An ugly picture of catgroove? Not sure I want to look..
2007-06-22 17340, 2007
22:36 PM
ruaok
no someone rewrite this using a lambda function.
2007-06-22 17342, 2007
22:36 PM
ruaok
now
2007-06-22 17347, 2007
22:36 PM
BrianFreud
lol
2007-06-22 17355, 2007
22:36 PM
FauxFaux
Aaah, python, it burns!
2007-06-22 17357, 2007
22:36 PM
Aankhen``
Python's lambdas are pathetic. :-\
2007-06-22 17335, 2007
22:37 PM
BrianFreud
I'm sure there's a way to do it in half the lines :(
2007-06-22 17353, 2007
22:37 PM
dholmes
I'm not sure using a lambda could help in any way for this particular problem
2007-06-22 17340, 2007
22:38 PM
BrianFreud
well, if it didn't have to always be checkerboard no matter the n, I can think of a less lines solution
2007-06-22 17358, 2007
22:38 PM
BrianFreud
would break on all even number ns
2007-06-22 17339, 2007
22:40 PM
Jugdish
[15:36:16] Cannot connect to server.
2007-06-22 17344, 2007
22:40 PM
Jugdish
ridicurous
2007-06-22 17343, 2007
22:41 PM
BrianFreud
2007-06-22 17312, 2007
22:42 PM
FauxFaux
lambda x: return x*2
2007-06-22 17317, 2007
22:42 PM
dholmes
If you haven't studied functional programming before, then I doubt I can
2007-06-22 17321, 2007
22:42 PM
Aankhen``
BrianFreud: Lambdas are just anonymous functions.
2007-06-22 17337, 2007
22:42 PM
Aankhen``
def double: x*2
2007-06-22 17345, 2007
22:42 PM
Aankhen``
Equivalent to: lambda x: return x*2
2007-06-22 17353, 2007
22:42 PM
Aankhen``
Er, wait, double probably needed a return to.
2007-06-22 17355, 2007
22:42 PM
Aankhen``
Anyway.
2007-06-22 17307, 2007
22:43 PM
Aankhen``
They're the same except that the lambda doesn't have a name.
2007-06-22 17315, 2007
22:43 PM
BrianFreud
dholmes: unfortunately all was imperative programming :(
2007-06-22 17318, 2007
22:43 PM
Aankhen``
You can just stick it in a variable or pass it as a function argument or whatever you want.
2007-06-22 17331, 2007
22:43 PM
ojnkpjg
lambda's useful for builtins like map and filter
2007-06-22 17334, 2007
22:43 PM
ojnkpjg
not so much elsewhere
2007-06-22 17356, 2007
22:43 PM
Aankhen``
Needs moar Lisp. ;-)
2007-06-22 17316, 2007
22:44 PM
luks
and you are usually better using list comprehensions for that in python...
2007-06-22 17321, 2007
22:44 PM
BrianFreud
lol... C, C++, Java, VBA, assembly... no Lisp/Ruby/etc experience whatsoever
2007-06-22 17325, 2007
22:44 PM
dholmes
2007-06-22 17329, 2007
22:44 PM
FauxFaux
Needs more js.
2007-06-22 17335, 2007
22:44 PM
ojnkpjg
if you're using python 2.4, yeah
2007-06-22 17348, 2007
22:44 PM
Aankhen``
I love JS, but lately it irritates me a lot.
2007-06-22 17350, 2007
22:44 PM
lauri has quit
2007-06-22 17311, 2007
22:45 PM
BrianFreud still trying to understand what Aankhen`` said :P
2007-06-22 17320, 2007
22:45 PM
Aankhen``
LOL.
2007-06-22 17338, 2007
22:45 PM
luks
2007-06-22 17350, 2007
22:45 PM
Aankhen``
BrianFreud: Okay, do you understand what this is: def double(x): return x
2007-06-22 17358, 2007
22:45 PM
ojnkpjg
brianfreud, e.g., map(lambda x: True, xrange(3)) -> [ True, True, True ]
2007-06-22 17358, 2007
22:45 PM
dholmes
Shit, now you're making me look bad =D
2007-06-22 17328, 2007
22:46 PM
BrianFreud
ojnkpjg: So it's basically a function you can map onto a matrix?
2007-06-22 17332, 2007
22:46 PM
dholmes
Though that's sorta cheating by making the code unreadable, cramming those for loops in one line =D
2007-06-22 17337, 2007
22:46 PM
luks
heh
2007-06-22 17354, 2007
22:46 PM
FauxFaux
2007-06-22 17303, 2007
22:47 PM
Aankhen``
ROTFL.
2007-06-22 17308, 2007
22:47 PM
BrianFreud
you're all evil
2007-06-22 17317, 2007
22:47 PM
BrianFreud
lol
2007-06-22 17332, 2007
22:47 PM
juhae
helan g�r
2007-06-22 17335, 2007
22:47 PM
BrianFreud likes his program... it works
2007-06-22 17351, 2007
22:47 PM
BrianFreud
lol
2007-06-22 17320, 2007
22:49 PM
RottenBer joined the channel
2007-06-22 17351, 2007
22:49 PM
BrianFreud
what does the % in str(j % 2) do?
2007-06-22 17301, 2007
22:50 PM
luks
modulo
2007-06-22 17310, 2007
22:50 PM
BrianFreud
ah, ok
2007-06-22 17328, 2007
22:50 PM
ruaok
whenever you hear checkerboard, you should think modulo
2007-06-22 17335, 2007
22:50 PM
catgroove
args
2007-06-22 17345, 2007
22:50 PM
BrianFreud
yeah, I was... just didn't know how to pull it off
2007-06-22 17349, 2007
22:50 PM
catgroove
don't postthe solutino in here, i'll get to tempting
2007-06-22 17352, 2007
22:50 PM
BrianFreud
lol
2007-06-22 17356, 2007
22:50 PM
catgroove has to clear the buffer