dopie has quit [Quit: This computer has gone to sleep]
jeff_laplante has quit [Ping timeout: 246 seconds]
jmallen has quit [Quit: jmallen]
ypl has joined #ruby
<ypl>
is it necessary to know javascript to build good rails apps?
<pipework>
Nope.
<ypl>
pipework: Why not?
<pipework>
ypl: Because you can get by without it.
<BraddPitt>
Because you don't need any js to write a functioning rails ao
<BraddPitt>
app
<pipework>
It'll certainly help if you're more adept with JS when building rails applications, but I've written rails application that don't even serve HTML.
<ypl>
BraddPitt: Not a functioning, but a good rails app.
<pipework>
I've also built rails applications that only serve JS and assets.
<BraddPitt>
you can just have your rails server send html.erb to the client directly
htmldrum has joined #ruby
Musashi007 has joined #ruby
<BraddPitt>
or just have a rails backed JSON api
<ypl>
BraddPitt: How do rails developers use javascript if they dont know it?
Kallis has joined #ruby
<BraddPitt>
I reckon they don't use javascript if they don't know it
<BraddPitt>
much in the same way I don't speak Japanese because I don't know that language
<BraddPitt>
I don't understand what you're asking
lxsameer has quit [Quit: Leaving]
<ypl>
BraddPitt: What I'm trying to say is...many rails apps that may be considered to be good apps use javascript so the rails devs must know js.
zotherstupidguy has quit [Ping timeout: 264 seconds]
<BraddPitt>
yes
<BraddPitt>
but you asked if it were possible to write a good rails app without javascript
zendrix has quit [Ping timeout: 265 seconds]
<BraddPitt>
and the answer is yes
netmask has joined #ruby
<BraddPitt>
FWIW, many rails devs DO learn a javascript MVC framework (backbone, angular, ember, etc)
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<pipework>
ypl: If you want to be hirable as a full stack rails developer, you should know JS.
<ypl>
BraddPitt: But in the beginning they just learn rails without any js correct?
<pipework>
But you don't have to and I've worked on massive apps that power some big stuff.
<BraddPitt>
sadly, pipework wis correct
<pipework>
Didn't write JS.
dikaio has joined #ruby
<BraddPitt>
yes ypl
<BraddPitt>
Generally you learn how to make a `vanilla` rails app with JUST rails, then you learn JS/JQuery/client side MVC and use that
JDiPierro has joined #ruby
freerobby has quit [Quit: Leaving.]
<ypl>
I'm actually just getting started with rails actually...
<BraddPitt>
so you have your Rails app generating the JSON API and your client side javascript consuming it and rendering your views
zotherstupidguy has joined #ruby
<BraddPitt>
I would advise you to continue learning rails, and once you have built a functioning rails app, then learn javascript and then a client side MVC framework
<ypl>
BraddPitt: Alright, thanks!
<toretore>
ypl: just continue learning rails, without using any js
<pipework>
ypl: You can learn a lot more and even get started really quickly by visiting the website.
<ypl>
BraddPitt: How is data stored and retrieved from the database? SQL or something else?
tkuchiki has joined #ruby
<BraddPitt>
you can use raw SQL, but more commonly is ActiveRecord - Rails' Object Relational Mapper for SQL databases
<pipework>
ypl: /j #rubyonrails
<pipework>
They can help you out more there. A lot of us are in both channels.
<BraddPitt>
do you sitll need to be authed to talk in there pipework
<pipework>
BraddPitt: Yeah.
cjbottaro has joined #ruby
CrazyEddy has quit [Ping timeout: 252 seconds]
<pipework>
You can register a nick without an email address though.
<BraddPitt>
I think im registered just not authed
gwendall has joined #ruby
<ypl>
thanks a lot for all the info guys. i'm out!
ypl has left #ruby [#ruby]
tkuchiki has quit [Ping timeout: 246 seconds]
Luming has quit [Remote host closed the connection]
Napear has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwendall has quit [Ping timeout: 255 seconds]
swgillespie has joined #ruby
rushed has quit [Quit: rushed]
bruno- has quit [Ping timeout: 240 seconds]
aerozeppelin has joined #ruby
tmillc has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<tmillc>
hello, I'm doing rubykoans and am having difficulty understanding what's happening here: "one two-three".sub(/(t\w*)/) { $1[0, 1] }
jenrzzz has joined #ruby
<tmillc>
I get what the regexp is matching, and I get that it's sub(pattern) { |match| block } but I don't understand what's in the block
<eam>
tmillc: how much of what's in the block do you understand? Where should we start in explaining?
DocMAX has joined #ruby
<DocMAX>
hi
<tmillc>
eam: hmm, I sort of get that $1, $2, ... hold the .. matches? and [0,1] refer to the matches? so pretty vaguely maybe understand very little hah.
Luming has joined #ruby
<eam>
yes, $1 is what the () parens captured -- the string
<tmillc>
ok I think I get it now... and if there were more things to match, like in the case of gsub, the $1 would hold each match as it comes through?
fullofcaffeine has quit [Remote host closed the connection]
aerozeppelin has quit [Read error: Connection reset by peer]
aerozeppelin has joined #ruby
eminencehc has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
mjago has joined #ruby
paulcsmith has joined #ruby
JDiPierro has quit [Remote host closed the connection]
sekrit has joined #ruby
amystephen has quit [Quit: amystephen]
aerozeppelin has quit [Ping timeout: 240 seconds]
jeff_laplante has joined #ruby
joufflu has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
inteq has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 268 seconds]
cih has joined #ruby
railswebdev has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
based_pdev_ has joined #ruby
putz54 has joined #ruby
samukasmk has quit [Remote host closed the connection]
diegoviola has quit [Read error: Connection reset by peer]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
ValicekB has quit [Ping timeout: 260 seconds]
icbm has quit [Quit: Leaving]
NeverDie has joined #ruby
rushed has quit [Quit: rushed]
marens_ has quit [Remote host closed the connection]
marens has joined #ruby
s00pcan has quit [Ping timeout: 250 seconds]
s00pcan has joined #ruby
based_pdev has quit [Ping timeout: 250 seconds]
cih has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
<putz54>
I need to rewrite an old Perl CGI::Application app in Ruby to run in CGI mode. I'm assuming Sinatra's out as it's based on routes which doesn't fit the cgi model too well. Is Rack and its middleware the only option for cgi apps? CGI::Application uses runmodes which are specified in hidden input fields.
ivanskie_ has joined #ruby
SnowCrash has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
<toretore>
putz54: why does it have to run in cgi mode?
Luming has quit [Remote host closed the connection]
<putz54>
toretore: Server restrictions.
chouhoulis has joined #ruby
favadi has joined #ruby
ValicekB has joined #ruby
subshad has quit [Quit: Leaving]
<toretore>
putz54: cgi just runs the script and passes http env as env/stdin
Luming has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<putz54>
toretore: Yes, that's why I assumed Sinatra's not suitable.
lubarch has joined #ruby
dorei has quit []
maletor has joined #ruby
<toretore>
sinatra conforms to the rack spec, so you can easily write a cgi <-> rack middleware
<putz54>
toretore: .... unless something like site.com/cgi/script.cgi/route can somehow be fed to Sinatra as post 'route'
maletor has quit [Client Quit]
<toretore>
/route in that case will be in ENV['PATH_INFO']
<putz54>
toretore: Is require 'rubygems' still necessary these days?
jenrzzz has joined #ruby
<havenwood>
putz54: nope, that's 1.8 and earlier only and even 1.9 is past end-of-life
danielpclark has joined #ruby
<havenwood>
2.0 will be end-of-lifed in 143 days.
<havenwood>
Only 83 days till 2.3. :)
devoldmx has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
mary5030 has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
putz54 has quit [Quit: Bad BitchX, bad BitchX, whatcha gonna do? Whatcha gonna do when they come for you?]
<diegoviola>
what will be new in 2.3?
araujo__ has quit [Ping timeout: 272 seconds]
The_Phoenix has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie_ has joined #ruby
araujo__ has joined #ruby
<havenwood>
diegoviola: There's lots but if I recall correctly it gets did_you_mean for method suggestions in error output and flags for frozen String and Regexp literals.
<havenwood>
diegoviola: Some nifty new methods.
<toretore>
i've been waiting years for "did you mean" in ruby
<shevy>
really?
<havenwood>
diegoviola: If you've ever needed an Array#bsearch_index you're in luck!
<havenwood>
diegoviola: So you can have flags in 2.3 to get the frozen literals from 3.0. Nice speed wins now.
<diegoviola>
havenwood: cool
<havenwood>
And a way to see what breaks. :O
noethics has joined #ruby
<tmillc>
"did you mean" sounds really neat. I haven't really looked at exceptions yet (a bit new to programming), but they seem like they're objects too?
podman has quit [Quit: Connection closed for inactivity]
<toretore>
havenwood: is there anywhere i can see what's planned for 2.3?
drocsid has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
<diegoviola>
is that like git's did you mean?
<diegoviola>
git st -> status, etc, etc
ramfjord has joined #ruby
<tmillc>
can you do anything like exception[1] # => line# of the problem ?
<Eiam_>
toretore: thats true, but it makes me more hesitant to invest in it. 3 years ago Ruby 1.9 was still a thing..
<Eiam_>
and 1.8.7
<Eiam_>
a lot has changed
<Eiam_>
toretore: it certainly *looks* like what I was after. but perhaps other things exist under another name that are more commonly used, hence my question
eminencehc has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
<toretore>
so? that doesn't mean anything
gwendall has joined #ruby
<toretore>
it looks to me like an implementation of the reactive stuff, you might google that
<toretore>
Eiam_: you can do a very simple version of that using fibers
netmask has quit [Remote host closed the connection]
craysiii has quit [Remote host closed the connection]
matp has quit [Remote host closed the connection]
kyo has quit [Ping timeout: 246 seconds]
allomov has quit [Ping timeout: 264 seconds]
Luming has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
matp has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
Eric- has quit [Quit: Leaving...]
Rickmasta has joined #ruby
aerozeppelin has joined #ruby
solocshaw has quit [Ping timeout: 264 seconds]
amystephen has joined #ruby
verazabeida is now known as vz
vz is now known as Guest82626
crdpink2 has quit [Ping timeout: 246 seconds]
aerozeppelin has quit [Ping timeout: 246 seconds]
Kallis has quit [Read error: Connection reset by peer]
amystephen has quit [Ping timeout: 250 seconds]
aerozeppelin has joined #ruby
aerozeppelin has quit [Read error: Connection reset by peer]
darkf has joined #ruby
ItSANgo has joined #ruby
blackmesa has joined #ruby
agent_white has joined #ruby
ItSANgo has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
ItSANgo has joined #ruby
pipework is now known as sourcerer
sourcerer is now known as pipework
jcdesimp has quit [Quit: Leaving...]
blackmesa has quit [Ping timeout: 240 seconds]
Guest82626 has quit []
Xeago has joined #ruby
shmilan has joined #ruby
Guest29226 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lubarch has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
RegulationD has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lanemeyer has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Xeago has quit [Ping timeout: 260 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
netmask has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
danieli has quit [Quit: *does an epic backflip into nowhere*]
swgillespie has joined #ruby
crdpink has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
danieli has joined #ruby
rushed has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
tmtwd has joined #ruby
Rickmasta has joined #ruby
Me_Engine has quit [Quit: ChatZilla 0.9.92 [Firefox 41.0.1/20150929144111]]
Musashi007 has joined #ruby
UtkarshRay has joined #ruby
Me_Engine has joined #ruby
netmask has quit [Ping timeout: 264 seconds]
joufflu has joined #ruby
[k- has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
moeabdol has quit [Quit: WeeChat 1.3]
favadi has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
havenwood has joined #ruby
pontiki has joined #ruby
devoldmx has joined #ruby
bronson has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
jun has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
arup_r has joined #ruby
last_staff has joined #ruby
devbug has joined #ruby
braincra- has joined #ruby
ramfjord has joined #ruby
fullofcaffeine has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
davo_ has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jun has quit [Remote host closed the connection]
favadi has joined #ruby
moeabdol has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
dopie has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
diego1 has joined #ruby
jun has joined #ruby
gwendall has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
wookiehangover has joined #ruby
yfeldblu_ has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
diego1 has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
baweaver has quit [Read error: Connection reset by peer]
curses has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
mghaig has joined #ruby
baweaver has joined #ruby
fullofcaffeine has joined #ruby
workmad3 has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
<mghaig>
I'm writing an implementation for a linked list, I have instance methods #append_element and #insert_element_at if the user passes #insert_element_at an index that is the the tail of the list, I want to just call the #append_element method... do I need to call that with self.append_element( new_node ) or can I skip the self?
PaulCape_ has joined #ruby
curses has quit [Ping timeout: 264 seconds]
bb010g has joined #ruby
blackmesa has joined #ruby
<[k->
you can skip it
<[k->
?try
<ruboto>
Why don't you try it and see for yourself?
PaulCapestany has quit [Ping timeout: 240 seconds]
<[k->
you can already use an array as a linked list with shift and unshift
workmad3 has quit [Ping timeout: 240 seconds]
rmn388_ has joined #ruby
<mghaig>
thanks. and ya I should've just written it all out and tried it. ya I know but I'm in a data structures class and I'm doing all of my projects in ruby also for practice and such
blackmesa has quit [Ping timeout: 250 seconds]
<[k->
one of the most useful ways to learn, is to practice. To practice, means to do & try
mghaig has quit []
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mghaig has joined #ruby
mghaig has quit [Client Quit]
<Napear>
true fact... I think I spend more time on hackerrank than I do with my wife
<[k->
that's why we don't know women!
htmldrum has joined #ruby
schlubbi has joined #ruby
favadi has joined #ruby
ramfjord has joined #ruby
vdamewood has quit [Quit: Life beckons.]
rippa has joined #ruby
schlubbi has quit [Remote host closed the connection]
netmask has joined #ruby
wookiehangover has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
<pontiki>
you men folk
wookiehangover has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<Napear>
what!? ... she's busy too
<Napear>
:-)
<pontiki>
exactly :)
mjago has quit [Ping timeout: 246 seconds]
andywojo has joined #ruby
netmask has quit [Ping timeout: 240 seconds]
[k- has quit [Quit: -a- IRC for Android 2.1.23]
charliesome has joined #ruby
houhoulis has joined #ruby
Rollabunna has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
leafybasil has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jenrzzz has joined #ruby
andywojo has quit [Ping timeout: 246 seconds]
slackr has joined #ruby
slackr has quit [Client Quit]
dionysus69 has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybas_ has joined #ruby
araujo__ has quit [Quit: Leaving]
BraddPitt has quit [Remote host closed the connection]
drocsid has quit [Remote host closed the connection]
Oka has quit [Quit: o/]
bronson has quit [Ping timeout: 240 seconds]
niemcu has joined #ruby
havenwood has joined #ruby
workmad3 has joined #ruby
minimalism has quit [Quit: leaving]
fullofcaffeine has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
fullofcaffeine has joined #ruby
Musashi007 has quit [Client Quit]
bubbys has quit [Ping timeout: 240 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 264 seconds]
bubbys has joined #ruby
warprobot has joined #ruby
warprobot has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
deavid has quit [Ping timeout: 272 seconds]
Anti-Pizza has joined #ruby
deavid has joined #ruby
bubbys has quit [Ping timeout: 240 seconds]
allomov has joined #ruby
pontiki has quit [Ping timeout: 240 seconds]
moeabdol1 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has quit [Ping timeout: 260 seconds]
allomov has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 246 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Miron has quit [Ping timeout: 256 seconds]
FrankD has quit [Ping timeout: 244 seconds]
fullofcaffeine has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
curses has joined #ruby
houhoulis has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 260 seconds]
Miron has joined #ruby
tsujp has joined #ruby
curses has quit [Ping timeout: 250 seconds]
arescorpio has quit [Quit: Leaving.]
Guest29226 has quit [Ping timeout: 264 seconds]
bubbys has joined #ruby
jun has quit [Remote host closed the connection]
jun has joined #ruby
ndrei has joined #ruby
jun has quit [Remote host closed the connection]
devoldmx has joined #ruby
faces has quit [Ping timeout: 268 seconds]
faces has joined #ruby
senayar has quit [Remote host closed the connection]
rippa has joined #ruby
blackmesa has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
amoeba` is now known as amoeba_
jgt has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
Luming has quit [Ping timeout: 255 seconds]
Salehi has joined #ruby
lubarch has quit [Quit: leaving]
Luming has joined #ruby
lubarch has joined #ruby
Jackneill has joined #ruby
lubarch has quit [Client Quit]
eminencehc has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
devbug has joined #ruby
lubarch has joined #ruby
eminencehc has joined #ruby
devbug_ has quit [Ping timeout: 244 seconds]
FrankD has joined #ruby
rushed has joined #ruby
RegulationD has joined #ruby
Soda has joined #ruby
rikai has quit [Remote host closed the connection]
rikai has joined #ruby
jgt has quit [Read error: No route to host]
darkxploit has joined #ruby
netmask has joined #ruby
jeaye has left #ruby ["WeeChat 1.1.1"]
leat has quit [Quit: leat]
Luming has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
senayar has joined #ruby
andywojo has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
symm- has joined #ruby
jgt has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
senayar has quit [Ping timeout: 246 seconds]
netmask has quit [Ping timeout: 264 seconds]
htmldrum has quit [Ping timeout: 255 seconds]
andywojo has quit [Ping timeout: 240 seconds]
G186 has joined #ruby
lubarch has quit [Quit: leaving]
lubarch has joined #ruby
psy_ has joined #ruby
senayar has joined #ruby
ledestin has joined #ruby
blackmesa has joined #ruby
dionysus69 has joined #ruby
ruurd has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
gizmore has quit [Ping timeout: 264 seconds]
curses has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
lubarch has quit [Ping timeout: 255 seconds]
yardenbar has quit [Quit: Leaving]
sdwrage has joined #ruby
mjago has joined #ruby
sdwrage has quit [Client Quit]
G186 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 256 seconds]
leat has joined #ruby
blackmesa has joined #ruby
eminencehc has joined #ruby
eminencehc has quit [Remote host closed the connection]
noethics has quit [Quit: Leaving]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
<tmillc>
rubykoans is really fun
senayar has quit [Remote host closed the connection]
<tmillc>
also random thought, do you think it's something inherent to the language, or accident, that python became more associated with scientific computing? Moreso than ruby I mean. They don't seem like dissimilar languages but I'm not well versed in python.
wookiehangover has quit [Ping timeout: 246 seconds]
andywojo has quit [Ping timeout: 240 seconds]
danieli has quit [Quit: *does an epic backflip into nowhere*]
wookiehangover has joined #ruby
<jhass>
tmillc: python is a quite explicit language and to me it feels such traits somehow get more popular in that community
<tmillc>
jhass: hmm I see, yes. Easier to pass on explicit verbal/written instructions and algorithms
UtkarshRay has quit [Quit: Leaving]
Voker57 has joined #ruby
senayar has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
nofxx has quit [Ping timeout: 264 seconds]
ruby-lang415 has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
wallerdev has quit [Quit: wallerdev]
NeverDie has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
saturnia has joined #ruby
NeverDie has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
dikaio has quit [Quit: ........]
Trynemjoel has joined #ruby
chouhoulis has quit [Remote host closed the connection]
znz_jp has joined #ruby
[k- has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
s00pcan has quit [Ping timeout: 240 seconds]
niemcu has quit [Ping timeout: 246 seconds]
hanmac has quit [Quit: Leaving.]
last_staff has joined #ruby
s00pcan has joined #ruby
Cyther has joined #ruby
bifflechip has joined #ruby
Salehi has quit [Ping timeout: 250 seconds]
n008f4g_ has joined #ruby
bifflechip has left #ruby ["WeeChat 1.3"]
bronson has joined #ruby
tkuchiki has joined #ruby
senayar has joined #ruby
allomov has joined #ruby
rmn388_ has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
netmask has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
bifflechip has joined #ruby
Antiarc has quit [Ping timeout: 252 seconds]
netmask has quit [Ping timeout: 265 seconds]
Antiarc has joined #ruby
mattprelude has joined #ruby
spider-mario has joined #ruby
deavid has quit [Ping timeout: 255 seconds]
FrankD has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
mattprelude has quit [Client Quit]
FrankD has joined #ruby
sankaber has joined #ruby
favadi has joined #ruby
yellowgh0st has joined #ruby
tmillc has quit [Quit: WeeChat 1.1.1]
kidoz has joined #ruby
rdark has joined #ruby
rdark has joined #ruby
_blizzy_ has joined #ruby
blackmes1 has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
eminencehc has joined #ruby
deavid has joined #ruby
Ilyes512 has joined #ruby
ivanf has quit [Ping timeout: 256 seconds]
Log1x has quit [Ping timeout: 256 seconds]
znz_jp has quit [Quit: kill -QUIT $$]
ruby-lang415 has quit [Ping timeout: 246 seconds]
anekos has quit [Ping timeout: 256 seconds]
eminencehc has quit [Ping timeout: 256 seconds]
jeadre has quit [Ping timeout: 256 seconds]
max_Q has quit [Ping timeout: 256 seconds]
galeido has quit [Ping timeout: 256 seconds]
max_Q has joined #ruby
galeido has joined #ruby
ivanf has joined #ruby
rj-code has quit [Ping timeout: 256 seconds]
anekos has joined #ruby
yellowgh0st has joined #ruby
Log1x has joined #ruby
Ray` has quit [Ping timeout: 256 seconds]
Ray` has joined #ruby
rj-code has joined #ruby
Salehi has joined #ruby
lubarch has quit [Quit: leaving]
lubarch has joined #ruby
charliesome has joined #ruby
znz_jp has joined #ruby
lubarch has quit [Client Quit]
lubarch has joined #ruby
workmad3 has joined #ruby
lubarch has quit [Client Quit]
Antiarc has quit [Ping timeout: 244 seconds]
lubarch has joined #ruby
lubarch has quit [Client Quit]
lubarch has joined #ruby
chouhoulis has joined #ruby
lubarch has quit [Client Quit]
Antiarc has joined #ruby
lubarch has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
subscope has joined #ruby
lubarch has quit [Client Quit]
SenpaiSilver has joined #ruby
Log1x has quit [Ping timeout: 256 seconds]
df has quit [Ping timeout: 256 seconds]
Olipro has quit [Ping timeout: 256 seconds]
shortdudey123 has quit [Ping timeout: 256 seconds]
iceden has quit [Ping timeout: 256 seconds]
JaTochNietDan has quit [Ping timeout: 256 seconds]
iceden has joined #ruby
GarethAdams has quit [Ping timeout: 256 seconds]
Caius has quit [Ping timeout: 256 seconds]
Authenticator has quit [Ping timeout: 256 seconds]
Log1x has joined #ruby
Liothen has quit [Ping timeout: 256 seconds]
Authenticator has joined #ruby
shortdudey123 has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
df has joined #ruby
mission712_ has quit [Ping timeout: 256 seconds]
crayfishx has quit [Ping timeout: 256 seconds]
Hijiri has quit [Ping timeout: 256 seconds]
EvilJStoker has quit [Ping timeout: 256 seconds]
ElderFain has quit [Ping timeout: 256 seconds]
psy_ has joined #ruby
bascht has quit [Ping timeout: 256 seconds]
bifflechip has quit [Quit: WeeChat 1.3]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has joined #ruby
EvilJStoker has joined #ruby
GarethAdams has joined #ruby
JaTochNietDan has joined #ruby
Liothen has joined #ruby
Olipro has joined #ruby
Caius has joined #ruby
devoldmx has joined #ruby
Coldblackice has quit [Ping timeout: 260 seconds]
Coldblackice_ has joined #ruby
ElderFain has joined #ruby
FrankD has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
s00pcan_ has joined #ruby
stamina has joined #ruby
s00pcan has quit [Ping timeout: 268 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
crayfishx has joined #ruby
bifflechip has joined #ruby
yellowgh0st has quit [Quit: yellowgh0st]
bronson has joined #ruby
bascht has joined #ruby
senayar has joined #ruby
mission712_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 244 seconds]
nertzy2 has quit [Read error: Connection reset by peer]
nertzy2 has joined #ruby
FrankD has joined #ruby
Salehi has quit [Quit: Leaving]
SHyx0rmZ has quit [Ping timeout: 256 seconds]
senayar has quit [Ping timeout: 240 seconds]
deavid has quit [Ping timeout: 240 seconds]
netmask has joined #ruby
pontiki has joined #ruby
rdark has quit [Quit: leaving]
SCHAAP137 has joined #ruby
zotherstupidguy has joined #ruby
pontiki has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
hanmac has joined #ruby
deavid has joined #ruby
jenrzzz has joined #ruby
netmask has quit [Ping timeout: 260 seconds]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
doddok has joined #ruby
amystephen has joined #ruby
vdamewood has quit [Quit: Life beckons.]
firstdayonthejob has quit [Read error: Connection reset by peer]
Coldblackice_ has quit [Ping timeout: 264 seconds]
firstdayonthejob has joined #ruby
saturnia has quit [Remote host closed the connection]
FrankD has quit [Ping timeout: 250 seconds]
firstdayonthejob has quit [Client Quit]
FrankD has joined #ruby
cirenyc has joined #ruby
ruby-lang708 has joined #ruby
<ruby-lang708>
how could I confirm if mysql2 gem is successfully installed ? --I am on windows and new to ruby (Past PHP dev experince)
CloCkWeRX has left #ruby [#ruby]
<ruby-lang708>
after installation it shows successfully installed gem but when pulling on browser it says gem::loadError
ndrei has quit [Ping timeout: 264 seconds]
Cyther has quit [Quit: Leaving]
<ruby-lang708>
can anyone help ?
<jamo__>
write a small script which requires the gem and does something trivial with it
<jamo__>
or see of the gem exists on the install directory
mjago has quit [Read error: Connection reset by peer]
psy_ has quit [Remote host closed the connection]
cih has joined #ruby
mjago has joined #ruby
<jamo__>
and how+what are you running on the brower - what acctually is failing
Rickmasta has joined #ruby
<ruby-lang708>
Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
<ruby-lang708>
I get the above error
<jamo__>
so you are using rails? dev or prod?
<jamo__>
did you restart the app after modifying the Gemfile?
ht__ has joined #ruby
<jamo__>
and did you bundle install
<jamo__>
and maybe run the app with bundle exec
<ruby-lang708>
I have not done any changes to the gemfile , it already contails mysql2 and I have restarted the server sevral times
<ruby-lang708>
I have set the variables to all environment
<ruby-lang708>
and set the database: app (which i have created in phpmyadmin)
ItSANgo has quit [Quit: Leaving...]
<jamo__>
how did you install the gem; bundle install in the directory which contains the Gemfile?
<jamo__>
and how are you running the app
sanjayu has joined #ruby
<ruby-lang708>
I have created the app in a directory and then I ran bundle install its returned "Your bundle is complete" and then I am using rails s command to run the app
zotherstupidguy has quit [Ping timeout: 255 seconds]
<flex>
jhass: Yeah. I'm wondering how it's working if '.' is not in the load path...
shmilan has joined #ruby
<jhass>
maybe rb_find_file prepends an implicit ./ if the extension is given? In any case it's undocumented behavior, don't rely on it (and don't use load in the first place unless you know exactly what you're doing)
<flex>
jhass: I checked $: after loading the file. '.' doesn't get added afterwards either. Weird...
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
flex: does load "/foo/bar/baz.rb" working without "/foo/bar/" being in the load path surprise you too?
Ilyes512 has joined #ruby
andywojo has quit [Ping timeout: 246 seconds]
davedev24 has joined #ruby
niemcu has joined #ruby
Azure has quit [Remote host closed the connection]
netmask has quit [Ping timeout: 240 seconds]
<flex>
jhass: No since that is an absolute path...
lxsameer has quit [Quit: Leaving]
<flex>
jhass: Using load allows you to load files more than once so you can edit a file and then load it again in the same session. require only loads it once. that's the main reason for using load ....
<jhass>
anyway, what I'm saying is that load appears to treat "foo.rb" as "./foo.rb"
<flex>
jhass: Also, when we require a file, does it run the file in the current script or does it copy everything from the required file into the current script?
<jhass>
neither, require is just like load except with a guard that prevents loading a file twice
<jhass>
local variables don't propagate from one file to another, so either picture is misleading
<jhass>
Ruby just parses and executes the file
Azure has joined #ruby
_blizzy_ has joined #ruby
G has joined #ruby
evanjs has joined #ruby
<flex>
jhass: So basically requiring a file just runs the file, correct?
<jhass>
yes, keeping the global(!) context the same of course
codecop has joined #ruby
arup_r has quit [Quit: Leaving]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Read error: Connection reset by peer]
<leitz>
I'm reading the rspec book and trying to figure out the directory structure under lib. SO far it seems to have "myproject/lib/myproject/code_to_run.rb" Is there a reason for the nesting?
<jhass>
leitz: the reason is that your code should be under module Myproject
<leitz>
in code_to_run.rb there's a Module and Class defined.
<TTilus>
flex: rake is designed to do similar kind of stuff than make is, syntax is ruby
ndrei has joined #ruby
leafybasil has joined #ruby
<TTilus>
pontiki: for really small scale stuff something like this http://pastie.org/10458201 works just fine, no need to complicate stuff
<TTilus>
the same file serves as a cli binary, loadable library and may very well also contain all the necessary documentation
<flex>
So a build tool is generally used for compilation?
leafybasil has quit [Remote host closed the connection]
DLSteve has joined #ruby
<flex>
whoops. wrong irc.
flex has left #ruby [#ruby]
<shevy>
lol
<[k->
channel*
felixr has joined #ruby
<jhass>
now I wonder what the right one would be
<shevy>
webchat is weird
<TTilus>
build != compile
DmitryBochkarev has joined #ruby
bronson has joined #ruby
<shevy>
flex will never know that!
The_Phoenix has quit [Quit: Leaving.]
<TTilus>
oh my! sackcloth and ashes!
<pontiki>
TTilus: i never have anything that simple
<pontiki>
why would i bother?
doddok has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
<TTilus>
pontiki: it was just an example
bronson has quit [Ping timeout: 260 seconds]
<TTilus>
pontiki: you know what works for you, that pattern might not
<pontiki>
for anything that simple, i'm just writing a bash script
<pontiki>
or perl
<TTilus>
highly likely
skweek has quit [Ping timeout: 256 seconds]
<shevy>
perl!
<TTilus>
it is still good pattern to know, since it is fairly common and you are prolly gonna see it if you dig in to non trivial amount of open source code
<shevy>
that explains the leading p in your nick
<shevy>
if you'd use ruby you'd be rontiki
<pontiki>
indeed, i wrote some like that myself, then found it too difficult to unit test them
G186 has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<pontiki>
shevy: does that mean you're language is sea sharp?
<pontiki>
your*
<TTilus>
pontiki: how come too difficult to unit test?
<shevy>
I am feeling hipster and will go with swift for now
<shevy>
go ... swift .. man, we can soon build full sentences with the names of programming languages alone
<TTilus>
pontiki: the whole point is that you can require it in your test script and only use the api
senayar has quit [Ping timeout: 260 seconds]
<pontiki>
you load the entire bin file to do a unit test?
niemcu has quit [Ping timeout: 246 seconds]
<pontiki>
that means you're executing the entire script each time
<TTilus>
pontiki: "entire bin file" has totally two more lines of code than respective lib (if that would be split into separate file) :D
<TTilus>
pontiki: no, i'm not executing
<TTilus>
pontiki: read the last line
solocshaw has quit [Ping timeout: 272 seconds]
<TTilus>
pontiki: that's the whole point of the pattern
<leitz>
if myproject/bin/myscript.rb requires myproject/lib/mylib.rb, why does the LOAD_PATH exansion require '../../lib' and not '../lib'?
<leitz>
exansion/expansion
<TTilus>
pontiki: it runs CLI only if the file is executed as a script, not when it is required as a lib
<shevy>
do you really need to use LOAD_PATH directly leitz?
solocshaw has joined #ruby
<pontiki>
oh, right, i see
<leitz>
shevy, still figuring that out. jhass and I chatted about project structure but i'm still scratching my head a bit.
<[k->
require_relative
<shevy>
yeah you should not need it for the most part
codecop has quit [Ping timeout: 264 seconds]
<jhass>
leitz: rough guess: you expand relative to __FILE__ instead of __dir__
<jhass>
and I still recommend -Ilib or bundle exec
<adaedra>
And iirc, require_relative is default require behavior in 1.8.7
* leitz
changes his request for a URL from shevy to a comment about going to read.
<jhass>
adaedra: not quite, require_relative is relative to the current file, 1.8 has . (the current working directory) in the load path
DEA7TH has quit [Remote host closed the connection]
<adaedra>
do I didn't recall correctly, thanks.
<adaedra>
so*
<shevy>
leitz setup.rb is really easy to use, and for your gem-structured projects, you only need "require" really. never have to use require_relative or have to tamper with $LOAD_PATH
wottam has joined #ruby
<pontiki>
"what version of ruby are you using" is the new "a/s/l" ?
solocshaw has quit [Ping timeout: 244 seconds]
<jhass>
we could just drop that question and assume a sane/supported one. Their problem for using outdated stuff, not ours
<adaedra>
should be o/v/m: Os, Version, install Method.
<pontiki>
^
<shevy>
Beer, Now, Drink.
freerobby has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
No.
ddv has quit [Changing host]
ddv has joined #ruby
<shevy>
:(
<pontiki>
saturday morning, beer o'clock is all day long?
<shevy>
oh oh oh it's soon evening here
<shevy>
but beer isn't great for programming anyway
<pontiki>
whisky
<shevy>
hehe
<pontiki>
get that balmer peak on
dasher00 has quit [Read error: Connection reset by peer]
netmask has joined #ruby
arup_r has joined #ruby
solocshaw has joined #ruby
Anti-Pizza has joined #ruby
lkba has joined #ruby
zenguy_pc has quit [Ping timeout: 256 seconds]
linduxed has quit [Ping timeout: 244 seconds]
<leitz>
shevy, setup.rb will take some time to figure out.
<leitz>
Doesn't look bad, though.
yeticry has joined #ruby
favadi has joined #ruby
favadi has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
ddv has quit [Quit: *poof*]
netmask has quit [Ping timeout: 250 seconds]
<shevy>
leitz it's really simple... keep a local copy of it somewhere
ddv has joined #ruby
<shevy>
I use aliases for it, for instance "r2" combines:
htmldrum has quit [Ping timeout: 250 seconds]
<shevy>
(first assuming that setup.rb is in the working directory)
<shevy>
I was just too lazy to see what I really need
<leitz>
hehe...
<shevy>
the second way would be to build a .gem file. you could probably even write a dump-script that generates a .gemspec file based on the name of the working directory, if you only want to test anyway, but this is pretty much what setup.rb will do too
<leitz>
I'm into the section of programming that often causes me issues. Breaking a large project into smaller, manageable bits.
<shevy>
there is also probably a clean way to uninstall via setup.rb but I use setup.rb very superficially
<jhass>
I don't understand what's so hard about doing ruby -Ilib bin/foo
<shevy>
yeah, same here. I am porting old ruby code of my biggest project to a new infrastructure right now. it is tedious and slow...
tkuchiki has quit [Ping timeout: 250 seconds]
_blizzy_ has joined #ruby
moeabdol1 has joined #ruby
<leitz>
jhass, my scripts are executable and unclude the #!/usr/bin/env ruby line.
chouhoulis has joined #ruby
<leitz>
Not sure how to use the -llib bit with that.
<shevy>
unclude
senayar has quit [Ping timeout: 268 seconds]
<shevy>
a nice word
dasher00 has joined #ruby
<shevy>
you won't need -I anyway if you have a gem-structured directory
<[k->
echo "ruby -llib bin/foo" > foo
<[k->
./foo
mjago has quit [Ping timeout: 240 seconds]
<jhass>
foo: Permission denied
mary5030 has joined #ruby
<[k->
your face is a deniable permission
solocshaw has quit [Ping timeout: 250 seconds]
moeabdol1 has quit [Ping timeout: 240 seconds]
* leitz
's typing gets worse as he gets tired.
_blizzy_ has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
CrazyEddy has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
<shevy>
impending collapse!
_blizzy_ has joined #ruby
<shevy>
if only we could code during our sleep
<[k->
shevy: that boy can
<[k->
he dreams code!
<[k->
remember that video
solocshaw has joined #ruby
ruurd has joined #ruby
<shevy>
wat
<shevy>
ah yes
<shevy>
that psycho
<[k->
ruuude
<shevy>
he wants to work at apple after university
User458764 has joined #ruby
maikowblue has joined #ruby
schlubbi has joined #ruby
G186 has quit [Ping timeout: 246 seconds]
linduxed has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
Norm has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
schlubbi has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
niemcu has joined #ruby
ekleog has quit [Remote host closed the connection]
devoldmx has joined #ruby
iateadonut has quit [Quit: Leaving.]
Axy is now known as Mia
bronson has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
cih has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
HammyJammy has quit [Read error: Connection reset by peer]
<[k->
a horrible code sharing website
<[k->
(for mobile)
ht__ has quit [Quit: Konversation terminated!]
<adaedra>
asad_: when you require a file, you import what is in the file the same way as you were copying the contents into current file, but in global scope
skweek has quit [Ping timeout: 250 seconds]
<[k->
it means that requiring/loading works in one way
spider-mario has joined #ruby
<adaedra>
asad_: so if you require a file that declares A when you're in B::C (i.e module B; module C; require 'a'; end; end), it will import A as ::A, not B::C::A
<[k->
the loaded file cannot access the stuff in the file that loaded it
<adaedra>
Which would happen if you copy A declaration in place of the require
<[k->
but the file thst loaded it can access the stuff in the loaded file
<asad_>
adaedra: What's the global scope?
<adaedra>
asad_: outside of any module/class/method.
workmad3 has joined #ruby
niemcu has quit [Ping timeout: 244 seconds]
ekleog has quit [Remote host closed the connection]
<adaedra>
# This is global scope
<asad_>
adaedra: Why aren't variables defined in a file also loaded if all it does is copies the file into the global scope?
<adaedra>
module A; "This is A scope"; end
ekleog has joined #ruby
<[k->
variables defined in global scope can only be accessed in global scope
<adaedra>
because my description may simplify it a bit, let me check
sdwrage has quit [Quit: This computer has gone to sleep]
Tratos has quit [Quit: Cheers]
<adaedra>
yeah, variables are local and are not transferred into global scope on require
<leitz>
Yeah, the hash was the later code, after I had learned a bit.
<shevy>
you could also keep this as a multiline string, and parse it into a hash constituent like
<shevy>
'str: 45
<shevy>
dex: 22
<leitz>
Your first character was better. :)
<shevy>
and so forth. I use this for help options
<leitz>
Well, really, it's a chance for me to figure out my data and refator the code.
<shevy>
I even found this to be more readable than the = <<-EOF variant
<shevy>
refather your code?
<leitz>
Beats watching sports on tv.
<leitz>
Yeah, put the code out for adoption.
<shevy>
lol
lxsameer has joined #ruby
asad_ has left #ruby [#ruby]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
eighthbit has joined #ruby
netmask has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
moeabdol1 has joined #ruby
eighthbit has quit [Client Quit]
Total_noob has joined #ruby
asad_ has joined #ruby
<asad_>
What does this mean: "Files loaded with load or require are executed in a new top-level scope that is different from the one in which load or require was invoked."
platzhirsch has joined #ruby
<jhass>
asad_: mainly that you can't access local variables defined in one in the other
DLSteve has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
Anti-Pizza has quit [Quit: Quit]
moeabdol1 has quit [Ping timeout: 268 seconds]
wottam has quit [Read error: Connection reset by peer]
lubarch has joined #ruby
User458764 has joined #ruby
xcesariox has joined #ruby
andywojo_ has joined #ruby
asad_ has left #ruby [#ruby]
charliesome has joined #ruby
xcesariox has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andywojo has quit [Ping timeout: 268 seconds]
wallerdev has joined #ruby
tsujp has joined #ruby
bkulbida has joined #ruby
kinnetica has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fastAndSlow has quit [Quit: leaving]
xcesariox has joined #ruby
cajone has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
ss_much has joined #ruby
karapetyan has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
DoubleMalt has quit [Ping timeout: 264 seconds]
karapetyan has quit [Ping timeout: 264 seconds]
DoubleMalt has joined #ruby
cih has joined #ruby
Soda has joined #ruby
cih has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
wldcordeiro has joined #ruby
netmask has joined #ruby
tmtwd has joined #ruby
cornerma1 has joined #ruby
senayar has joined #ruby
OrbitalKitten has joined #ruby
zotherstupidguy has quit [Ping timeout: 255 seconds]
CrazyEddy has quit [Remote host closed the connection]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
cajone has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest12403 has quit [Read error: Connection reset by peer]
pardusf has joined #ruby
stamina has quit [Ping timeout: 250 seconds]
raphagodoi has joined #ruby
raphagodoi has left #ruby [#ruby]
jeff_laplante has joined #ruby
baweaver has joined #ruby
zotherstupidguy has joined #ruby
kies^ has joined #ruby
naftilos76 has joined #ruby
Soda has quit [Remote host closed the connection]
davedev24 has quit []
darkf has quit [Quit: Leaving]
pontiki has quit [Ping timeout: 256 seconds]
kies has quit [Ping timeout: 250 seconds]
CrazyEddy has joined #ruby
NeverDie has joined #ruby
<shevy>
so what is your take on the different hash syntax... aka { :foo => :bar } versus { foo: :bar }
hanmac has quit [Ping timeout: 240 seconds]
VeryBewitching has joined #ruby
<miah>
i use { foo: bar } because i like typing less and always use symbols for keys
naftilos76 has quit [Client Quit]
<miah>
but people <3 arguing endlessly about that
NeverDie has quit [Max SendQ exceeded]
t_mmyv has joined #ruby
brendan- has joined #ruby
<shevy>
hehe
NeverDie has joined #ruby
brendan- has quit [Client Quit]
<shevy>
reminds me of the monty python argument clinic
cajone has joined #ruby
<baweaver>
I put it in a style guide and tell people to stop whining
<miah>
i tried
<miah>
then people keep editing they style guide rules
woodennails has joined #ruby
woodennails has quit [Client Quit]
<baweaver>
So I say there has to be a vote on it and lock it otherwise
CrazyEddy has quit [Remote host closed the connection]
guacjack has joined #ruby
<miah>
i still have to deal with 100 line methods
<[k->
baweaver is experienced
<miah>
oh i tried the 'vote' thing. the problem is, im the only person that cares about style
<baweaver>
mainly in failing Jenkins builds until they play nice
<miah>
so i stopped caring about everybody elses code
<baweaver>
I just get the manager to buy in
<shevy>
hehe
devoldmx has joined #ruby
<miah>
basically, the way i see people operate: 'get it done' > 'make it pretty and tested'
<miah>
ignore the whole thing about 'tech debt' and 'now its a problem to deal with later'
<VeryBewitching>
baweaver is correct, get the manager to buy in. Tell them why they should care about it and make a convincing argument.
<miah>
ya, i did =)
<miah>
we now run rubocop everywhere
<miah>
but every team has a different style guide
<miah>
and people freely update .rubocop.yml per project when rules are inconvienent
<flyinprogrammer>
>but every team has a different style guide
<flyinprogrammer>
:(
<miah>
cant change culture
<miah>
you can influence it, but only if you have the ability to influence
<VeryBewitching>
Yes you can, so long as you're willing to yell loudly enough to potentially lose your job :D
<miah>
i yelled loudly
<miah>
now i have no friends
<miah>
add in working remotely
<miah>
and its a lonely working experience
<miah>
so i just gave up talking about that stuff and i have fewer problems 'with people' now i guess
<VeryBewitching>
I prefer working from my home office, I tend to get a lot more done that way.
simplyianm has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<[k->
or does the office get a lot more done that way? >:)
banister has joined #ruby
<miah>
like i said
<miah>
basically, the way i see people operate: 'get it done' > 'make it pretty and tested'
<VeryBewitching>
[k-: Well, it's mostly government, so no not at all :D
devoldmx has quit [Ping timeout: 244 seconds]
<[k->
but you're VeryBewitching
Ilyes512 has joined #ruby
<VeryBewitching>
I tend to be, ys.
<VeryBewitching>
That doesn't make salaried government workers get anything done quickly, on time or correctly.
<miah>
.gov work moves at the speed of glaciers
hanmac has joined #ruby
ndrei has joined #ruby
<VeryBewitching>
The Canadian government labour pool is like watching a kindergarten class do finger painting. It's messy and never ends up looking like anything by the time they're done (if they ever finish.)
<VeryBewitching>
Anyway, miah, I would suggest you find a team that you can become sympatico with. No job is worth daily frustration.
<VeryBewitching>
My 0.02
<miah>
ya
<miah>
i havent found that
<miah>
i've determined that im the problem, so i just deal with it.
<juniorgoat>
but they prefer you to take it in person
<yorickpeterse>
sounds familiar
<miah>
sure, but if they offer it as an option you're still free to choose it
<juniorgoat>
i'd rather go in person and receive help in person, that's my preference
<miah>
ok
<jhass>
juniorgoat: consider reviews staged, especially if scientology is involved
swgillespie has joined #ruby
<juniorgoat>
but i don't want to become a scientologist
<juniorgoat>
jhass: what makes you so sure?
<yorickpeterse>
juniorgoat: also how do you know it's run by scientology?
<miah>
well, if you're in portland im sure there are also other options
<avdi>
surely there are other choices
<juniorgoat>
yorickpeterse: a little googling and facebooking reveals it's ran by scientologists
mozzarella has quit [Ping timeout: 264 seconds]
<juniorgoat>
it's also greatly priced and self-paced
bjorgen has joined #ruby
<bjorgen>
ok, thanks
<jhass>
juniorgoat: 50% of all positive reviews being fake is a general good assumption in the internet. Add the factor of a sect and well...
<yorickpeterse>
juniorgoat: ah
simplyianm has quit [Remote host closed the connection]
<yorickpeterse>
maybe try code/khan academy instead?
simplyianm has joined #ruby
baweaver has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
<juniorgoat>
i would like someone to help me out with my resume
fullofcaffeine has joined #ruby
<juniorgoat>
i've dropped out of college and i'm looking for other options
<miah>
there are other code bootcamps in portland
mozzarella has joined #ruby
<juniorgoat>
the reason i like this code bootcamp is because it's self-paced and competitively priced
<miah>
ya
<juniorgoat>
and they guarantee you finding a job after completing the course
<miah>
also, im sure there are meetups that provide similar services for free
<avdi>
If someone offers you something for way less than the competition, you might reasonably question whether it's a loss-leader, and if so, for what. Especially if you already have a suspicion of what it's a loss-leader for.
<juniorgoat>
everything is great about it except for the scientology part
<jhass>
juniorgoat: and I mean even if it's kept ideology free, it's reason enough to boycott it
<jhass>
juniorgoat: no joke, watch south park's episode on scientology, it's quite informative
<juniorgoat>
i have
<jhass>
then what is there to discuss
<juniorgoat>
i didn't really understand it though
tmtwd has quit [Remote host closed the connection]
<jhass>
no harm in watching south park episodes a couple of times
<juniorgoat>
what i got from it is that they worship extraterrestrials and believe in planet x right?
elperdut_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<avdi>
juniorgoat: did you see the part with the "personality test"?
<jhass>
what you should've gotten from it that it's just a cover story for controlling people and making money
elperdut_ has joined #ruby
<juniorgoat>
avdi: it was probably in the episode but i might have zoned out and not paid attention to it
<juniorgoat>
oh thanks jhass
<jhass>
watch it again with full attention
michael_mbp has quit [Excess Flood]
<avdi>
juniorgoat: scientology is a wealth cult that extracts 10s of thousands of dollars from their members over the course of years by selling them "training" that they "need" to have in order to fix all their personality "problems". And when people become suspicious, they are threatened with having everyone they know turn against them.
<juniorgoat>
what can someone do without a college degree as a programmer?
<avdi>
juniorgoat: pretty much everything someone with a degree can do
<toretore>
a lot of good programmers don't have degrees
<avdi>
juniorgoat: I don't have a degree. A lot of the successful programmers I know don't have one, and of the ones who do, most don't have a CS degree.
<juniorgoat>
but if you don't have a degree aren't you inferior in american society?
<avdi>
juniorgoat: uh... no?
<jhass>
avdi: and that's formulated mildly
<jhass>
it gets _a lot_ worse if your family becomes suspicious or you try to quit
<juniorgoat>
i wish i didn't suffer from depression because i failed junior college
<avdi>
juniorgoat: ...and of the ones I know who actually have a CS degree, they often say they didn't really need it.
<juniorgoat>
and now i have no idea what i should be doing
<juniorgoat>
i'm already really old and have no sense of direction
<toretore>
juniorgoat: if i were to hire a programmer, their degree would have almost no significance to me
<juniorgoat>
i think i would be sucked into scientology
elperdut_ has quit [Client Quit]
<juniorgoat>
so the pay would be the same with or without a degree right?
noethics has joined #ruby
leafybasil has quit [Remote host closed the connection]
<avdi>
juniorgoat: in any job you want to be working at, absolutely
<avdi>
juniorgoat: in fact, it's less and less common for programming employers to even care about your degree. They want to see what you can do.
<juniorgoat>
what's the point of a degree then and why does everyone say it's important?
michael_mbp has joined #ruby
yfeldblum has joined #ruby
<toretore>
juniorgoat: if the people trying to hire you put that much weight on university degrees there's a big chance you don't want to work there
<jhass>
juniorgoat: yes, please stay as far away from scientology as you can, especially with a depression, it's very dangerous. And won't be cheaper than seeing a psychologist
<juniorgoat>
toretore: what's the reason for that?
jmallen has joined #ruby
<avdi>
juniorgoat: FWIW, I only have a few years of junior college under my belt. No degree. A grand total of three software courses.
jmallen has quit [Client Quit]
<toretore>
juniorgoat: to me, it show that they don't understand what makes someone a good programmer, and that probably means they don't understand other things as well
jessemcgilallen has joined #ruby
<juniorgoat>
jhass: i'll stay away from it... do you know of any programming bootcamps that offer job assistance and have a self-paced curriculum with instructors to help you out?
dcarmich has joined #ruby
<jhass>
no, not in your area anyway, I sit on the other side of the globe ;)
<avdi>
juniorgoat: I used to work at a big company where they couldn't promote me unless I got a degree. It had a terrible working culture, and leaving them (after 9 years, sadly) was the best career decision I ever made.
<juniorgoat>
why was it the best career decision you've ever made?
<toretore>
juniorgoat: what's the reason you don't want to just learn by yourself online?
<toretore>
it's what most programmers do
<juniorgoat>
i want to but i'm not good at learning to code online by myself
lubarch has quit [Ping timeout: 240 seconds]
<toretore>
it assumes a certain level of interest and passion of course
<juniorgoat>
toretore: i've tried
<avdi>
juniorgoat: because it led to me being employed at places with far healthier cultures where I actually enjoyed myself, and also to being paid way more money.
<juniorgoat>
and i've been learning for more than a year already
platzhirsch has quit [Ping timeout: 250 seconds]
<juniorgoat>
i haven't gotten very far
<juniorgoat>
my math skills need to improve
<toretore>
i have no math skills
<toretore>
i do fine
<juniorgoat>
do you know linear algebra?
<jhass>
if you're able to at least attempt things on your own and demonstrate that you did, you just found the perfect place to ask for assistance when you get stuck ;)
<avdi>
juniorgoat: you don't need math skills to code. I can tell you that from experience.
<toretore>
i don't even know what that is
jeff_laplante has joined #ruby
fastAndSlow has joined #ruby
<juniorgoat>
toretore: you're not trolling right?
<toretore>
no
<toretore>
i don't know math
<yorickpeterse>
juniorgoat: you don't need advanced maths knowledge to get a programming job
bronson has quit [Ping timeout: 255 seconds]
<beast>
some elite coders know math
<avdi>
highest math I ever learned formally was Algebra 1, and I don't really remember most of it
<yorickpeterse>
80% of Ruby developers can't even use the modulo operator
* yorickpeterse
runs
<toretore>
i even ( ) my arithmetics in ruby because i don't know the precedence rules
<BraddPitt>
ahahahah yorickpeterse
<BraddPitt>
same toretore
<jhass>
math can sometimes help to find the most efficient solution to something, but usually you have someone around who knows enough
<BraddPitt>
I failed college trig twice
<avdi>
all the math I actually *needed* I learned on the job
<juniorgoat>
but what if i want someone to teach me while using screenhero or something like that?
<juniorgoat>
can i still come here?
<toretore>
sure
<yorickpeterse>
juniorgoat: most of us in here are already packed schedule wise, but asking for specific bits is always fine
<juniorgoat>
toretore: can you make a chess game in ruby?
<toretore>
me specifically? maybe. in general? yes.
karapetyan has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 255 seconds]
<toretore>
juniorgoat: if you're depressed then maybe your brain isn't working at 100% capacity, which makes stuff like this more difficult. that's how it's been for me
<jhass>
juniorgoat: let's try something. Why do you want to become a programmer?
<juniorgoat>
i love ruby for its simplicity but a lot of things i don't understand because i found out they made shorthads from c things
jgt has joined #ruby
<juniorgoat>
jhass: i want to be able to create ideas that i have in my head
<BraddPitt>
what do you mean, toretore ?
lenwood has quit [Ping timeout: 252 seconds]
<juniorgoat>
i feel like the ideas i have could benefit everyone, but i need to learn to code to realize my ideas
<toretore>
BraddPitt: depression/anxiety can really destroy your brain and cognitive abilities
<BraddPitt>
I did not know that... interesting
<juniorgoat>
toretore: i didn't know that either... i thought i was less intelligent than the rest of my peers
<jhass>
juniorgoat: did you start working on any yet?
<juniorgoat>
on any what?
<jhass>
any of your ideas
<juniorgoat>
yes i have a business plan for one of them
<juniorgoat>
it's 100% complete
<yorickpeterse>
juniorgoat: if it helps, even experienced devs have no idea what they're doing 80% of the time
<juniorgoat>
i just need to develop it
moeabdol1 has joined #ruby
<toretore>
juniorgoat: that's just my personal experience though, it's different for everyone
s00pcan has quit [Ping timeout: 246 seconds]
<juniorgoat>
well i do speak several languages fluently and i have an amazing memory, i even remember stuff from when i was a toddler
<jhass>
juniorgoat: so, do you actually enjoy the process of programming?
<avdi>
juniorgoat: I'm going to encourage you again to get involved in your local community. Users groups are very welcoming, and you can find opportunities for all kinds of learning and collaboration there. Most importantly, though, it's *inspiring* to be around other people who are excited to write code and to share knowledge.
<juniorgoat>
jhass: i hate error messages and code i write that isn't working as expected, but when everything works i have a feeling of joy(which rarely happens)
moeabdol1 has quit [Client Quit]
<jhass>
that sounds good and perfectly normal then
<avdi>
juniorgoat: you just described my average day of coding
<jhass>
juniorgoat: I think it might be worth to start adding an additional motivating factor though. One obvious one is to actually start prototyping one of your (simpler to realize) ideas
<juniorgoat>
well i want to create an iphone app using swift i hear that swift is easy to learn and its syntax looks identical to javascript
int80pwn has joined #ruby
<yorickpeterse>
remove the do on line 7
<yorickpeterse>
and <<= redact is not valid
<yorickpeterse>
use << instead
karapetyan has joined #ruby
<jhass>
juniorgoat: don't even have the ideal of turning that first iteration into a usable product, but start working on something you convinced will solve somebody's (ideally yours) problem
yqt has joined #ruby
<toretore>
<<= would be useful if << wasn't mutating
UtkarshRay has quit [Ping timeout: 246 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<juniorgoat>
well i want to do my phone app, but first i want to develop the website and then have links to the app in the app store
jessemcgilallen has quit [Ping timeout: 240 seconds]
<juniorgoat>
then i would like to create the app for android and i would like to use ruby and postgres as part of the stack that i want to use on my app
<hj2007>
changed <<= to <<, I get "undefined method `<<' for nil:NilClass"
<BraddPitt>
it is mispelled
gigetoo has joined #ruby
<yorickpeterse>
the fuck does <<= even do
<BraddPitt>
readats and redacts
<jhass>
yorickpeterse: see above?
<BraddPitt>
readacts*
<yorickpeterse>
jhass: not entirely sure if I follow
<BraddPitt>
change it to `redacts` on line 8
<jhass>
yorickpeterse: Fixnum#<< doesn't mutate at all
<shevy>
oh a typo
<toretore>
yorickpeterse: gets translated to x = x << y i guess
<avdi>
yorickpeterse: wouldn't it be leftshift and assign/rightshift and assign?
jwang has quit [Read error: Connection reset by peer]
<avdi>
perfectly ordinary thing to do from a C point of view
<avdi>
so long as you are dealing with integers, that is
senayar has quit [Remote host closed the connection]
Xeago has joined #ruby
symm- has quit [Quit: Leaving...]
<jhass>
juniorgoat: well whatever it is, start working on it. make the most basic prototype of it you can imagine. Like make an app that has the UI you want but returns static stub answers for every button etc.
<juniorgoat>
thanks :)
<juniorgoat>
i'll do that
dnewkerk has joined #ruby
<toretore>
juniorgoat: i'd focus on the web part first
netmask_ has joined #ruby
<yorickpeterse>
hmmmmm...do I write tests in Rust (blegh), or do I finally start working on my LL(1) blag
<yorickpeterse>
or do I watch videos
<juniorgoat>
that's my plan toretore
<yorickpeterse>
hmmm
<juniorgoat>
is there a point to write tests? why not just test the code after every save?
<juniorgoat>
(without writing tests)
int80pwn has left #ruby [#ruby]
<toretore>
juniorgoat: you can skip writing tests in the beginning, and then you'll learn their value once you get sick of manually testing everything all the time
<yorickpeterse>
good luck with that when the code is thousands of lines long
<jhass>
yorickpeterse: we all know what will win^^
<juniorgoat>
how can you tell if a company doesn't care about a college degree?
<toretore>
they have a cool website with parallax and infinite scrolling
<pangur>
Using Sinatra and Sequel, I am trying to search an object by its label, and when it is found, find out what its id is.
<juniorgoat>
what does that have to do with anything?
ruurd has quit [Quit: ZZZzzz…]
<pangur>
search for an object is what I meant to say.
<toretore>
i'm joking juniorgoat
<juniorgoat>
oh
<juniorgoat>
but i'm being serious:/
<pangur>
toretore: you were helping me last night with this.
<juniorgoat>
i'm unemployed and a loser right now... i don't want to be either
hj2007 has quit [Quit: This computer has gone to sleep]
<pangur>
I am still struggling with it.
s00pcan has joined #ruby
<toretore>
you won't know until you ask juniorgoat
<juniorgoat>
thanks
<toretore>
pangur: gist your code
t_mmyv_ has joined #ruby
<avdi>
juniorgoat: read their job adverts.
kirin` has joined #ruby
<juniorgoat>
the job advertisement will mention a degree right?
<avdi>
juniorgoat: or not.
<juniorgoat>
toretore: can you complete the advanced portion of the algorithms in this course using ruby or whatever language you're comfortable is? http://freecodecamp.com/map
<pontiki>
avdi: o/
<juniorgoat>
okay, i will try to apply
<juniorgoat>
thanks a lot for all your help everyone
<avdi>
pontiki: oh slash to you as well!
<pontiki>
hee
<juniorgoat>
i'll stay away from that bootcamp
jessemcgilallen has quit [Read error: Connection reset by peer]
<avdi>
juniorgoat: best of luck to you! And don't forget to get involved with your local community!
<toretore>
juniorgoat: not all of them, at least without having to learn something new
devoldmx has joined #ruby
<toretore>
juniorgoat: but you always have to learn something new in this profession
<juniorgoat>
i love learning new things, ideally i want to run my own business but i don't know if i could be proficient enough to do that without knowing every aspect of my business (and having an mba)
<juniorgoat>
i just don't understand why i was suicidal and failed college
kirin` has quit [Client Quit]
<BraddPitt>
I was deeply depressed and dropped out of college juniorgoat
<BraddPitt>
I honestly think it is normal
<juniorgoat>
literally 5 years of my life are wasted
<juniorgoat>
5 years is a long time :(
<avdi>
juniorgoat: FWIW, I run my own business and I don't have an MBA. It's like programming. You figure out what you need as you need to. Kinda like life in general, actually.
<yorickpeterse>
depression does many funny things
<BraddPitt>
indeed it does
<toretore>
s/funny/shitty/
andywojo has joined #ruby
<juniorgoat>
i wish time macines existed
<juniorgoat>
machines*
* yorickpeterse
doesn't have any formal degree either
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse>
besides a masters degree in cat herding
<pontiki>
cat master
andywojo_ has quit [Ping timeout: 260 seconds]
<toretore>
cat: master: No such file or directory
<avdi>
juniorgoat: I spent 9 years at a company that discarded my work and wouldn't promote me without a piece of paper. Now I speak at conferences around the world. It's never too late. Especially in this profession.
<yorickpeterse>
toretore: huehue
<BraddPitt>
avdi where do you live, if you dont mind me asking?
<yorickpeterse>
in your stack
<avdi>
BraddPitt: Tennessee, now
k3asd` has joined #ruby
<BraddPitt>
do you do ruby dev professionally?
devoldmx has quit [Ping timeout: 255 seconds]
<avdi>
BraddPitt: I did for years. Now I do training professionally.
<BraddPitt>
nice
danieli has joined #ruby
<pontiki>
*sigh* juniorgoat, i wish i had answers for you that would help. you've probably heard all the advice.
<pontiki>
juniorgoat: you're not alone, but i don't know if that even helps.
Soda has joined #ruby
<pontiki>
juniorgoat: every day is a struggle; i somehow make it. in case it does in any way help, i try to make something every day.
zenguy_pc has joined #ruby
<yorickpeterse>
looking at cat pictures might help
<yorickpeterse>
works for me at least
troulouliou_dev has joined #ruby
<yorickpeterse>
a cat picture a day keeps the bad mood away
subscope has quit [Remote host closed the connection]
<avdi>
depression sucks. I basically just try my best to structure my life in a way that it's resilient in the face of weeks where I fall apart. Like, say, last week.
SenpaiSilver has quit [Quit: Leaving]
<arup_r>
avdi: I like your voice while watching RubyTapas
<yorickpeterse>
channel suddenly turned creepy
<avdi>
arup_r: thank you!
jgt has joined #ruby
<pontiki>
hahaha, that's why i signed up almost instantly
<pontiki>
(i love all the advice, too)
wldcordeiro has quit [Quit: Konversation terminated!]
Ilyes512_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<avdi>
yorickpeterse: I guess I'm used to it, doesn't creep me out :-)
<arup_r>
Nice screencasts ... and your voice made it complete..
<pontiki>
hmmm. well. hmm...
<avdi>
I've heard from subscribers whose non-coding significant others want them to turn on RubyTapas so they have something to go to sleep to :-)
<yorickpeterse>
avdi: also you totally missed out on my rubyrogues episode
workmad3 has joined #ruby
<yorickpeterse>
"oooh you should talk about parsing" *doesn't show up* :P
<pangur>
toretore: I think that I will need to sit on this for a while longer to be able to articulate what it is that I want to do.
<pangur>
I will ask you again in a few days time, if that is OK ?
<avdi>
yorickpeterse: I missed a LOT recently. I've been traveling, sick, and depressed either in that order or all at once. I wish I hadn't missed it, though :-/
krz has quit [Quit: WeeChat 1.2]
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
<yorickpeterse>
heh
<arup_r>
avdi: Your introduction always .. something new.. Hey I am Avdi... ( some new things )
<toretore>
pangur: sure
kirun has joined #ruby
Azure has quit [Remote host closed the connection]
snath has joined #ruby
<arup_r>
I liked it........ miss you too :(
<avdi>
yorickpeterse: I was really looking forward to that episode too :-(
<yorickpeterse>
ah well, soon I'll have a blog post about more of that stuff
<yorickpeterse>
if I can get myself to write it at least
<avdi>
yay!
David27 has quit [Remote host closed the connection]
<pangur>
Thanks, toretore.
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
workmad3 has quit [Ping timeout: 256 seconds]
simplyianm has quit [Remote host closed the connection]
* pangur
is 62, loves learning to code.
davedev24 has joined #ruby
DocMAX2 has joined #ruby
solocshaw has quit [Ping timeout: 265 seconds]
OrbitalKitten has joined #ruby
DocMAX has quit [Ping timeout: 246 seconds]
<yorickpeterse>
I think that's one of the most interesting things about programming, there's a shit ton of different people
<pangur>
Happily, as nobody relies on me to do anything very useful with it, I can take as long as I like to work something out :)
aerozeppelin has joined #ruby
<pangur>
Often, once I have worked out how something works, my interest in it fades somewhat.
<avdi>
pangur: same here. Solved problems are so dull.
Rickmasta has joined #ruby
bronson has joined #ruby
<pangur>
When you get to my age, avdi, you wish you had written down the solutions :)
jgt has quit [Ping timeout: 246 seconds]
<pangur>
It is like having to read a detective story again to remember who committed the crime.
goldfish6744 has joined #ruby
simplyianm has joined #ruby
<avdi>
I keep more and more notes as time goes by
<pangur>
Good idea.
<avdi>
every idea goes straight into evernote these days, wherever I am
goldfish6744 has left #ruby [#ruby]
goldfish6744 has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
arup_r has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
agent_white has joined #ruby
netmask has joined #ruby
pangur has quit [Quit: Leaving]
goldfish6744 has left #ruby ["Cycling Channel"]
goldfish6744 has joined #ruby
sphex has quit [Ping timeout: 268 seconds]
<jhass>
I love workflowy
sphex has joined #ruby
netmask_ has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
Kendos-Kenlen has quit [Read error: No route to host]
araujo has quit [Ping timeout: 246 seconds]
Kendos-Kenlen has joined #ruby
araujo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
juniorgoat has quit [Ping timeout: 246 seconds]
niemcu has joined #ruby
hahuang61 has joined #ruby
solocshaw has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 272 seconds]
senayar has joined #ruby
<weaksauce>
jhass is workflowy free?
pangur has joined #ruby
<jhass>
limited usage, but enough for me, yeah
<jhass>
that is the amount of items you can create per month is limited unless you pay
<weaksauce>
yeah I do like that. org mode is one that is pretty nice for lists like that. seems like workflowy is slicker though
karapetyan has quit [Remote host closed the connection]
senayar has joined #ruby
<pangur>
get '/district/:id' do; @district = District.where(params[:id]=>:id) will fetch the district with the correct id. However, my table has two fields(id, label). Instead of doing get '/district/:id', I want to do get /district/:label', and return the id of that instance, toretore. Does that make more sense than what I was saying last night?
karapetyan has joined #ruby
<weaksauce>
pangur flip flop things around?
pwnd_nsfw has quit [Remote host closed the connection]
<toretore>
pangur: yes. it should not be difficult if you understand the tools you're using
<jhass>
yeah I guess it's orgmode without the keyboard or syntax overhead
<toretore>
pangur: your sinatra "action" will return whatever the block returns
pwnd_nsfw has joined #ruby
joufflu has quit [Ping timeout: 246 seconds]
<pangur>
If I fetch the correct district, how do I find out its id?
<toretore>
that depends. what is @district?
<pangur>
At the moment it is the district whose label is :label.
<toretore>
no, i mean what type is it?
<pangur>
I have a table districts, and a class District.
<toretore>
a District? ok, so what is a District? where does it come from?
aerozeppelin has quit [Read error: Connection reset by peer]
<toretore>
does it have a superclass? what library provides this functionality?
<pangur>
each instance of District is a row in districts.
aerozeppelin has joined #ruby
aerozeppelin has quit [Client Quit]
bronson has joined #ruby
aerozeppelin has joined #ruby
aerozeppelin has quit [Client Quit]
beast has quit [Quit: Leaving]
aerozeppelin has joined #ruby
<toretore>
i'm trying to teach you how to figure things like this out on your own, because it's something you will have to do all the time
karapetyan has quit [Ping timeout: 260 seconds]
aerozeppelin has quit [Client Quit]
<pangur>
class District<Sequel::Model
skweek has joined #ruby
<pangur>
So, Sequel::Model is the parent class of District
<toretore>
ok, so then find the documentation for this class
aerozeppelin has joined #ruby
<toretore>
it will have a method for getting the value of a field
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
symm- has joined #ruby
k3asd` has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
<pangur>
Most of what I am seeing is based on :id being the primary key: like artist = Artist[1] or artist = Artist.with_pk!(1)
<toretore>
"id" is a field like any other
Musashi007 has quit [Quit: Musashi007]
<pangur>
As there is only one record that is returned by my query, I suppose .first will be it.
mary5030 has quit [Ping timeout: 240 seconds]
<pangur>
ah
jordanm has quit [Quit: Konversation terminated!]
<pangur>
I see artist = Artist.first(:name => 'YJM') which might be what I am after.
DocMAX has joined #ruby
<pangur>
District.first(:label => :label) maybe.
<weaksauce>
pangur if it's not unique a where clause may return more than one record.
willardg has joined #ruby
<pangur>
It is unique though, as I have 36 districts, each with a unique label.
DocMAX2 has quit [Ping timeout: 240 seconds]
<toretore>
you can use .first in that case
<weaksauce>
in general a where clause will return some form of collection of items or some representation of empty.
aerozeppelin has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
bronson has quit [Remote host closed the connection]
jamesaxl has joined #ruby
blueOxigen has quit [Ping timeout: 246 seconds]
<pangur>
I have just tried get '/district/:label' do
<pangur>
@district = District.first(params[:label]=>:label) and that worked. However, I still have no idea how to obtain the id of that instance.
Musashi007 has joined #ruby
<toretore>
look at the link i posted above pangur
<toretore>
it's in there
<pangur>
#id -> Object
<pangur>
?
<pangur>
Is that the bit that I need?
<toretore>
you have a field/column, "id", and you want to get its value
<pangur>
yes
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
<weaksauce>
do you know how to get the label of that record?
devoldmx has joined #ruby
<pangur>
d = @district; puts #{d.title} #{d.forenames} #{d.surname}
<pangur>
oops, sorry.
<pangur>
d = @district; puts #{d.label}
shinnya has joined #ruby
<pangur>
ah, thanks.
<weaksauce>
have you tried d.id ?
<pangur>
Have just done :)
<toretore>
"label" is a field. you get its value with `d.label`. "id" is a field. you get its value with ?
<pangur>
d.id
SenpaiSilver has joined #ruby
<pangur>
Thanks, toretore :)
ss_much has quit [Quit: Connection closed for inactivity]
agent_white has quit [Quit: leaving]
troulouliou_dev has quit [Quit: Leaving]
solocshaw has quit [Ping timeout: 244 seconds]
netmask has quit [Remote host closed the connection]
elperdut_ has joined #ruby
ruurd has joined #ruby
netmask has joined #ruby
dikaio has joined #ruby
jeff_laplante has quit [Ping timeout: 264 seconds]
pangur has quit [Quit: Leaving]
saddad has joined #ruby
solocshaw has joined #ruby
arooni has joined #ruby
Oka has joined #ruby
netmask has quit [Remote host closed the connection]
<goldfish6744>
okay, anyone has the time and patience to explain object-oriented to me, in PM? I still don't get the very basic ideas. Nope, I'm not trolling, regardless of what shevy says.
<shevy>
you no longer use webchat right?
<goldfish6744>
right, I was requested not to
<shevy>
\o/
<shevy>
one of my favourite definitions of OOP is the one Alan Kay used
jschmid has quit [Remote host closed the connection]
<avdi>
For my money the only definition that matters is cited at the bottom of that page: "OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme LateBinding of all things."
<avdi>
I actually just wrote a RubyTapas episode based on that quote (but also drawing in some of the other history around it)
solocshaw has quit [Ping timeout: 244 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
<shevy>
tapas... is that the mexican food?
<goldfish6744>
that's very nice; but the words mean nothing in particular to me
<avdi>
spanish
Ilyes512 has joined #ruby
<avdi>
goldfish6744: yeah, unfortunately it's a concept which was very much coined in conversation with *previous* software paradigms, so most of the descriptions are aimed at explaining how it differs from, say, procedural programming.
unshadow has quit [Ping timeout: 264 seconds]
solocshaw has joined #ruby
<goldfish6744>
well, I think they call Fortran an imperative programming language
Trynemjoel has joined #ruby
<avdi>
goldfish6744: what's your level of programming knowledge?
<goldfish6744>
I'm reasonably good with Fortran and Basic. Never managed to understand anything which was supposed to run with a GUI.
<goldfish6744>
much earlier, programmed in Clarion 3
<goldfish6744>
and for half a year, in Cobol
i8igmac has quit [Ping timeout: 264 seconds]
* Total_noob
looks at goldfish6744
Blaguvest has joined #ruby
<goldfish6744>
oh hey!
jun has joined #ruby
hj2007 has joined #ruby
<shevy>
class Cat; end <-- this makes cats
<avdi>
goldfish6744: well, the central insight of OOP was to structure programs as cells or tiny computers sending messages to each other. And to construct those cells from smaller cells, and so on.
s00pcan has quit [Ping timeout: 240 seconds]
<Total_noob>
shevy: I hammered him for using webchat :D
<Total_noob>
It worked :P
tcrypt has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
your nicks are weird... goldfish ... total_noob ...
<Total_noob>
goldfish6744: The whole point is... the objects behave like... real life objects.
<Total_noob>
Yeah I know. Got any better for me, shevy? :D
Total_noob is now known as pry
<pry>
Hm.
<goldfish6744>
as in... a one behaves like a... no, wait, there is no real life one, it's an abstraction
<shevy>
goldfish6744 you are the goldfish; class Goldfish; end; you may originate from a Fish... class Fish; end; ... you can subclass from fish: class Goldfish < Fish; end
solocshaw has quit [Ping timeout: 260 seconds]
<shevy>
you live in a pond... class Pond; end
<avdi>
well, they behave like real life *mental objects*. Objects aren't supposed to be models of physical things. This is a common misconception that muddies up a lot of common pedagogy around OOP.
s00pcan has joined #ruby
<shevy>
now you can do useful stuff in a pond, like swim around in it; for this you need the swim method; class Goldfish; def swim; puts 'The goldfish swims around in his pond happily.'; end; end
DoYouKnow has quit [Disconnected by services]
<goldfish6744>
okay. So if I say... fish + fish, then I will find for the value of pond = 2*fish
<goldfish6744>
but how will the program know that that's what I'll want it to do?
<shevy>
you mean the inventory of the pond?
<goldfish6744>
well, something like that, yes
<pry>
He shuld just read the Why's guide.
<shevy>
yeah, if you put the fish inside the pond
<shevy>
and you need a method that will tell you the inventory, for instance: class Pond; def inventory?; @inventory; end; end
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<shevy>
goldfish6744 have you played old-school MUDs? the non-graphical ones? some like LP-Muds are based around the object-philosophy... you usually have class Weapon, then subclass class Sword etc.., every actor (player) has an inventory with stuff inside, weapons can be wielded, armours be worn etc...
<pry>
Because the almighty intepreter binding :P
<banister>
pry heh cute :)
solocshaw has joined #ruby
Rickmasta has joined #ruby
* pry
winks ;)
<phreakocious>
a pond might have attributes/characteristics (properties) like salinity and pH and depth
Jackneill has quit [Remote host closed the connection]
<goldfish6744>
shevy, nope. Had no internet back then
<pry>
goldfish6744: Go play nethack
<goldfish6744>
^^ does that help?
jessemcgilallen has joined #ruby
<pry>
I am you, I do not decide if it helps.
<pry>
Erm.. I am not you.
nolic has quit [Ping timeout: 240 seconds]
<shevy>
goldfish6744 right but you can understand what they do... it's similar to the modern GUI based ones... though the modern ones tend to suck. but they all are objects right? and 3D models may have additional surface areas, textures etc...
<goldfish6744>
weeell, they are values, stored in the respective arrays or whatever else the programmer decided to use to represent them
<avdi>
goldfish6744: if you are interested in both OOP and Ruby, I would highly recommend reading this book: http://www.poodr.com/
<shevy>
goldfish6744 right, if you go to the nitty gritty core
<shevy>
goldfish6744 but objects have behaviour too and you can model them based on that behaviour
<phreakocious>
goldfish6744: but it's not necessary to refer to them in that way...
<phreakocious>
using objects makes things more expressive..
<goldfish6744>
well, that "behaviour" bit is perhaps one of the things I don't quite get
<goldfish6744>
a value doesn't behave. It just is.
<shevy>
but you do things with a value too
<shevy>
I don't actually remember basic much at all... did it have functions?
s00pcan has quit [Ping timeout: 240 seconds]
<goldfish6744>
that's like saying the door opened on its own when you went there and opened it. You acted on the door, but you blame the entire opening only on the door and say that it was its behavior.
<toretore>
goldfish6744: an object is data that is encapsulated; it then responds to messages like "give me the first item"
gambl0re has quit [Ping timeout: 246 seconds]
<avdi>
goldfish6744: I'm also available via PM to answer questions. I've spent most of my career studying OOP in various languages.
<shevy>
goldfish6744 but the door has two states, open and closed, and you can toggle these states, unless the door is broken
<toretore>
"array" is an object; it respons to "first" and returns another object, 1
<shevy>
and even if you keep things in values alone, you still need to use two different values to differ between two different states
s00pcan has joined #ruby
<goldfish6744>
sure, shevy, generally logical values
gambl0re has joined #ruby
<toretore>
goldfish6744: in oop, data doesn't really exist on its own
jessemcgilallen has quit [Ping timeout: 246 seconds]
<toretore>
it is only accessible through an object which encapsulates it
<toretore>
and then provides behavior for that data
<goldfish6744>
... you got me lost there. What does encapsulate mean?
<avdi>
ideally in OOP, data doesn't exist.
solocshaw has quit [Ping timeout: 268 seconds]
<toretore>
goldfish6744: it means "put/hide inside an object"
<goldfish6744>
but why would I wanna do that?
<toretore>
a lot of reasons that you shouldn't worry about at this point
<toretore>
first you just need to understand *what*, then you can move on to *why*
<goldfish6744>
so okay, instead of being able to act on things as I want, I'm trying to obsecure it from myself so that I cannot act on it as directly or easily.
<goldfish6744>
then?
<shevy>
yes it is one extra layer compared to your raw values
<shevy>
so now explain why machinecode is not used by every programmer on a daily base
<goldfish6744>
difficult to read
<goldfish6744>
and on occasions hard to remember how a given opcode would set/clear flags
pry is now known as Total_noob
* Total_noob
for the sake of being traceable even.
solocshaw has joined #ruby
<avdi>
goldfish6744: I suspect, given your pre-existing knowledge, you'd find this an enlightening read. It explains where these ideas come from, and why they exist. http://worrydream.com/EarlyHistoryOfSmalltalk/
elperdut_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
<avdi>
leitz: yes, that line will not work
<shevy>
well try the -> variant
<avdi>
leitz: the code I typed above will work
<shevy>
ah
bruno- has joined #ruby
lapide_viridi has joined #ruby
<shevy>
btw leitz
<shevy>
you could use "else" there
lxsameer has quit [Quit: Leaving]
<avdi>
shevy: good point
<shevy>
if you can ensure that decoration_roll will have higher values
bronson has joined #ruby
<shevy>
which you can, before you reach the case
<leitz>
Else won't work, because it picks up less than 1.
<shevy>
do you act on negative values?
<shevy>
because if not you could intercept it before it reaches case
swgillespie has joined #ruby
elperdut_ has joined #ruby
<avdi>
leitz: another option: case 6..Float::Infinity
Xeago has quit [Ping timeout: 246 seconds]
swgillespie has left #ruby [#ruby]
<shevy>
to infinity and beyond!
finisherr has quit [Quit: finisherr]
<avdi>
and yes, the fact that Ruby's only Infinity is Float::Infinity is dumb and weird, but there it is.
<leitz>
No action on <=0
solocshaw has quit [Ping timeout: 246 seconds]
elperdut_ has quit [Max SendQ exceeded]
mary5030 has joined #ruby
<shevy>
like if you can ensure: "I have either 0, or higher than 0, but never lower than 0 in my case/when structure"
GnuYawk has quit [Ping timeout: 255 seconds]
elperdut_ has joined #ruby
elperdut_ has quit [Client Quit]
<avdi>
leitz: the issue is that every when clause must have an *object* to which to send the === message in order to perform the match. 4..5 constructs a Range object. `> 5` doesn't construct any object, it's just incomplete syntax.
rewzn has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
<leitz>
avdi, makes sense. when decoration_roll > 5: works
<avdi>
leitz: yeah but it's probably not doing what you think
<leitz>
I was just thinking the > 5 was the same as the 1..3 range.
<leitz>
How so?
<shevy>
yeah... to Infinity :)
bronson has quit [Ping timeout: 250 seconds]
<avdi>
leitz: the when clause is going to match its argument against the actual value
<avdi>
leitz: so what you are saying there is:
<leitz>
The decoration roll is normally ints between 2-12 inclusive.
<leitz>
avdi, this may be a time for a public service announcement. I'm using Ruby 1.8.7, and "when ->(v) {v > 5}:" doesn't seem to work.
<manveru>
oO
<avdi>
leitz: FWIW, I'd probably use the 6..Float::Infinity version in my own code
<avdi>
leitz: well no, it wouldn't
<leitz>
The greater than is useful if there are modifiers that would put the roll outside the "standard" range.
<avdi>
leitz: do you have an option to NOT use 1.8.7?
<baweaver>
^
<avdi>
leitz: Float::Infinity won't work in 1.8.7 either
<manveru>
i mean, it's not 2007 anymore
<avdi>
leitz: in 1.8.7 you have to divide 0/0 to get an infinity value, IIRC
<baweaver>
that, and even 1.9.x is getting end-of-life'd
<leitz>
avdi, not really. I work on servers, and I'm trying to stay with what's available at work. Thus, 1.8.7.
solocshaw has joined #ruby
<avdi>
leitz: see what baweaver said... a server with only 1.8.7 is a rare beast these days, I'd think.
ruurd has quit [Quit: ZZZzzz…]
<baweaver>
RHEL or CentOS would
<baweaver>
on older versions
<baweaver>
which also need to be upgraded :P
<leitz>
There's more 1.8.7 than 2.0 in production, I bet.
<manveru>
even then, at least you can use rvm anywhere
<shevy>
leitz you can just hard-code the maximum value possible there
<shevy>
or use 1_000_000_000 :D
<avdi>
leitz: FWIW, the 1.8.7 equivalent of my lambda version is proc{|v| v > 5}
ngscheurich has quit [Ping timeout: 260 seconds]
<miah>
there is no reason you _have_ to use the packaged version of ruby included with redhat/centos/debian
<baweaver>
1.8.7>> puts 'test'
<baweaver>
1.8>> puts 'test'
<leitz>
shevy, yeah. But I'm happy to use a Rubyism if possible.
<leitz>
DOes Float require a library?
<baweaver>
drat. Ox0dea would know the magic there
Yzguy has quit [Quit: Zzz...]
Azure has joined #ruby
<baweaver>
probably not a good idea to have that out of date of packages on your servers
<baweaver>
presents a whole new realm of security risks
<avdi>
leitz: or do INFINITY=0/0 somewhere, I guess
<avdi>
leitz: whoops
<avdi>
leitz: INFINITY=1.0/0.0
<avdi>
leitz: then you should be able to do 6..INFINITY
<avdi>
but make sure you also do ANDBEYOND = INFINITY + 1
<miah>
baweaver: ya, it depends on if you lean heavily on 'redhat supports us' when dealing with auditors etc.
<baweaver>
!mute fried_chicken
<leitz>
Hmm...at that point compaing vs <=0 and using else becomes cleaner.
<baweaver>
yeah, fair....
<baweaver>
(some racist joined other channels, pre-empting it)
<miah>
+1
skweek has joined #ruby
sdwrage has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
spider-mario has quit [Remote host closed the connection]
<baweaver>
heh, can't even install 1.8.7 on my mac, it throws a fit.
<leitz>
Or just use a largish number in the range.
<avdi>
buzz = 0.upto(INFINITY && BEYOND)
<miah>
baweaver: i think thats because of gcc/llvm
<baweaver>
probably
<baweaver>
I didn't read into it too much.
C0L0R has joined #ruby
solocshaw has joined #ruby
hj2007 has quit [Quit: This computer has gone to sleep]
<baweaver>
Proc.new { |x| x > 5 }
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver>
avdi: BEYOND = -INFINITY
<avdi>
baweaver: did I miss something? Does proc{|x| x > 5} not work?
bifflechip has joined #ruby
<baweaver>
that's what I was finding, still searching for the other syntax.
<baweaver>
pretty sure that works too, but didn't find it in a fast browse
FernandoBasso has quit [Quit: WeeChat 1.3]
Musashi007 has joined #ruby
<avdi>
baweaver: we had to make do with a lot of proc{} in the bad old pre 1.9 days ;-)
Musashi007 has quit [Client Quit]
<baweaver>
yeah, I jumped the train at 1.9.3
<avdi>
also for some reason we were barefoot
<baweaver>
HR takes issue with that here.
ramfjord has joined #ruby
<avdi>
I seem to be perpetually stuck with a part of my head that thinks "oh, 1.8, that's the new shit"
Rickmasta has joined #ruby
<miah>
even mruby is 1.9 compat =)
<avdi>
but I can't actually remember what changed between 1.6 and 1.8 anymore
Xeago has joined #ruby
<baweaver>
I know reduce still uses some 1.8.x syntax.
<miah>
i only had to deal with 1.8.7 for a short time, and i was mostly using it with chef/rails.
<baweaver>
REE was it?
<miah>
lol ya
<miah>
we used REE for a moment with rails
<baweaver>
So I did use 1.8.7 then :D
bifflechip has quit [Quit: WeeChat 1.3]
_djbkd has joined #ruby
kirun has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
bifflechip has joined #ruby
<leitz>
Well, now othe rmath is off. Or I'm just getting bleary eyed.
cschneid_ has quit [Remote host closed the connection]
_djbkd has joined #ruby
bb010g has joined #ruby
vgty has joined #ruby
jenrzzz has joined #ruby
<leitz>
Ah, found it, I thnk.
solocshaw has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 265 seconds]
<shevy>
one day you will join us in the ruby 2.x era
devoldmx has quit [Remote host closed the connection]
ruurd has joined #ruby
juniorgoat has joined #ruby
<juniorgoat>
is there a difference between virtual os x and actual os x running on a macbook?
<baweaver>
one's virtual
<juniorgoat>
but besides that fact
netmask has joined #ruby
<juniorgoat>
is it all the same?
<avdi>
what's virtual os x?
<juniorgoat>
can i work with others in my virtual os x yosemite the same as other developers using macs?
<baweaver>
you might find some small discrepancies but I rarely have issues with virtualization
<baweaver>
though this quickly ventures into illegal
<juniorgoat>
just because it's against tos doesn't mean it's not right to do
<baweaver>
as OSX does not provide images
<avdi>
I didn't realize anyone was doing this. Last time I looked into it (years ago) it was darn near impossible.
<baweaver>
That's kinda what a TOS is, and I would highly not suggest asking about illegal virtualization
<baweaver>
instead, consider debian
<juniorgoat>
well i have to use it because everyone else is using os x and i spent 2k on my windows laptop
<avdi>
juniorgoat: no you don't
solocshaw has joined #ruby
<juniorgoat>
i can't afford another laptop, not yet at least
<adaedra>
juniorgoat: the only limitiation is if you're working in an environment doing iOS or Swift/Obj-C OS X dev.
<adaedra>
Otherwise, another system may behave just as well
<baweaver>
either way, we're not here to help you with illegal activities
jun has quit [Remote host closed the connection]
<baweaver>
besides, this is the #ruby channel
<avdi>
juniorgoat: if you're starting out learning Ruby you can do that just fine on Windows. That's where I learned. Beyond that, I've been doing Ruby dev on linux for quite a while, and I know plenty others who do
decoponio has quit [Read error: Connection reset by peer]
<baweaver>
chances are that your prod env is linux
<avdi>
yep
<baweaver>
so it's almost better to develop in as close to your prod env as possible
<baweaver>
which is why Vagrant is so popular for some things.
Ilyes512_ has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
<avdi>
anecdotally, these days I'm seeing more devs going OS X -> Linux than vice versa. Not in droves, but it seems to be happening.
fullofcaffeine has quit [Remote host closed the connection]
decoponio has joined #ruby
tmillc has joined #ruby
<baweaver>
avdi: for my case at least I'll likely stick with Mac
<baweaver>
Designer as well, so Photoshop
<adaedra>
I switch between mac and linux
<avdi>
yeah, I think the vast majority are sticking with what they like
<adaedra>
depending on the moment and the tasks
Ilyes512 has quit [Ping timeout: 246 seconds]
<adaedra>
That's what you should be doing. Stick with what you like.
<avdi>
it's just that years ago, I noted that there were some linux users moving to mac, and now if there's any movement at all it seems more often the other direction.
<juniorgoat>
i'm doing ruby and rails development as well as app development which requires xcodd
<juniorgoat>
xcode
<adaedra>
Well, you're out of luck for xCode
<adaedra>
Xcode*
<avdi>
juniorgoat: from your comments earlier it sounded like you're just getting started. That's an awful lot to take on at once.
wldcordeiro has quit [Quit: Konversation terminated!]
senayar has quit [Remote host closed the connection]
<juniorgoat>
i am just getting started
<juniorgoat>
here's a screenshot
<juniorgoat>
:(
<juniorgoat>
os x just installed and i'
<adaedra>
Ruby on Rails development is okay under Windows and great under Linux, you don't *require* an OS X
<avdi>
well, my advice would be as a beginner, first make an effort to learn *one* language reasonably well
<baweaver>
^
elperdut_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
<baweaver>
and also don't discuss things you know are illegal on IRC
<avdi>
and if you pick Ruby, you can do that right on your windows box. No mac or linux required.
<juniorgoat>
what is reasonably well?
<avdi>
juniorgoat: don't overcomplicate your life with stuff like dodgy virtualized environments.
<juniorgoat>
what if it's the only thing you have going for you at the moment?
<avdi>
juniorgoat: I've helped a LOT of beginners, and I've seen too many fall into the trap of thinking they need to learn/do ALL THE THINGS at once
<juniorgoat>
i just need to learn how to develop apps and websites
<avdi>
juniorgoat: pick one
<baweaver>
no
<baweaver>
that and will screw you
ZucchiniZe has quit [Ping timeout: 240 seconds]
<juniorgoat>
aren
eminencehc has joined #ruby
<juniorgoat>
aren't web apps just like phone apps but hosted on a server?
<avdi>
juniorgoat: no. not even a little bit.
<juniorgoat>
oh :(
<juniorgoat>
what's the main difference then?
<juniorgoat>
besides hardware restrictions that both have to heed ot
<juniorgoat>
to*
<avdi>
juniorgoat: with where you're at, a discussion of the many differences wouldn't really matter or make a difference
zrl has quit [Ping timeout: 268 seconds]
<juniorgoat>
so why not learn both?
<adaedra>
Well, there's one way to find out, juniorgoat, to learn. But go it step by step, i.e. begin by looking at web development, then, once you're comfortable with it, move to something else.
<baweaver>
learn one thing well
<baweaver>
or learn multiple badly
<baweaver>
that's why
<juniorgoat>
okay thanks
<juniorgoat>
later everyone
juniorgoat has quit [Quit: Page closed]
ZucchiniZe has joined #ruby
niko has quit [Ping timeout: 624 seconds]
leafybasil has joined #ruby
<C0L0R>
Hi everyone, could someone tell me how to access the data inside this json object? I tried to access it like a hash but that did not work. Here is the variable dump: http://pastie.org/private/h6zuwimzzmpydfbaf6td5a
<baweaver>
C0L0R: it's not good to cross post from rails
jessemcgilallen has quit [Read error: Connection reset by peer]
bronson has joined #ruby
<tmillc>
I really like the rubykoans approach to programming tutorials. editing a lesson and having irb/pry open to fiddle with similar topics until they're really settled, is a wonderful way to learn.
<C0L0R>
Okay, I'm sorry
zrl has joined #ruby
<baweaver>
Did you not get an answer there?
Xeago has joined #ruby
<C0L0R>
I did not
jenrzzz has quit [Ping timeout: 240 seconds]
<baweaver>
give me a sec to hop over, I was paying more attention to this channel
[k- has quit [Ping timeout: 268 seconds]
lipoqil has joined #ruby
<C0L0R>
Thank you baweaver!
<avdi>
I like to tenderize my JSON with a crab mallet first, makes it easier to get at the good bits
tylersmith has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
<baweaver>
avdi: new gem name?
<avdi>
baweaver: haha, you can have it :-)
tenderlove has quit [Ping timeout: 255 seconds]
<baweaver>
I have enough gems so far :P
bronson has quit [Ping timeout: 272 seconds]
<avdi>
"reference to that one thing Avdi said in IRC" would be a new low for gem name obscurity
<baweaver>
I think we could go lower with inspired by puns from tenderlove on Twitter
<baweaver>
aw, he left just before that :(
last_staff has quit [Quit: last_staff]
* baweaver
likes the puns though
<baweaver>
then again mine are far worse
<baweaver>
right shevy?
dionysus69 has quit [Quit: dionysus69]
finisherr has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elperdut_ has joined #ruby
JammyHammy has joined #ruby
vdamewood has joined #ruby
JammyHammy has quit [Read error: Connection reset by peer]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
<shevy>
I can't think for dam right now
<baweaver>
(context: baweaver -> beaver)
willardg has joined #ruby
netmask has quit [Remote host closed the connection]
<shevy>
my late father always made jokes that nobody else found amusing but he giggled about his own jokes like crazy, and then others would find this funny because a happy mood is kinda infectious
<baweaver>
though it's actually B.A. Weaver
elperdut_ has quit [Ping timeout: 240 seconds]
stamina has quit [Ping timeout: 264 seconds]
_djbkd has quit [Quit: My people need me...]
leafybasil has quit [Remote host closed the connection]
mary5030 has joined #ruby
urrr has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
DoYouKnow has joined #ruby
tenderlove has joined #ruby
mary5030 has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
senayar has joined #ruby
senayar has joined #ruby
mary5030 has joined #ruby
Mia has joined #ruby
jun has joined #ruby
Marsupermammal has joined #ruby
davo has joined #ruby
urrr has quit [Quit: Leaving]
mary5030 has quit [Ping timeout: 260 seconds]
joufflu has joined #ruby
jun has quit [Read error: Connection reset by peer]
jun has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
zack6849 has quit [Remote host closed the connection]
goldfish2310 has joined #ruby
Xeago has joined #ruby
craysiii has joined #ruby
urrr has joined #ruby
<shevy>
yep
<shevy>
beaver
devoldmx has joined #ruby
<shevy>
plus your alt is lemur so you have a thing going for animals regardless
cih has joined #ruby
devoldmx has quit [Remote host closed the connection]
bkulbida has joined #ruby
zack6849 has joined #ruby
zack6849 has joined #ruby
tmillc has quit [Quit: WeeChat 1.1.1]
hectortrope has quit [Remote host closed the connection]
QORRiE has joined #ruby
QORRiE has joined #ruby
dnewkerk_ has joined #ruby
dnewkerk has quit [Ping timeout: 256 seconds]
dnewkerk_ is now known as dnewkerk
Axy has joined #ruby
bruno- has joined #ruby
snath has quit [Ping timeout: 265 seconds]
khoan has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
Musashi007 has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
n008f4g_ has quit [Ping timeout: 255 seconds]
lenwood has quit [Ping timeout: 252 seconds]
firstdayonthejob has quit [Ping timeout: 268 seconds]
htmldrum has joined #ruby
danieli has quit [Quit: *does an epic backflip into nowhere*]
andywojo has joined #ruby
workmad3 has joined #ruby
sanjayu has joined #ruby
fullofcaffeine has joined #ruby
johnzorn has quit [Ping timeout: 264 seconds]
andywojo has quit [Ping timeout: 246 seconds]
Yzguy has joined #ruby
johnzorn has joined #ruby
Musashi007 has quit [Quit: Musashi007]
workmad3 has quit [Ping timeout: 264 seconds]
<dorei>
is there a less crappy alternative to activeresource ?