jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
oxfuxxx has joined #ruby
artemis has joined #ruby
oxfuxxx has quit [Ping timeout: 268 seconds]
artemis has quit [Ping timeout: 268 seconds]
oxfuxxx has joined #ruby
artemis has joined #ruby
oxfuxxx has quit [Ping timeout: 252 seconds]
artemis has quit [Ping timeout: 260 seconds]
Guest12 has joined #ruby
Guest12 has quit [Client Quit]
favadi has joined #ruby
favadi has quit [Client Quit]
favadi has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
robotmay has quit [Quit: Be excellent to each other]
favadi has quit [Client Quit]
robotmay has joined #ruby
shokohsc has quit [Read error: Connection reset by peer]
shokohsc has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
dionysus69 has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 268 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
Guest55 has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
Guest0 has joined #ruby
<Guest0>
hello
Guest0 has quit [Client Quit]
hightower2 has joined #ruby
Rounin has joined #ruby
mahlon has quit [Ping timeout: 260 seconds]
jetchisel has joined #ruby
madprops has joined #ruby
<madprops>
so what's the deal with "symbols" why are they such a big topic/
<madprops>
?
<madprops>
im doing the koans
<madprops>
and im in the fully dedicated section to symbols
<adam12>
madprops: A full section? wild.
dionysus69 has joined #ruby
<madprops>
adam12, yeah. i still don't get symbols
oxfuxxx has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
artemis has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
oxfuxxx has quit [Ping timeout: 268 seconds]
artemis has quit [Client Quit]
oxfuxxx has joined #ruby
artemis has joined #ruby
oxfuxxx has quit [Ping timeout: 252 seconds]
<adam12>
madprops: Think of them as internal strings (internal being not supplied by a user of your app)
<adam12>
madprops: You might have a symbol :username, but you'd likely never have a symbol of :madprops or :adam12.
<adam12>
(because you might have asked someone their IRC nickname, which is not internal)
artemis has quit [Ping timeout: 260 seconds]
<adam12>
madprops: Symbols are globally unique in your application, and exist once in the symbol table. This can be good for memory usage, etc. Strings can exist more than once, and are not unique (with some exceptions). So if you use :username 10 times, it's stored once. If you use "username" 10 times, there's a chance it exists 10 times in memory.
nyuszika7h has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
nyuszika7h has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
<madprops>
adam12, what about when i do attr_accesor :names
<madprops>
is that :names symbol only existing for the class?
<adam12>
madprops: Nope, it exists everywhere. It's just a parameter to the method `attr_accessor`
<adam12>
`attr_accessor` defines 2 methods of course, in your case, `names` and `names=`.
szkl has quit [Quit: Connection closed for inactivity]
gproto23 has joined #ruby
gproto23 has quit [Remote host closed the connection]
<ccooke>
madprops: It helps to think that Symbols are immutable, memory efficient strings. *Because* they are immutable and memory efficient, they make ideal internal identifiers. the attr_accessor method is told the name(s) of the instance variables it is going to make accessor methods for. We pass it in a Symbol because it's more efficient and safer (you can't accidentally change the value of the variable name before
<ccooke>
or after it has methods created for it)
thomas25 has joined #ruby
whysthatso125070 has quit [Read error: Connection reset by peer]
hightower3 has joined #ruby
whysthatso125070 has joined #ruby
hightower2 has quit [Ping timeout: 268 seconds]
nirvdrum has joined #ruby
jpn has joined #ruby
weaksauc_ has joined #ruby
havenwood1 has joined #ruby
brw8 has joined #ruby
balo_ has joined #ruby
glider has joined #ruby
dorian_ has joined #ruby
axsuul_ has joined #ruby
darabiesvampire2 has joined #ruby
IsoLnCHiP has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
entropy has joined #ruby
bougyman_ has joined #ruby
NightMonkey_ has joined #ruby
nowaker_ has joined #ruby
hrberg_ has joined #ruby
Milos_ has joined #ruby
cnsvc- has joined #ruby
weyhmueller_ has joined #ruby
smp_ has joined #ruby
perrierj1 has joined #ruby
gcd_ has joined #ruby
aindilis has joined #ruby
weyhmueller has quit [Ping timeout: 252 seconds]
scottg489 has quit [Ping timeout: 252 seconds]
axsuul has quit [Ping timeout: 252 seconds]
perrierjouet has quit [Ping timeout: 252 seconds]
entropie has quit [Ping timeout: 252 seconds]
bougyman has quit [Ping timeout: 252 seconds]
NightMonkey has quit [Ping timeout: 252 seconds]
balo has quit [Ping timeout: 252 seconds]
dorian has quit [Ping timeout: 252 seconds]
gcd has quit [Ping timeout: 252 seconds]
Milos has quit [Ping timeout: 252 seconds]
IsoLinCHiP has quit [Ping timeout: 252 seconds]
egality has quit [Ping timeout: 252 seconds]
eam_ has quit [Ping timeout: 252 seconds]
depesz has quit [Ping timeout: 252 seconds]
joast has quit [Ping timeout: 252 seconds]
ua_ has quit [Ping timeout: 252 seconds]
Rounin has quit [Ping timeout: 252 seconds]
rvalue has quit [Ping timeout: 252 seconds]
Starfoxxes has quit [Ping timeout: 252 seconds]
glider_ has quit [Ping timeout: 252 seconds]
smp has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 252 seconds]
brw has quit [Ping timeout: 252 seconds]
jidar has quit [Ping timeout: 252 seconds]
hrberg has quit [Ping timeout: 252 seconds]
cnsvc has quit [Ping timeout: 252 seconds]
weaksauce has quit [Ping timeout: 252 seconds]
darabiesvampire has quit [Ping timeout: 252 seconds]
kenichi has quit [Ping timeout: 252 seconds]
mahler has quit [Ping timeout: 252 seconds]
Nowaker has quit [Ping timeout: 252 seconds]
ua_ has joined #ruby
kenichi has joined #ruby
jidar has joined #ruby
eam has joined #ruby
Starfoxxes has joined #ruby
sagax has quit [Ping timeout: 252 seconds]
Cork has quit [Ping timeout: 252 seconds]
aindilis_ has quit [Ping timeout: 252 seconds]
brw8 is now known as brw
havenwood1 is now known as havenwood
entropy is now known as entropie
smp_ is now known as smp
darabiesvampire2 is now known as darabiesvampire
rvalue- has joined #ruby
hasley has joined #ruby
scottg489 has joined #ruby
depesz has joined #ruby
rvalue- has quit [Remote host closed the connection]
dionysus69 has joined #ruby
rvalue has joined #ruby
NightMonkey_ is now known as NightMonkey
Cork has joined #ruby
egality has joined #ruby
Rounin has joined #ruby
hasley is now known as mahler
M3w0[m] has quit [Quit: You have been kicked for being idle]
perrierj1 has quit [Quit: WeeChat 3.6]
perrierjouet has joined #ruby
jpn has joined #ruby
Thanzex has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 252 seconds]
jetchisel has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
fercell has joined #ruby
jpn has joined #ruby
skape has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
_ht has joined #ruby
oxfuxxx has joined #ruby
mahlon has joined #ruby
nirvdrum has joined #ruby
artemis has joined #ruby
oxfuxxx has quit [Ping timeout: 268 seconds]
artemis has quit [Ping timeout: 252 seconds]
cocalero has joined #ruby
oxfuxxx has joined #ruby
kaivai has quit [Changing host]
kaivai has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
ollysmith has quit [Quit: ZNC 1.8.2+deb2+b5 - https://znc.in]