Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

def

Name: Anonymous 2009-06-19 17:58

What does "def" mean in Ruby, and Python?

Name: Anonymous 2009-06-19 18:01

def, fo sho'

Name: Anonymous 2009-06-19 18:01

it means default. If you declare something as default it will always exist.

Name: Anonymous 2009-06-19 18:01

Never used python, or weeaboo, but I think it means define.

Name: Anonymous 2009-06-19 18:04

1/10

Name: Anonymous 2009-06-19 18:05

It means ``defile''. Whatever follows will be forever tainted and soiled by the sort of evil spirits we do not wish to conjure.

Name: Anonymous 2009-06-19 19:04

>>6
I think you mean whatever is in the general vicinity of the word, because you used faggot quotes.

Clever.

Name: Anonymous 2009-06-20 3:14

def in ruby defines a function/method

def square x
  x * x
end

square 3
>> 9


no exceptions

Name: Anonymous 2009-06-20 4:32

def is short for defus, a latin word relating to the herding of animals (say sheep by a dog). It's used in these languages as a sense of keeping track of the animals/functions rather than them being wild

Name: Anonymous 2009-06-20 8:53

It means your program can't take audio input

Name: Anonymous 2009-06-20 9:09

>>10
Incidentally, it specifies the quality of audio input his program can take.

For example, def Hi(waveform):

Name: Anonymous 2009-06-20 10:26

>>11
Just to make sure, everyone got my pun, right?
def... deaf... geddit?

*tumbleweed*

Name: Anonymous 2009-06-20 11:33

Best thread on /prog/ in days

Name: Anonymous 2009-06-20 13:26


def leppard x
  x * x
end

Name: Anonymous 2009-06-20 13:41


def jam
  yo yo yo
end

Name: Anonymous 2009-06-20 14:15


def tones():
    print "GNU_metal"

Name: tehmeh 2009-06-20 14:34

def def():
     def={"def":"Def Leppard are an English rock band from Sheffield, who formed in 1977 as part of the New Wave of British Heavy Metal movement."}
     return def["def"]

Name: Anonymous 2009-06-20 15:49

def dawg():
    print("Yo dawg yo")
    dawg()

Name: LOLFIOCLOL 2009-06-20 15:51

RuntimeError: maximum recursion depth exceeded

Name: Anonymous 2009-06-20 16:36

>>19
Really now, I wouldn't think that would happen with a function like that.

Name: Anonymous 2009-06-20 16:41

>>20
Sarcasm? or did you not hear the Guido hates recursion?

Name: Anonymous 2009-06-20 16:42

>>21
You're slow in the brain.

Name: Anonymous 2009-06-20 20:49

>>9
def is short for short for deficatus, a greek word relating to defus, the herding of animals

Name: Anonymous 2010-11-25 18:02

Name: Anonymous 2011-02-03 6:47

Don't change these.
Name: Email:
Entire Thread Thread List