<BraddPitt>
I like to ask them to design a simple OO system (for reference, i was interviewing Java candidates)
Rickmasta has joined #ruby
<BraddPitt>
thats a good question shevy but not really a white boarding one
<EllisTAA>
BraddPitt: that seems like pretty long for white boarding …
<BraddPitt>
although it could very easily turn into one with meaningful discussion
<BraddPitt>
EllisTAA i tell them psuedocode is ok, I want to see design and implmentation mostly
<EllisTAA>
oh
startupality has quit [Ping timeout: 240 seconds]
wildlander has quit [Quit: Saliendo]
danieli has quit [Quit: *does an epic backflip into nowhere*]
voltalio has joined #ruby
eminencehc has quit [Remote host closed the connection]
<shevy>
EllisTAA well you could store stuff in a module too
<EllisTAA>
shevy: true but u can’t send it messages
SCHAAP137 has quit [Quit: Leaving]
mattprelude has quit [Ping timeout: 240 seconds]
<shevy>
what in ruby accepts messages
<EllisTAA>
objects
<yxhuvud>
shevy: everything!
<shevy>
is a module an object
<EllisTAA>
fine
<EllisTAA>
then what’s a class
<shevy>
an object
<shevy>
:)
<EllisTAA>
a blueprint for objects?
<shevy>
yeah that as well
<shevy>
ruby is the most prototypic class-based programming language I know of
dstarh has joined #ruby
baweaver has quit [Remote host closed the connection]
jamesaxl has quit [Remote host closed the connection]
<shevy>
EllisTAA the distinction between classes and modules is somewhat arbitrarily; you can't instantiate from a module, and you can't include a class into another class, but you can subclass
<yxhuvud>
shevy: you obviously doesn't know of smaltalk
dstarh has quit [Client Quit]
<yxhuvud>
or if you focus on the prototype part, self or lua.
<shevy>
lua
<shevy>
with its awesome tables
tkuchiki has joined #ruby
<EllisTAA>
what’s your go to algorithm question for interviewees
<shevy>
levensthein distance!
<shevy>
EllisTAA gem itself has something about that
<shevy>
let's give it a try
<shevy>
>> require 'rubygems/text'; include Gem::Text; levenshtein_distance 'EllisTAA', 'Ellis'
<platzhirsch>
Whiteboard interviews demonstrate the broken state of interviews
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
hehe
<shevy>
they just wanna torture somebody
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
poor EllisTAA
<yxhuvud>
I don't know, I do reasonably well with them.
<EllisTAA>
i dont mind them
<shevy>
do you have to do lots of interviews?
j4cknewt_ has joined #ruby
<platzhirsch>
I'd give them a take away thing to implement and then you can discuss the implementation, optimization potentials, maybe even do a pairing session on the code
tkuchiki has quit [Ping timeout: 268 seconds]
j4cknewt_ has quit [Remote host closed the connection]
<EllisTAA>
platzhirsch: ‘no one starred it. i hate the internet’ lol
<platzhirsch>
yeah fuck this shit
devoldmx has quit [Ping timeout: 250 seconds]
<platzhirsch>
I spend 4 days working on this project and no one cared, that's why I became a Node.JS developer
<Bish>
is there any way how x = x.gsub(...) and x.gsub!(...)
<Bish>
beave differently?
<platzhirsch>
aka hipster macbook homeless coder
voltalio has quit [Client Quit]
<nofxx>
platzhirsch, you didn't include a screenshot
<nofxx>
and tweeted it
<Musashi007>
lol what is hipster macbook homeless coder
<platzhirsch>
nofxx: the screenshot is 404'ing at the moment
c0ncealed has quit [Quit: going dark...]
c0ncealed has joined #ruby
<platzhirsch>
Musashi007: if you ever see a software developer in a Starbucks coffee who's implementing a web app with node and mongo, you know
<nofxx>
platzhirsch, a screenshot worth WAY, but WAY more than code. In star rate.
houhoulis has joined #ruby
<platzhirsch>
yeah :|
<Musashi007>
@platzhirsch living in the bay area.. i’ve _never_ seen one of those.. lol
<platzhirsch>
good, how' the bay area?
<platzhirsch>
I heard it's always cold there, still would like to move there
c0ncealed has quit [Client Quit]
<Musashi007>
overpriced, pretentious
<Musashi007>
crowded, etc
<platzhirsch>
mono-culture?
casadei has joined #ruby
<BraddPitt>
bay area is wonderful
<Musashi007>
wouldnt’ say that
<platzhirsch>
Good, I want to live there for a bit and offend people
<Musashi007>
whre are you living presently
c0ncealed has joined #ruby
weemsledeux has joined #ruby
<platzhirsch>
London
c0ncealed has quit [Client Quit]
<Musashi007>
I feel like that’s a wonderful place to offend people
paulcsmith has joined #ruby
<platzhirsch>
I always thought there is less culture in the Bay Area
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BraddPitt>
there is much more culture in Bay Area than Anywhere Suburban, USA
<Musashi007>
define.. culture?
casadei has quit [Remote host closed the connection]
casadei has joined #ruby
icole has quit [Ping timeout: 250 seconds]
<pwnd_nsfw>
You know.. more minorities that do things in public places
<platzhirsch>
Art, different sub-cultures, different kinds of people, different areas, rich, poor, something in between, a political atmosphere, alternatives to.. everything, vibrant community, and change
bkulbida has joined #ruby
<Musashi007>
yeah there’s all that.
<Musashi007>
its a melting pot.. :P
tuxero has joined #ruby
<platzhirsch>
I thought it's all overpriced and there's only the middle-class left with their Google Buses
<platzhirsch>
clearly I have read too many cliches, another reason try to obtain a visa to live there
<nofxx>
platzhirsch, it's a lil slow....waiting =D also... anchors take the same time. Maybe some cache?
<Musashi007>
no there’s definitely a lot of rich and poor
<Musashi007>
latin culture has a heavy influence as does many asian cultures
<platzhirsch>
nofxx: wow, you checked it out? Yeah not sure, it's using typhoeus, should be pretty fast
<nofxx>
platzhirsch, also if you allow me two UI cents: only `aquanaut` could give me a nice intro, some options
dopie has quit [Quit: This computer has gone to sleep]
Azure has joined #ruby
<nofxx>
and on yr initializer: url = "http://#{url}" unless url =~ r${^\w+://}
<nofxx>
%r{}
<nofxx>
the world defaults to http =D
paulcsmith has quit [Quit: Be back later ...]
Kitsunitchi has joined #ruby
casadei has quit [Remote host closed the connection]
<platzhirsch>
nofxx: where is it actually?
tejasmanohar has quit [Quit: tejasmanohar]
<platzhirsch>
oh for usage you mean?
c0ncealed has joined #ruby
<nofxx>
platzhirsch, don't know... yeah, so I can aquanaut foo.com
tuxero has quit [Remote host closed the connection]
<nofxx>
platzhirsch, and a last one... message... I just run in my 500+ folder home... what did it created? hehe
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxx>
./sitemap ;)
evanjs has joined #ruby
tuxero has joined #ruby
<platzhirsch>
oh no, really bad. It should do foo.com/sitemap
<platzhirsch>
wow, I really sucked two years ago. I wouldn't have hired myself
davedev2_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 265 seconds]
davedev24 has joined #ruby
karapetyan has joined #ruby
<EllisTAA>
platzhirsch: so effing mono culture it’s depressing
lolmaus_ has quit [Ping timeout: 240 seconds]
evanjs has quit [Ping timeout: 244 seconds]
<shevy>
platzhirsch would you hire yourself nowadays?
tuxero has quit [Ping timeout: 240 seconds]
<platzhirsch>
nofxx: thanks in any case, much appreciated
<platzhirsch>
shevy: well, I learned a shit load, still feels like I know nothing
tuxero has joined #ruby
Kitsunitchi has left #ruby [#ruby]
yfeldblum has joined #ruby
<EllisTAA>
platzhirsch: cmon platz ur prbly a boss coder
<platzhirsch>
pssoibly
karapetyan has quit [Ping timeout: 240 seconds]
djbkd has quit [Quit: My people need me...]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam>
bay area tech is historically known for being one of the more diverse areas of industry -- in the 80s and 90s there was panic because of how many folks were coming over on work visas -- I think we have something like 600k H1Bs in the bay area at any given time?
Oka has joined #ruby
<eam>
it's rad; we have amazing food in the south bay because of it :)
<platzhirsch>
Because all the H1B visas are occupied by chefs?
<platzhirsch>
no wonder I didn't get one
<eam>
because it's been going on for decades and a huge number of them naturalize
diegoviola has quit [Quit: WeeChat 1.3]
<eam>
food service springs up to serve demand
<eam>
go even one state over and cuisine thins out substantially
drewvanstone has quit [Ping timeout: 240 seconds]
<platzhirsch>
fair enoguh
<eam>
(along with the culture variance)
yfeldblum has quit [Read error: Connection reset by peer]
bronson has joined #ruby
<platzhirsch>
great to here some statements from people who are currently living there
yfeldblum has joined #ruby
<eam>
I have to laugh a bit when I see the "no diversity in tech" headlines because it wasn't that long ago when the headlines were in a panic about a completely opposite situation
<eam>
(and the demographics haven't changed)
<platzhirsch>
yeha peple tend to forget with click bait journalism
vdamewood has quit [Quit: Life beckons.]
<Bish>
can prevent gsub from "double"-substitute things?
<eam>
been doing this for a while; have many friends who've come over decades ago to work and now are citizens
<eam>
Bish: if you want it just once: sub
<eam>
gsub is "global" or repeated
<eam>
the //g regex flag equiv from other languages
<platzhirsch>
I thought I'd start applying again by the end of this year, but I am quite happy with my current company, still learning too much, hard to get out :)
<Bish>
eam i actually thought about that.. didn't even know that existed
charliesome has joined #ruby
tmtwd has joined #ruby
<eam>
platzhirsch: you said you're chasing an h1b? Where are you coming from?
<platzhirsch>
eam: Berlin
bazbing80 has quit [Read error: Connection reset by peer]
daveomcd has joined #ruby
<eam>
that's a pretty damn nice place to work :)
bronson has quit [Ping timeout: 252 seconds]
<Bish>
is copying a string with .dup the right thing to do.. when not wanting to have the same referenced object?
<Musashi007>
where are you applying platz
<platzhirsch>
A lot of people from East London move there, because it's much more affordable
KensoDev has joined #ruby
<eam>
Bish: sure
iateadonut has joined #ruby
<platzhirsch>
Musashi007: nowhere, I don't have a favourite startupin the states anymore
roxtrongo has joined #ruby
jenrzzz has joined #ruby
<Bish>
eam isn't there another operator to do it? so it looks nice? like instead of having to do str2 = str1.dup, maybe str2 |= str1
elshaka has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
<eam>
well, "" constructs a new string so you could str2 = "#{str1}"; or maybe str2 = str1 + ""
<eam>
but .dup is the cleanest and by far the fastest I think
maletor has quit []
<Bish>
hm okay, but know when i use .sub instead of .gsub only the firce occurance will be substituded, right?
daveomcd has quit [Ping timeout: 252 seconds]
<eam>
the most important thing is to convey intent. Any other operator which happens to construct a new string -- perhaps it's not clear that the side effect is what you're after
<eam>
#dup clearly says "I intend to copy this"
<eam>
Bish: yes
<eam>
(also, just try it!)
Kallis has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
EllisTAA has quit [Quit: EllisTAA]
jenrzzz has quit [Client Quit]
FrankD has quit [Ping timeout: 244 seconds]
charliesome has quit [Ping timeout: 252 seconds]
Kallis has quit [Read error: Connection reset by peer]
<helpa-bot>
Hi Bish. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa-bot>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<Bish>
if im using gsub there, it will transform the link, over and over
<[k->
ruboto has a personality now :o
<Bish>
yeah and it hates me.
jackjackdripper has quit [Quit: Leaving.]
<platzhirsch>
eam: do many live by themselves or live in shared flats/houses?
<Bish>
will i have to do it a more explicit way, or can i have it nice and soft, like it is there?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
pietr0 has quit [Quit: pietr0]
baweaver has quit [Ping timeout: 256 seconds]
crunk_bear has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has quit [Quit: leaving]
jenrzzz has joined #ruby
charliesome has quit [Ping timeout: 246 seconds]
podman has quit [Quit: Connection closed for inactivity]
renderful has joined #ruby
<Bish>
im an idiot. i got it know. thanks for the help!
<Bish>
s/know/"know"[1..-1]
<platzhirsch>
that's some kickass vim skill
<Bish>
rubyvim
icole has joined #ruby
<platzhirsch>
I gave up on Ruby vim, too much struggle with different Ruby versions
c0ncealed has quit [Quit: going dark...]
SCHAAP137 has quit [Quit: Leaving]
charliesome has joined #ruby
c0ncealed has joined #ruby
<[k->
use only legible constructs
<[k->
that way, they don't get removed
fullofcaffeine has quit [Remote host closed the connection]
<[k->
don't rely on misbehaviour
fullofcaffeine has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
paulcsmith has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 260 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 250 seconds]
definiv has joined #ruby
tawaffan has joined #ruby
DexterLB has quit [Quit: So long and thanks for all the fish]
Musashi007 has joined #ruby
nym has quit [Quit: Connection closed for inactivity]
definiv has quit [Client Quit]
j4cknewt has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Rickmasta has joined #ruby
tkuchiki has joined #ruby
brnpcn has joined #ruby
RegulationD has joined #ruby
wldcordeiro has quit [Quit: Leaving because reasons...]
jgpawletko has quit [Quit: jgpawletko]
charliesome has joined #ruby
wldcordeiro has joined #ruby
nfk|laptop has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
j4cknewt has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 246 seconds]
achamian has joined #ruby
iamninja has joined #ruby
devbug_ has joined #ruby
diegoviola has joined #ruby
Musashi007 has quit [Quit: Musashi007]
UtkarshRay has joined #ruby
brnpcn has quit []
bruno- has quit [Ping timeout: 250 seconds]
iamninja has quit [Ping timeout: 244 seconds]
devbug has quit [Ping timeout: 260 seconds]
drewvanstone has joined #ruby
barhum2013 has quit [Quit: barhum2013]
tejasmanohar has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
nanoz has joined #ruby
mblagden_ has quit [Read error: Connection reset by peer]
wldcordeiro has quit [Ping timeout: 240 seconds]
evanjs has joined #ruby
arescorpio has joined #ruby
fullofcaffeine has joined #ruby
swgillespie has joined #ruby
nfk|laptop has quit [Quit: yawn]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grotewol_ has joined #ruby
favadi has joined #ruby
grotewo__ has joined #ruby
grotewold has quit [Ping timeout: 272 seconds]
j4cknewt has joined #ruby
grotewol_ has quit [Read error: Connection reset by peer]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
devoldmx has quit [Remote host closed the connection]
dorei has quit []
Kallis has quit [Ping timeout: 272 seconds]
otacon- has joined #ruby
frege has quit [Ping timeout: 246 seconds]
robh71 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
achamian has quit [Remote host closed the connection]
tkuchiki has joined #ruby
charliesome has joined #ruby
mrtomme has quit [Ping timeout: 264 seconds]
mrtomme has joined #ruby
gener1c has joined #ruby
thejamespinto has joined #ruby
bazbing80 has joined #ruby
gener1c_ has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
braincrash has quit [Quit: bye bye]
evanjs has quit [Remote host closed the connection]
icole has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
devbug has joined #ruby
CloCkWeRX has joined #ruby
aaeron has quit [Quit: Leaving.]
CloCkWeRX has left #ruby [#ruby]
grotewold has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
Rickmasta has joined #ruby
devbug_ has quit [Ping timeout: 244 seconds]
grotewo__ has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
icole has quit [Ping timeout: 272 seconds]
rrichardsr3 has joined #ruby
robh71 has quit [Read error: Connection reset by peer]
jdawgaz has joined #ruby
darkf has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
<bazbing80>
I've created a command for my Gem in my 'bin' directory...but it can't require files from my project. I get a LoadError, saying it can't find the file. Really weird because if I puts a Dir.pwd, Dir.pwd says we're exactly where the file is...so why is require not requiring specified files? If I do require_relative and reverse out of the bin directory and into my lib it works, but I want to know why require isn't working...
mary5030 has quit [Remote host closed the connection]
robh71 has joined #ruby
TheWhip has joined #ruby
mary5030 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030_ has joined #ruby
ekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030_ has joined #ruby
psy has joined #ruby
bnizzle has left #ruby [#ruby]
psy has quit [Max SendQ exceeded]
psy has joined #ruby
Gnomethrower has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
mary5030_ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
sdothum has joined #ruby
robh71 has quit [Ping timeout: 246 seconds]
gix has quit [Ping timeout: 240 seconds]
devoldmx_ has quit [Remote host closed the connection]
parduse has joined #ruby
gix has joined #ruby
soosfarm has quit [Ping timeout: 264 seconds]
agent_white has quit [Quit: earlyBedTime]
karapetyan has joined #ruby
tkuchiki has quit [Remote host closed the connection]
noethics has quit [Quit: Leaving]
karapetyan has quit [Ping timeout: 240 seconds]
aaeron has joined #ruby
tkuchiki has joined #ruby
devoldmx has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
diego2 has joined #ruby
Timba-as has quit [Quit: Be back later ...]
devoldmx has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
Oka has quit [Quit: o/]
quazimodo has quit [Ping timeout: 240 seconds]
diego2 has quit [Quit: WeeChat 1.3]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dopie has joined #ruby
sdothum has joined #ruby
subshad has joined #ruby
bronson has joined #ruby
Musashi007 has joined #ruby
soosfarm has joined #ruby
chipotle has quit [Quit: cheerio]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has quit [Remote host closed the connection]
<jordanm>
sam_weerasinghe: I think it's probably windows mangling unicode in environment variables
braincra- has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
grotewold has joined #ruby
aces1up has joined #ruby
<aces1up>
hello i have a long string with multiple newlines i am writing to a socket, what should i use to make sure I send the whole string? puts, and gets on the server cut the string at the first newline
pen has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
iamninja has joined #ruby
<aces1up>
what io method should i use both to write the string and read the string on the server side?
braincrash has quit [Ping timeout: 264 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
grotewol_ has quit [Ping timeout: 240 seconds]
grotewol_ has joined #ruby
grotewo__ has joined #ruby
grotewold has quit [Ping timeout: 246 seconds]
iamninja has quit [Ping timeout: 240 seconds]
stardiviner has quit [Ping timeout: 240 seconds]
Coldblackice has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby
grotewol_ has quit [Ping timeout: 244 seconds]
grotewo__ has quit [Client Quit]
last_staff has joined #ruby
Coldblackice has joined #ruby
dopie has quit [Read error: Connection reset by peer]
dopie has joined #ruby
Cork has quit [Ping timeout: 248 seconds]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
evanjs has quit [Remote host closed the connection]
<eam>
aces1up: syswrite
LatoSans has joined #ruby
quazimodo has joined #ruby
casadei has joined #ruby
tkuchiki has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 240 seconds]
Cork has joined #ruby
amystephen has quit [Quit: amystephen]
tkuchiki has joined #ruby
<aces1up>
eam how can i do sysread on server end if I do not know how many bytes were sent?
casadei has quit [Ping timeout: 246 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
fullofcaffeine has joined #ruby
Guest36_ has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
j4cknewt_ has joined #ruby
poguez_ has joined #ruby
quazimodo has quit [Ping timeout: 255 seconds]
tmtwd has joined #ruby
Musashi007 has quit [Quit: Musashi007]
tejasmanohar_ has joined #ruby
<[k->
bazbing80: require only checks the load path
otacon- has joined #ruby
<[k->
as of some ruby version, the current directory is no longer part of the load path
j4cknewt has quit [Ping timeout: 246 seconds]
tejasmanohar has quit [Ping timeout: 240 seconds]
tejasmanohar_ is now known as tejasmanohar
jenrzzz has joined #ruby
bronson has joined #ruby
Musashi007 has joined #ruby
blur3d has joined #ruby
DoYouKnow has quit [Disconnected by services]
bronson has quit [Ping timeout: 255 seconds]
ruby-lang514 has joined #ruby
aaeron has quit [Quit: Leaving.]
[k- has quit [Quit: -a- IRC for Android 2.1.23]
aaeron has joined #ruby
blizzy has quit [Ping timeout: 260 seconds]
otacon- has quit [Ping timeout: 255 seconds]
<Guest36_>
Hello
<Guest36_>
I'm new here, is anyone in?
<darkf>
nope, not a soul
<Guest36_>
haha
<nofxx>
Guest36_, there was a guy here, but you missed him by just some minutes
jxv has quit [Read error: Connection reset by peer]
<Guest36_>
someone in my cohort for ruby programming referred me here.
<Guest36_>
seems like its active at like midnight.
<Guest36_>
So, I'm looking into swapping from basically front-end to full stack. I have questions directly related to code but, I'll save those for another day. What I'm curious about now is where is a great place to build up on just general programming logic?
UtkarshRay has quit [Read error: Connection reset by peer]
<Guest36_>
I'm just now ending week six, I've learned a ton. But, we are lacking assistance in the school, which might've been why I was accepted because they want to turn me into a T.A. of sorts.
<Guest36_>
I learn the fastest while being taught by a mentor in person, but that is a resource thats lacking.
roxtrongo has quit [Ping timeout: 268 seconds]
<Guest36_>
I'm not here to leech, but I don't have too much to offer towards ruby. I know more about javascript, html, css and jquery.
<Guest36_>
Really getting to know my peers and how professional ruby developers conduct business is something I deem extremely valuable right now.
<Guest36_>
Today I successfully wrote a hash straight from repetition, which felt great. But that is no where near enough!
<Guest36_>
I've just been asserting my patience, and meditating to stay calm. But with 5 weeks left before I start a job search, I seriously need more insights A.S.A.P.
UtkarshRay has joined #ruby
<Guest36_>
even insights on starting freelancing and getting people to let me build them projects for free so I can get reviews would be awesome. I've attempted this before, but clearly my presentation sucked!
<nofxx>
Guest36_, find something you find cool, search for a gem if it exists fork, if not create a new one
<nofxx>
there's no learning as working on it learning
ramfjord has quit [Ping timeout: 272 seconds]
<Guest36_>
a mentor suggested a write a gem, but I feel like I have no where to begin. But I guess I can just make something pointless for practice even as a beginner right?
arescorpio has quit [Remote host closed the connection]
<nofxx>
Guest36_, yeah.. but you find you like and is going to use, enthusiasm might join necessity.
devoldmx has quit [Remote host closed the connection]
<nofxx>
Guest36_, but first, get a nickname for irc
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ambidexter>
ok, i'm guest36 now known as Ambidexter
roxtrongo has joined #ruby
ruby-lang514 has quit [Ping timeout: 246 seconds]
lagrangi-wan is now known as pyon
nahtnam has quit [Quit: Connection closed for inactivity]
weemsledeux has joined #ruby
<Ambidexter>
haha, writing my own gem seems complicated.
dnewkerk has joined #ruby
<Ambidexter>
know of any good walkthroughs to get me started?
<Ambidexter>
like it seems easy but complicated.
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
yottanami has joined #ruby
aerozeppelin has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
roxtrong_ has joined #ruby
yottanami has quit [Client Quit]
aaeron has quit [Quit: Leaving.]
<Ebok>
Ambidexter, It depends on how much knowledge you have about Ruby.
rrichardsr3 has quit [Quit: The road to hell is paved with good intentions...]
roxtrongo has quit [Ping timeout: 255 seconds]
karapetyan has quit [Remote host closed the connection]
<Ebok>
If you would say you've virutally none, then I'd suggest walking through some of the basic tutorials. codeacedemy, rubymonk, read through this: https://pine.fm/LearnToProgram/chap_00.html.
shinnya has quit [Ping timeout: 256 seconds]
abra0 has quit [Max SendQ exceeded]
abra0 has joined #ruby
<Ebok>
If you have enough experience that what you're looking for is more complicated, then I'd start looking through rubydoc line by line and playing with the methods you dont immediately understand. Or looking through gems online to see how they were created. The tutorials and rubydoc together should provide most of that you need to "read" the basic gems. Probably.
dnewkerk has quit [Quit: dnewkerk]
tmtwd has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
karapetyan has joined #ruby
tkuchiki has joined #ruby
Feyn has joined #ruby
icarus has quit [Ping timeout: 268 seconds]
icole has joined #ruby
icarus_ has joined #ruby
<Ambidexter>
Alright, thanks man.
tkuchiki has quit [Remote host closed the connection]
<Ebok>
Sure
<Ambidexter>
I am not a absolute beginner but I feel kind of like it.
<Ebok>
I am. lol. I've been doing this language for about... 4 weeks?
<Ambidexter>
cool
<Ebok>
Note: all the references xD
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
<Ebok>
Heh. I could probably dig up more. I learned alot via google and github
<Ebok>
smartly worded questions are normally already answered somewhere, for the ones you need specific feedback for, you've got here.
<Ambidexter>
I'm a dev bootcamp, I had little programming experience coming here for a full stack class.
<Ebok>
Cool
<Ambidexter>
at a*
<Ebok>
I'm attempting to get into a bootcamp xD
<Ambidexter>
do you have any programming background prior to ruby?
icole has quit [Ping timeout: 246 seconds]
<Ambidexter>
I have a massive archive of resources I'm just building up on
<Ambidexter>
not just ruby though
<Ebok>
"for fun" programming knowledge, yeah. I've some very basic java, and I'm practiced at reading code in most languages
<Ambidexter>
the more the merrier though
bronson has joined #ruby
<Ambidexter>
I see
<Ebok>
I've written basic html, css stuff, but I dont really count that
<Ambidexter>
I was basically brainwashed by snippets so I'm having to rewrite how I try to solve problems.
<Ambidexter>
so much anxiety.
<Ambidexter>
I build a habit and its essentially a crutch.
<Ambidexter>
only have broken it barely, and its amazing painful.
<Ebok>
I would think the more languages you know, the less you can just depend on hanbits
<Ebok>
habits*
toretore has quit [Quit: This computer has gone to sleep]
<Ambidexter>
understandable, however my habit is that I just throw stuff together until it works, I did this for 6 years and never actually wrote a single line of code until like 6 weeks ago lol.
<Ebok>
I dunno. I find all of the code rather fascinating, and for these past weeks I've been kicking myself for not getting into this like... a decade ago.
<Ebok>
Oh
<Ebok>
>_>;
<Ebok>
That' lol.
<Ebok>
That's pretty painful yeah
<Ambidexter>
ffs right?
<Ebok>
Mmhmm.
KnownSyntax has quit [Read error: Connection reset by peer]
<Ebok>
All I really know, is that since I've picked this up, I'm positive that I will be doing this for a living. eventually.
<Ambidexter>
I get straight up anxiety attacks from it lol.
<Ambidexter>
same here!
<Ebok>
Nah, code makes me calm down... unless its a test
<Ambidexter>
I won't be broken down haha.
grotewold has joined #ruby
<Ebok>
tests I didnt mean to turn on, mostly.
<Ebok>
>_>;
<Ambidexter>
me too, unless in writing it by hand, which is what I'm working my hardest to reverse.
bronson has quit [Ping timeout: 265 seconds]
<Ebok>
I've have now twice, started an admissions test on accident.
<Ambidexter>
on here?
<Ebok>
Nah, for a bootcamp
<Ambidexter>
oh haha
<Ambidexter>
which ones?
aerozeppelin has quit [Quit: Leaving]
<Ambidexter>
I spent a year finding the best fit for me.
pyon has quit [Quit: F...ix you, Emacs!]
<Ebok>
Same one, its a multistep process. I figure best not to name camps or tests specifically.
<Ambidexter>
before the archives where polished out more.
<Ambidexter>
gotcha
Wolland has joined #ruby
<Ebok>
^_^
<Ambidexter>
I am kind of working on starting my own programmer society
<Ambidexter>
don't really know where to begin lol
pyon has joined #ruby
<Ebok>
Where do you want to end?
KnownSyntax has joined #ruby
grotewol_ has joined #ruby
<Ambidexter>
with a reliable, friendly and loyal but small network.
<Ambidexter>
loyal to all, and I don't want there to be a leader.
<Ambidexter>
accept for organizing meetings.
<Ebok>
Sounds like you want to work for a company
<Ebok>
>_>
avril14th has joined #ruby
<Ambidexter>
I do, but I also want this to be underground but also in person.
<Ebok>
Hm. Well, get a club house.
<Ambidexter>
haha not a bad idea.
<Ebok>
xD
<Ambidexter>
I'd like for each member to have good connects via online social networks too.
abra1 has joined #ruby
<Ebok>
really though, geta club house, put good tech in it, get a damned good lock or some great insurance, and bring in the recruits. Get projects, hivemind the issues of any person, and forward.
<Ambidexter>
so we each can bring a new side of this abundant programming world into one form of brainstorming.
Wolland has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
grotewold has quit [Ping timeout: 250 seconds]
icarus_ has quit [Ping timeout: 246 seconds]
<Ambidexter>
definately
grotewold has joined #ruby
<Ambidexter>
that's right up my lane. haha
<Ebok>
Otherwise, to do this sort of thing online. Loyalty is illusory, and small is relative.
<Ebok>
You might have to alter the goals slightly xD
abra0 has left #ruby ["
<Ambidexter>
I figured if each of us is associated with a entirely different network, then when we do get stuck we can ask questions to a mass amount of hubs simultaneously.
<Ebok>
Whenever I want to start a project, I obey the following quote: "To do it, do it"
<Ambidexter>
yeah, i'm flexible in it haha.
icarus_ has joined #ruby
<Ambidexter>
Indeed.
EmeraldExplorer has quit [Quit: Connection closed for inactivity]
grotewol_ has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
grotewol_ has joined #ruby
tkuchiki has joined #ruby
<Ambidexter>
I see it being a small in person gathering, maybe 20 members 5 at a time all with entirely different outreaches to communities, just so we can also find each others communities but to kind of focus efforts in different regions.
<Ambidexter>
Just a way of spreading seeds out as far as possible and setting a standard I guess.
<Ebok>
start at the beginning.
<Ebok>
Get someone else you know involved
<Ambidexter>
that'll all be down the line probably. Although joining an underground ruby community would be helpful probably.
<Ebok>
Build up one by one, and let everyone make it into something. I expect every person that stays will change its direction
<Ambidexter>
I'm just now starting to build my connections here, Once I get to know people better I'll present the idea to some people I trust.
grotewo__ has joined #ruby
<Ambidexter>
for sure Ebok, communities are developed around the users typically.
grotewold has quit [Ping timeout: 246 seconds]
ehth77 has joined #ruby
<Ebok>
Anyhow, goodluck!
<Ambidexter>
thanks a bunch man, glad to brainstorm and unwined haha
RegulationD has quit [Ping timeout: 260 seconds]
grotewol_ has quit [Ping timeout: 264 seconds]
grotewold has joined #ruby
<Ambidexter>
I put you in my irc freenodes list, hopfully its like adding you so we can talk again later.
bruno- has joined #ruby
iamninja has joined #ruby
<Ebok>
I'll be here under this nick often enough
davedev2_ has joined #ruby
arup_r has joined #ruby
<Ambidexter>
Alright cool, I'll be here as this alias often too. Probably hop around, Although I prob don't need too
grotewol_ has joined #ruby
grotewo__ has quit [Ping timeout: 264 seconds]
gustav_ has joined #ruby
casadei has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
grotewold has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
bruno- has quit [Ping timeout: 260 seconds]
iamninja has quit [Ping timeout: 272 seconds]
icarus_ has quit [Ping timeout: 244 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
casadei has quit [Ping timeout: 240 seconds]
ehth77 has quit [Ping timeout: 268 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icarus_ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
michael_mbp has joined #ruby
ehth77 has joined #ruby
ehth77 has quit [Client Quit]
devoldmx has joined #ruby
ruby-lang338 has joined #ruby
Feyn has quit [Ping timeout: 255 seconds]
j4cknewt_ has quit [Remote host closed the connection]
j4cknewt has joined #ruby
j4cknewt has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 265 seconds]
icarus_ has quit [Ping timeout: 264 seconds]
ehth77 has joined #ruby
xgoo has joined #ruby
icarus_ has joined #ruby
xgoo is now known as iyan
iyan has quit [Client Quit]
iyan has joined #ruby
grotewold has joined #ruby
dionysus69 has joined #ruby
skade has joined #ruby
rippa has joined #ruby
grotewo__ has joined #ruby
grotewol_ has quit [Ping timeout: 265 seconds]
karapetyan has quit [Remote host closed the connection]
pawanspace has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
jun_0237497 has joined #ruby
chipotle has joined #ruby
grotewol_ has joined #ruby
grotewold has quit [Ping timeout: 250 seconds]
Soda has quit [Remote host closed the connection]
grotewo__ has quit [Ping timeout: 250 seconds]
jun_0237497 has quit []
drptbl has joined #ruby
Rodya_ has joined #ruby
grotewold has joined #ruby
fedexo has joined #ruby
grotewo__ has joined #ruby
grotewol_ has quit [Ping timeout: 240 seconds]
pawanspace has quit [Ping timeout: 265 seconds]
grotewold has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
bronson has joined #ruby
code1o6 has quit [Quit: Leaving]
Fire1o6 has quit [Quit: Leaving]
DexterLB has joined #ruby
karapetyan has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
Anti-Pizza has joined #ruby
TheHodge has joined #ruby
blur3d has quit [Quit: blur3d]
karapetyan has quit [Ping timeout: 265 seconds]
abuzze has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
drptbl has joined #ruby
tkuchiki has quit [Remote host closed the connection]
quazimodo has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
abuzze has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
Ambidexter has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
davedev2_ has quit [Remote host closed the connection]
drew2 has joined #ruby
drew2 has quit [Client Quit]
drew2 has joined #ruby
skade has joined #ruby
drew2 has left #ruby [#ruby]
moeSeth has joined #ruby
allomov has joined #ruby
amystephen has joined #ruby
drew2 has joined #ruby
moeabdol has joined #ruby
jaygen has quit [Ping timeout: 260 seconds]
tockitj has quit [Ping timeout: 240 seconds]
<shevy>
nolic you could think of it as an alternative notation for single characters, I think in the past it returned the numeric "representation" ... or I may confuse this with .chr method
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
radgeRayden has quit [Ping timeout: 246 seconds]
Stalkr_ has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
jaygen has quit [Ping timeout: 256 seconds]
quazimodo has joined #ruby
Balzrael has joined #ruby
apt-get has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
nofxx has quit [Ping timeout: 260 seconds]
roxtrongo has quit [Remote host closed the connection]
jas02 has quit [Quit: jas02]
Musashi007 has quit [Quit: Musashi007]
djbkd has joined #ruby
stamina has quit [Ping timeout: 256 seconds]
Soda has quit [Remote host closed the connection]
keen________ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
keen________ has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
atmosx_laptop has joined #ruby
moeabdol has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
spider-mario has quit [Ping timeout: 268 seconds]
jalnt has joined #ruby
Rickmasta has joined #ruby
rdark has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
ht__ has joined #ruby
solars has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
k3asd` has quit [Ping timeout: 264 seconds]
ledestin has joined #ruby
ta_ has joined #ruby
tkuchiki has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
moeSeth has quit [Quit: Connection closed for inactivity]
ta has quit [Ping timeout: 252 seconds]
sdothum has joined #ruby
Feyn has quit [Quit: Leaving]
timonv has quit [Ping timeout: 252 seconds]
FrankD has quit [Ping timeout: 244 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apt-get has quit [Ping timeout: 268 seconds]
crank1988 has quit [Read error: Connection reset by peer]
crank1988 has joined #ruby
ixti has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.3]
bruno- has joined #ruby
charliesome has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gregf has joined #ruby
casadei has joined #ruby
Salehi has quit [Quit: Leaving]
devoldmx has joined #ruby
manjaro-fluxbox has joined #ruby
manjaro-fluxbox has quit [Client Quit]
arup_r has quit [Ping timeout: 264 seconds]
casadei has quit [Ping timeout: 246 seconds]
borkdude_ has left #ruby [#ruby]
devoldmx has quit [Ping timeout: 252 seconds]
otherj has joined #ruby
platzhirsch has quit [Ping timeout: 252 seconds]
platzhirsch has joined #ruby
Coldblackice has quit [Ping timeout: 264 seconds]
otherj has quit [Client Quit]
Starthunder has joined #ruby
ramfjord has joined #ruby
CloCkWeRX has joined #ruby
minimalism has quit [Quit: leaving]
<Starthunder>
I'm trying to install a gem, and there's a configure script complaining about the ncurses (or lack thereof). Can I make it use the Homebrew-installed ncurses, without passing that as the /only/ include/ and lib/ directories?
jaygen has joined #ruby
Jackneill has joined #ruby
bigmac_ has joined #ruby
BrazenBraden has joined #ruby
jaygen has quit [Ping timeout: 265 seconds]
lkba has joined #ruby
UtkarshRay has joined #ruby
atmosx_laptop has quit [Quit: Lost in trance]
n008f4g_ has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
pontiki has joined #ruby
moeabdol has joined #ruby
sepp2k has joined #ruby
Timba-as has quit [Quit: Be back later ...]
moeabdol has quit [Ping timeout: 250 seconds]
platzhirsch has left #ruby [#ruby]
moeabdol has joined #ruby
tomphp has joined #ruby
Jammyhammy|Work has joined #ruby
Kendos-Kenlen has joined #ruby
bronson has joined #ruby
platzhirsch has joined #ruby
n008f4g_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
yqt has joined #ruby
RegulationD has joined #ruby
scripore has joined #ruby
Azure has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
codecop has joined #ruby
Azure has quit [Client Quit]
spider-mario has joined #ruby
DoubleMalt has joined #ruby
jgpawletko has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
blizzy has quit [Ping timeout: 255 seconds]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
pontiki has quit [Ping timeout: 256 seconds]
Ilyes512 has joined #ruby
maikowblue has joined #ruby
casadei has joined #ruby
rp__ has joined #ruby
<rp__>
For someone getting into web dev for the first time, is Rails or Sinatra the better choice for getting started?
<apeiros>
probably sinatra
<rp__>
apeiros: Why is that?
<apeiros>
rails is huge. sinatra less so.
<rp__>
apeiros: Do you know of any good resources out there for learning sinatra?
casadei has quit [Ping timeout: 250 seconds]
gustav_ has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
Ilyes512 has joined #ruby
<apeiros>
rp__: no. but probably the sinatra website does.
<rp__>
apeiros: OK. Thanks.
freezeve_ has joined #ruby
sanjayu has joined #ruby
rp__ has quit [Quit: Page closed]
bitri has joined #ruby
Anti-Pizza has quit [Quit: Quit]
JammyHammy has joined #ruby
arup_r has joined #ruby
<shevy>
rails rails rails
<shevy>
we need a new killer app!
apt-get has joined #ruby
hectortrope has joined #ruby
lolmaus_ has quit [Quit: Konversation terminated!]
lolmaus_ has joined #ruby
atomical has joined #ruby
gustav_ has quit [Remote host closed the connection]
blackoperat has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
xgoo has joined #ruby
j4cknewt has joined #ruby
xgoo has quit [Client Quit]
xgoo has joined #ruby
leitz has joined #ruby
iyan has quit [Ping timeout: 268 seconds]
_blizzy_ has joined #ruby
xgoo has quit [Client Quit]
Ilyes512 has joined #ruby
iyan has joined #ruby
gustav_ has joined #ruby
<leitz>
OOP mentoring needed. I have a class Character" that does a lot of the work for creating game characters. It is prmarily meant to be sub-classed though, as the Career a character chooses affects many character attributes.
evanjs has joined #ruby
Zackio has joined #ruby
<leitz>
So, Character.initialize does stuff. Now I have a need to take the framework Character provides and fill in the attributes from a data store. Is it better to refactor the class or just build a parallel framework?
parduse has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
decoponyo has quit [Read error: Connection reset by peer]
<Balzrael>
leitz: stop using so much inheritance and focus more on composition to delegate stuff around
victortyau has joined #ruby
<Balzrael>
you can create a career class with all its subclasses that gets injected into the Character class and gives it all the special powers it needs
evanjs has quit [Ping timeout: 244 seconds]
<Balzrael>
you just need to figure out some clean intefaces for all the objects to make them all play nice
bitri has joined #ruby
bitri has quit [Client Quit]
<leitz>
Balzrael, you're a little past the edge or my Ruby skills, can you clarify?
<leitz>
or/of
<Balzrael>
just create a class named Career that hooks into the data store and holds a character's attributes
blackoperat has quit []
<shevy>
leitz that reminds me of e. g. class Warrior < Character
<Balzrael>
then the Character class just needs an instance of the Career class to be able to do all sorts of stuff
tsujp has quit [Quit: tsujp is snoozing]
aaeron has joined #ruby
<Balzrael>
if you have a complex class inheritance will create lots of headaches really fast
<Balzrael>
just use composition,
<leitz>
shevy, I'm on the same project, trying to push my skills a bit. So "class Marine < Character"
<Balzrael>
and the things composing the complex class can use inheritance if you want
<Balzrael>
it depends on the complexity
<leitz>
The issue is that Character does stuff that is common to the sub-classes.
lkba has quit [Ping timeout: 240 seconds]
<shevy>
yeah, so the common task is stored in Character, the specialized variant in the specific subclass
bronson has joined #ruby
nfk has joined #ruby
cornerma1 has joined #ruby
<leitz>
shevy, yup. But now I need to use Character as a framework; attributes are assigned, vs being calculated.
Balzrael has quit [Quit: Leaving]
<leitz>
The easy way is to use a struct to store data, However, over time there's nothing keeping the Class and Struct aligned.
<shevy>
I don't know why class Character needs to do this, can't you align the attributes based on the subclass? "if subclass is Marine, use these attributes, else use that"
Pathfinder_ has joined #ruby
leafybasil has quit [Remote host closed the connection]
<shevy>
I tend to use a hash and use methods to modify it
<leitz>
Character does stuff like "Roll your strength, intelligence, etc" Marine adds career specific skills and modifications.
leafybasil has joined #ruby
<leitz>
Balzreal's comment about complexity makes sense; I have one level of inhertance.
cornerman has quit [Ping timeout: 256 seconds]
cornerma1 is now known as cornerman
davedev24 has joined #ruby
<leitz>
It is possible to give initialize the abilty to optionally accept a hash for data and then to fill in the blanks?
bronson has quit [Ping timeout: 252 seconds]
<shevy>
simply check what you pass
<leitz>
For example, if the hash didn't have X, do method_x.
<shevy>
how can you ask such newbie questions :)
<shevy>
method_x unless hash.has_key? X
<leitz>
In initialize?
<shevy>
hehe
<leitz>
I speclize in newbie stuff. Trying to help the other newbies know they are not alone. :)
<shevy>
Foo.new(argument) will pass to initialize(), after allocate()
<leitz>
I can't type early in the morning either, it seems.
karapetyan has joined #ruby
<shevy>
so all input that you give to your class, like Marine, will at first go through initialize(), which should be somewhat similar to C main()
Kallis has joined #ruby
leafybasil has quit [Ping timeout: 264 seconds]
Kallis has quit [Max SendQ exceeded]
<shevy>
you could also design the API through other means like
<shevy>
Marine.fire at: :cat
<shevy>
Marine.fire big_complicated_hash_here
<shevy>
whatever you do, you will need a method that handles the case you described above, via hash
<leitz>
Hmm...you're right. That may complication stuff even more. I've been so wrapped up in generating characters that I've not thought much about using them.
<leitz>
That may mean a different class.
<leitz>
Or hash.
Kallis has quit [Read error: Connection reset by peer]
Kallis has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ali93 has joined #ruby
mary5030 has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evanjs has joined #ruby
jatb has quit [Remote host closed the connection]
tagrudev has joined #ruby
tagrudev has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tagrudev has joined #ruby
tagrudev has quit [Client Quit]
stamina has joined #ruby
tomphp has joined #ruby
ali93 has quit [Ping timeout: 246 seconds]
parduse has quit []
Ilyes512 has joined #ruby
scripore has joined #ruby
<shevy>
the simpler the better
<leitz>
You can use "def initialize(var=999)" for a var, can you just give it a variable name and have the subsets do "if var.has_key?('upp')"
<leitz>
Lemme see what I blow up.
Timba-as has joined #ruby
gustav_ has quit [Remote host closed the connection]
<shevy>
no
<shevy>
you must check whether it is a hash or whether it is not
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
a string won't have the method .has_key?
<shevy>
nil won't have it easier
<shevy>
*either
<shevy>
I don't entirely understand you - you write a very complicated class, but you don't know how to check what kind of you object you have :)
casadei has joined #ruby
<leitz>
I cah check the class, just get lost in the jungle of overgrown logic.
<shevy>
use .respond_to? to find out to which method your object can respond to; use .is_a? to find out what the class is; and .nil? whether you have a nil object
freezeve_ has quit []
<shevy>
yeah. strive for simplicity!
devoldmx has joined #ruby
atomical has joined #ruby
<leitz>
Yeah, that's the goal. The current class works as designed. Now I'm chanigng the design and seeing the cruft.
Jardayn has joined #ruby
gustav_ has joined #ruby
bigmac_ has quit [Ping timeout: 255 seconds]
<shevy>
don't break things that work!
<leitz>
Conflicing directions, pardner.
gustav__ has joined #ruby
<leitz>
The simple question seems to be; how to pass an optional hash to Character.initialize, and deal with it inside the class.
rdark has quit [Quit: leaving]
<leitz>
I think I can get the second part, if I can figure out the first bits.
tsujp has joined #ruby
bigmac_ has joined #ruby
casadei has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Remote host closed the connection]
atomical has quit [Ping timeout: 255 seconds]
Kallis has quit [Ping timeout: 272 seconds]
jdawgaz has joined #ruby
grotewold has joined #ruby
gustav_ has quit [Ping timeout: 250 seconds]
casadei has joined #ruby
michael_mbp has quit [Excess Flood]
ruurd has quit [Quit: ZZZzzz…]
<leitz>
Good thing git has branches...
mary5030 has quit [Remote host closed the connection]
<adaedra>
leitz: So you want to be able to do things like `Character.new type: :foo` ?
mary5030 has joined #ruby
Meow-J has joined #ruby
pontiki has joined #ruby
pontiki has quit [Client Quit]
<[k->
adaedra will show you the way!
devoldmx has quit [Ping timeout: 250 seconds]
<leitz>
adaedra, I'm currently using the sub classes to generate characters. A new requirement has come in to pull the caracter data from a datastore, and I need to deal with the super class assuming it was supposed to do stuff.
<leitz>
Make sense? I didn't get a lot of sleep last night. :(
sferik has joined #ruby
michael_mbp has joined #ruby
jas02 has joined #ruby
<adaedra>
leitz: let's make this understandable
<adaedra>
you're creating a representation of Characters (as in game characters)?
<leitz>
Yup.
<adaedra>
And you have specialized characters, which would be Character subclasses?
mary5030 has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cheerio]
<leitz>
Yup.
<leitz>
The Character class assumption is that it would create parts of the character., not just hold data.
lkba has joined #ruby
allomov has quit [Remote host closed the connection]
<adaedra>
Like hold Items or something?
maahsa has joined #ruby
Xeago has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leitz>
Yes. For example, a character has a set of stats, called "upp". The original class generated the upp. I am now working on having the class hold a provided upp, or generate one if none provided.
<maahsa>
I have been battling a memory leak in ruby 2.2.3p173 for a couple of days now. Basically, I want it to go away.
ruurd has joined #ruby
<maahsa>
There must be an issue with huge hashes and symbols
<leitz>
adaedra, for note, I'm working on the server provided Ruby 1.8.7.
LatoSans has quit [Quit: Leaving]
<adaedra>
1.8.7!?
houhoulis has joined #ruby
Kallis has joined #ruby
<leitz>
Yeah, I know. Unsupported, antiquated, etc...etc...etc..
Ilyes512 has quit [Read error: Connection reset by peer]
<maahsa>
old
<maahsa>
you forgot old
<leitz>
Ah, and "old". "very old".
<leitz>
:P
maahsa is now known as maasha
<maasha>
:D
<adaedra>
So each subclass would give this set of stats to the parent class to hold, right?
gustav__ has quit [Remote host closed the connection]
<adaedra>
Sounds like a basic case of optional parameter
freezevee has joined #ruby
<adaedra>
Except if you may want to be able to pass only a part of these stats, and let the parent fill in the blanks?
<leitz>
The super class generates the upp. The subclass starts initialize with "super", and then can modify the upp.
solocshaw has quit [Remote host closed the connection]
aaeron has quit [Quit: Leaving.]
<leitz>
In general, the super class is never called directly.
solocshaw has joined #ruby
<adaedra>
But you said "I am now working on having the class hold a provided upp, or generate one if none provided."
voltalio has joined #ruby
<adaedra>
How is this `upp` generated? Just base values that can be overriden? Random?
apt-get has quit [Ping timeout: 250 seconds]
<leitz>
Yes. The original program created characters. For example, "chargen.rb -c Marine" would generate a Marine character. The Marine class was a subclass of Character. Character would randomly generaly the upp, and then Marine might modify it. Then print it out for view.
<ruboto>
adaedra # => /tmp/execpad-963be9e0160e/source-963be9e0160e:2: syntax error, unexpected ':', expecting kEND ...check link for more (https://eval.in/440081)
<adaedra>
grmbl
Ilyes512 has joined #ruby
<adaedra>
Ok, I see
<adaedra>
And this is what you have now or what you're trying to have?
<leitz>
Now I'm trying to pull already created characters from a data store (JSON) and print them the same way. The Character clsss's assumption is that it would always generate upp, not be given one.
<leitz>
All 56 rspec tests pass for generation. Most blow up when I pass in a hash.
<adaedra>
You can serialize the character into the data store
<adaedra>
Ah, wait, JSON
<leitz>
Also, while I'm even older than 1.8.7, my skills are about as developed as 3.8.pre-pre-alpha.
solocshaw has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 264 seconds]
<leitz>
So, the question seems to be, can I modify Character to take an optional hash with parts of the work done, or should I make a differnet class for injesting the hash data?
<maasha>
I cant even find any bug reports on memory leaks in 2.2.3 maybe they are in japanese
<adaedra>
So you want to be able to save characters into JSON and restore them with same data
EXID123 has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
<adaedra>
Well, yeah, let characters be creatable with an optional hash
evanjs has quit [Remote host closed the connection]
<leitz>
Hmm..just realized the doc's don't show usage or (il)logic flow.
<adaedra>
There's only the upp that has to be reloaded from store, right?
<leitz>
No, everything should be reloaded frm the store.
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
So many enhancements possibilities in this code.
<leitz>
Exactly. I am learning Ruby and using my love of gaming to give me something to practice on.
<leitz>
The program, by itself, has little value outside my personal education.
solocshaw has joined #ruby
<leitz>
And the fact that a friend asked me to generate 1134 characters yesterday.
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
I see.
RegulationD has quit [Ping timeout: 264 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
<leitz>
That's when I realized my code was good for one part of the problem, but not for another.
bronson has joined #ruby
vasilakisfil has joined #ruby
leafybasil has joined #ruby
<adaedra>
If it's for your personal training, why don't you get a more recent ruby?
<vasilakisfil>
hello! when I have something {|param1, param2| ...} is it possible to have a block instead of param1 or param2 ?
<leitz>
Also, since I'm learning on my own, if you can provide guidance without just providing code, it helps me learn.
<vasilakisfil>
in order to modify param1 and return something else
Ilyes512 has quit [Read error: Connection reset by peer]
<adaedra>
leitz: that's what I was seeking for
<adaedra>
vasilakisfil: do you have a more complete example to show? I'm not sure to fully understand.
<vasilakisfil>
yeah I can create a gist
Ilyes512 has joined #ruby
<leitz>
adaedra, #{that_which_pays_the_bills} is as a server admin, and the servers us 1.8.7. Or 1.8.5. By sticking with the old Ruby I can write tools for work as well. That means I can keep my head in more Ruby than just aftera long day at work.
<leitz>
Because of time, a new Ruby effectively means no Ruby.
Ilyes512 has quit [Max SendQ exceeded]
<adaedra>
leitz: you can add basic parameters with defaults, but since you have a lot of parameters, it would be a bit long. You can also add a single parameters containing a hash of data then load from this hash if given or use your defaults.
Ilyes512 has joined #ruby
gustav_ has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<adaedra>
given your requirements, I'd go for the latter.
<adaedra>
So you want to be able to pass a proc as parameter?
<vasilakisfil>
I want to do something so that I can modify the arguments before accessing them in the block
<adaedra>
I'm not sure your sample clarify things
<adaedra>
ah, you want to be able to change route_path in the block?
iyan has quit [Ping timeout: 246 seconds]
braincra- has quit [Read error: Connection reset by peer]
gustav_ has quit [Ping timeout: 240 seconds]
jxv has joined #ruby
<vasilakisfil>
basically the block has 2 params route_paths and options. But inside the block I need to always do route_paths[:items] which doen't feel right.. I could do route_paths = route_paths[:items] in the first line of the block but I am wondering if it's possible to modify the arguments with a proc
<vasilakisfil>
I had seen something like that somewhere..
voltalio has joined #ruby
scoot has joined #ruby
<adaedra>
ah, I think I see, but I don't think it's possible
gustav__ has quit [Remote host closed the connection]
<leitz>
The original program just wrote to stdout in txt, html, csv, or wiki formattig.
<maasha>
stupid gc
ekain has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
You should close the resources you open. You never close your File object.
<leitz>
If I can build the object from the same class, and give it data, I can use the same write methods.
<adaedra>
Are you required to use JSON?
<leitz>
Ah, that was late work last night. Much to be done to get it to work.
Xeago has quit [Remote host closed the connection]
<[k->
maasha: that post is from 2014
<[k->
gc has changed since then
havenwood has joined #ruby
<[k->
we have rincgc now
Ilyes512 has joined #ruby
<leitz>
I prefer JSON as I want to move to MongoDB at some piont in time. We also use JSON at work, as the other option is YAML.
braincrash has joined #ruby
chipotle has joined #ruby
<leitz>
piont/point
subsonik has joined #ruby
<leitz>
I also want to use a portable datastore format but avoid large things like MySQL, etc.
<leitz>
Some years ago I had to fix a guys perl code. He had left and a critical business process needed work. He was using a perl only storage mechanism. :(
jdawgaz has joined #ruby
<leitz>
I dislike perl anyway, so that was a...real...joy...
<maasha>
[k-: it pretty much describes the issue I have exactly
<adaedra>
Ok, so what's the current problem?
<leitz>
adaedra, is that to me? maasha is taking out the trash, too. :)
<adaedra>
Yours, leitz
<maasha>
[k-: I have a hash with 1.5M symbols as keys and true as value that I use to filter streamed records. Memory exceeds 6G in an hour
<maasha>
so something is leaking
<karapetyan>
how to call class method from another class method? )
<karapetyan>
and can class methods be a private?)
<adaedra>
by its name, karapetyan
<karapetyan>
hm)
<karapetyan>
ok ))
<leitz>
Okay. If i can use the existing Character class for both generation and intake from datastores I avoid potential divergance between to classes that do a lot of the same thing.
<adaedra>
You'll have to unserialize from the specialized class though.
<leitz>
At present that seems to mean modifying the initialize method to accept an optional hash, and running the subsequent methods if a hash value is not set.
<adaedra>
Looks like it. Does it works?
wildlander has joined #ruby
<Papierkorb>
Has someone in here experience with the Ruby Object Mapper (ROM)? I'm looking for a gem which lets me have a settings.yml file (much like the config gem does), but which can also do some validations and transformation on top of it
<leitz>
I think I see what you're saying. That means the coffee is wokring. Lemme study it for a bit. The code, not the coffee...
devoldmx has joined #ruby
atomical has joined #ruby
Ilyes512_ has joined #ruby
Pathfinder_ has quit [Ping timeout: 240 seconds]
Ilyes512 has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
<adaedra>
?coffee
<ruboto>
here's a coffee, you seem to need it: ☕
Pathfinder_ has joined #ruby
<[k->
!helpa
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
subsonik has left #ruby [#ruby]
<adaedra>
mmh?
yqt has quit [Ping timeout: 272 seconds]
<[k->
hmmm?
casadei has quit [Remote host closed the connection]
Beoran has quit [Read error: Connection reset by peer]
voltalio has joined #ruby
* leitz
is making progress, but needs to figure out how to explain it.
bigmac_ has quit [Ping timeout: 252 seconds]
tsujp has quit [Quit: tsujp is snoozing]
lulzmachine has joined #ruby
gustav_ has joined #ruby
<leitz>
Okay, got it.
voltalio has quit [Client Quit]
<leitz>
First, adaedra's comment was critical; I was trying to pass a hash to a method expecting an object.
tmtwd has joined #ruby
<leitz>
Second, I had forgotten to add an attribute, "rank", to Character's initialize and attr_accessor bits. The sub-classes have it, Character didn't.
Anti-Pizza has joined #ruby
<[k->
That's why we should have strong typing systems for non trivial projects!
<leitz>
I just figured we needed better cding skills. :)
<leitz>
And better typing skills...
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ilyes512_ has quit [Read error: Connection reset by peer]
<[k->
or we should have a decent idea of what we are doing
<[k->
we should know what class is the object we are handling at the moment
skade has quit [Quit: Computer has gone to sleep.]
voltalio has joined #ruby
<adaedra>
People who can't live without that don't do Ruby, [k-
<leitz>
Which suggests we should do something besides code on a late Friday night...
<adaedra>
And they are really fine as long they are not constantly reminding other channels how their language is way better.
<adaedra>
Ah, "bragging" was the word I was looking for.
scripore has quit [Quit: This computer has gone to sleep]
solocshaw has quit [Ping timeout: 240 seconds]
<leitz>
Well, I have to admit. Even though I am lousy at Ruby I enjoy it as much as I did PHP. That's a high bar for me.
<[k->
:PPPPPPPP
<[k->
ruby is great for hacking and prototyping
<[k->
it took forever to do things in *
<adaedra>
leitz: to be fair, the error you pasted clearly indicated you have a Hash and it does not have the given method. From here, it's simple to find the problem.
djbkd has joined #ruby
<leitz>
adaedra, I agree. The issue wasn't the language, but my experience in understanding the message it was giving.
<adaedra>
It comes with time.
djbkd has quit [Remote host closed the connection]
<leitz>
Which is why I stay on 1.8.7. I can introduce Ruby to the people at work, and get stuff done much easier.
solocshaw has joined #ruby
darkf has quit [Quit: Leaving]
<adaedra>
I would like to oppose that.
<karapetyan>
if i have a hash that stores some values. and if i convert keys of that hash to array
<adaedra>
1.8.7 is really old and Ruby has well changed since. It begins to be counter productive.
<karapetyan>
can i be sure that elements of that array will placed in same order as they was added to hash ?
bigmac_ has joined #ruby
<leitz>
karapetyan, I'm not sure hashes store in any order.
<adaedra>
It does, in >= 1.9
<leitz>
adaedra, I understand the point, but I really get more Ruby if I stick with what I can use in my day job.
Ilyes512 has joined #ruby
<karapetyan>
adaedra: it does?
<leitz>
I've lost more than one language that I didn't get to use often enough for it to stick.
scripore has joined #ruby
Beoran has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
<adaedra>
karapetyan: see the docs: “Hashes enumerate their values in the order that the corresponding keys were inserted.”
<[k->
also, 1.8.7 is sooooo slooooow
<karapetyan>
adaedra: thank yo!
nietzschette has joined #ruby
nietzschette has left #ruby [#ruby]
<leitz>
As has been pointed out, my code has room for improvement. I can't expect to change careers and make a similar paycheck. Yet, anyway.
<adaedra>
leitz: problem is that you'll find less and less people that would help you, and at the moment you will want to use external gems with your code, you'll have to use old, unmaintained code, which will make it difficult.
<leitz>
I'm looking forward to the Ruby Performance Optomization book, it's supposed to have some 1.8 compatible code.
drewvanstone has quit [Quit: Lost terminal]
<[k->
1. it is vulnerable to dos (no gc of symbols), 2. it does not have the new gc in 1.9, 2.0, 2.1, and 2.2
<[k->
gc is one of the bottlenecks
Kallis has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
<[k->
unless you can patch your 1.8.7 to use the newer gc's, your app will still be slow
mattprelude has joined #ruby
<leitz>
adaedra, understood. So far the only gem I actually use is nokogiri. As I said earlier, if I can't use it at work I'll lose it completely.
rlf has joined #ruby
<rlf>
any idea why this doesn't work as expected - https://gist.github.com/anonymous/269903d791bba69cc22c ; I'm a ruby beginner and I suppose I'm either missing something obvious or it has something to do with the way ruby handles floating-point numbers
<adaedra>
Hi, rlf
<rlf>
hello
scripore has quit [Quit: This computer has gone to sleep]
<adaedra>
expected output, current output?
<leitz>
Also, not sure if anyone cares, but Ruby loses impact when apps are written for versions of code that are not supported by the OS. If a program requires Ruby 2.x and the server only has 1.8.7, that program can't get used.
bronson has joined #ruby
shinnya has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
scripore has joined #ruby
<adaedra>
leitz: it can. Look at ruby-install or rvm.
<rlf>
with input 1 to 10 the output is all but 7, when it should be 1, 2, 3, 5 and 8 only
<adaedra>
Also, some Linux distributions have access to newer versions through additional repositories, like CentOS's software collections.
roxtrongo has joined #ruby
<leitz>
adaedra, people who support servers seldom have time to look at language specific work-arounds. At least none of the ones I know do.
parduse has joined #ruby
<adaedra>
Depends where.
skade has joined #ruby
<leitz>
Even Ruby 1.8.7 easily competes with Python and Perl, from an admin's perspective. I find it a lot more fun that either of those, which is why I promote it at work.
<havenwood>
leitz: OS/distro?
<adaedra>
But there's always way of getting a newer version, even if it is manual compilation (which sometimes sysadmins do.)
skade has quit [Client Quit]
<leitz>
havenwood, RHEL 5/6.
<leitz>
If we ever move to RHEL 7 then Ruby 2.0 is an option.
<adaedra>
Yep, Software collections.
<adaedra>
I don't know if it goes back to RHEL 5 tho.
bronson has quit [Ping timeout: 255 seconds]
Soda has joined #ruby
tkuchiki has quit [Remote host closed the connection]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leitz>
Ruby 1.8.5 on RHEL 5, I think. But we're encouraging people to move away from it.
jdawgaz has joined #ruby
skade has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<leitz>
I have this dream of getting a cyber security degree and using Ruby for my capstone project.
<adaedra>
That's your problem, rlf. In fact, it should show /all/ numbers, but float imprecision prevents that.
scoot has quit [Remote host closed the connection]
<rlf>
oh, so how do I go on fixing that?
<adaedra>
Mathematically, sqrt(n^2) = n (or close enough), so I guess your method is flawed.
freerobby has joined #ruby
sanjayu has joined #ruby
pawnbox has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 265 seconds]
<adaedra>
But for you, is_perfect_square? should return true if n is the square value of an integer number? rlf
pawnbox has joined #ruby
roxtrong_ has joined #ruby
bruno- has joined #ruby
crank1988 has quit [Ping timeout: 265 seconds]
<rlf>
I tried the same stuff in C++, seems to give me correct result, so I guess the problem is not in the logic but in my misunderstanding of how ruby works
<adaedra>
What method did you use for sqrt in c++?
<rlf>
sqrt() from math.h
<adaedra>
can you show me this method in C++? I think I see.
kirun has joined #ruby
<adaedra>
Just need to confirm.
<rlf>
you mean the source of the sqrt method, or the source of my method?
allomov has quit [Remote host closed the connection]
robh71 has joined #ruby
<shevy>
yes
<adaedra>
if ! => until
<adaedra>
unless*
<shevy>
you can kill the "","" characters, think about that
RegulationD has quit [Ping timeout: 255 seconds]
<[k->
instead of @results[element].each { |item| puts item }
<[k->
use puts @results[element]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
<karapetyan>
if !=> unless # done!
<[k->
your code is not threadsafe
wookiehangover has quit [Ping timeout: 240 seconds]
<karapetyan>
[k-: what does mean threadsafe? )))
solocshaw1 has joined #ruby
<karapetyan>
oh i see
ruurd has joined #ruby
<adaedra>
which is not a problem if you don't plan on threadify it or make it a library
<[k->
your code doesn't show intent clearly
<[k->
why 3
solocshaw has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
<karapetyan>
should i create variables coincidence = 3 and put this instead 3 ?
fantazo has joined #ruby
<karapetyan>
shevy: what mean %w(y n) could you explain please?
<[k->
yes
<karapetyan>
guys can i code for free something? to get experience in team working?
leafybas_ has joined #ruby
<karapetyan>
[k-: done
<[k->
?guys
<ruboto>
Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<karapetyan>
and where best project / place to start?
<karapetyan>
folks!! ))
<karapetyan>
damn )
<[k->
have you fixed until...do yet?
bronson has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k->
now, the most crucial part of mathematical looking code is to document it using comments
wookiehangover has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
<karapetyan>
[k-: no, what should i fix?
<karapetyan>
in until...do
<adaedra>
karapetyan: %w[] is a short way of writing an array of string.
<freezevee>
I mean that I create with .new(*args) but how do I initialize the object
<shevy>
just like every time you use .new
<shevy>
Foo.new
<shevy>
Foo.new 1
<shevy>
Foo.new 1,2
<freezevee>
no
<freezevee>
I mean that I have 10 options
jaredrhine has quit [Quit: No Ping reply in 180 seconds.]
<havenwood>
freezevee: I don't follow what you're trying to do. Maybe create a gist that shows what you've tried so far.
<freezevee>
I set options = [one, two, three ...]
<freezevee>
then MyObject.new(*options)
<shevy>
so you already have options, an array
<shevy>
so you pass it
<shevy>
MyObject.new(options)
lxsameer has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
<freezevee>
shevy: I guess it's simple, right ?
slayerjain has joined #ruby
<freezevee>
it becomes options[0] etc. ?
yqt has joined #ruby
<freezevee>
so If I want to pass a hash, I should initially set options = { option1: "Abc", .... } and then use them in initialize as options[:option1]
jaredrhine has joined #ruby
tejasmanohar has joined #ruby
<freezevee>
is it that simple ?
<shevy>
I don't know what you are trying to do, but things are simple
banister has joined #ruby
<freezevee>
of course, we are in Ruby
<shevy>
in your example you pass an array
<freezevee>
I could have asked this in C# room
<shevy>
arrays allow [] access by default
<freezevee>
lol
<freezevee>
I got it
djbkd has quit [Remote host closed the connection]
atmosx_laptop has joined #ruby
<shevy>
you can check what you got via .is_a?
<freezevee>
sometimes you get frustrated, this is normal right ? forgive me please
<shevy>
or if you believe in duck sacrificing then .respond_to?
jenrzzz has quit [Ping timeout: 255 seconds]
<freezevee>
I got it, thanks ( I believe so )
<shevy>
\o/
<freezevee>
ruby is simple
<freezevee>
life is simple
<freezevee>
so ruby = life
RegulationD has joined #ruby
jenrzzz has joined #ruby
<tuxero>
hello
<freezevee>
sorry for the BS, just trying to make up a joke
<darix>
and then noticed the path in my download list in chromium
ducklobster has quit [Ping timeout: 240 seconds]
Jamo has quit [Ping timeout: 260 seconds]
Jamo has joined #ruby
<plubmus>
darix: coolio. that'll come in handy.
Uranio-235 has quit [Ping timeout: 246 seconds]
Pathfinder_ has quit [Ping timeout: 250 seconds]
bigmac_ has joined #ruby
Uranio-235_ has joined #ruby
<Uranio-235_>
rushed: I'm using AR (without rails) for connect to a MySQL database, but I need to do it readonly. Setting readonly: true in #establish_connection seems do not work
<darix>
Uranio-235_: enforce the readonly part at the DB permissions
<darix>
much better than trying to do it at the client side
leat has quit [Ping timeout: 260 seconds]
sferik has joined #ruby
leat has joined #ruby
<Uranio-235_>
:-/ ok... I have server side's control
<Uranio-235_>
sorry
<Uranio-235_>
have NOT server's side control
p0wn3d__ has joined #ruby
<darix>
do you control which queries you send?
<Uranio-235_>
yep...
<darix>
because if you only send select statements than you should be gold on the "Readonly" part
<Uranio-235_>
I just do not wanna modify my friend's database "by accident"
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
beast has quit [Quit: Leaving]
gustav_ has joined #ruby
deject3d has joined #ruby
p0wn3d__ has quit [Ping timeout: 240 seconds]
deject3d_ has joined #ruby
deject3d has quit [Read error: Connection reset by peer]
deject3d has joined #ruby
deject3d_ has quit [Read error: Connection reset by peer]
<yorickpeterse>
adaedra: hi
Xeago has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra>
:)
Ilyes512 has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uri_ has joined #ruby
mr_george has joined #ruby
jxv has quit [Ping timeout: 240 seconds]
s00pcan has joined #ruby
Xeago has joined #ruby
mary5030 has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostlines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
<mr_george>
I need to develop a simple web application in ruby where the user inputs simple queries, and gets a table fetched from a database, like a typical search engine, but for other kinds of data. Is there a framework or example of something like this I could use as a starting point?
tuxero has joined #ruby
michaeldeol has joined #ruby
<Uranio-235>
mr_george: Rails
<Uranio-235>
rails g scaffold for make tables
<Uranio-235>
and a controller for search
Uranio-235 has quit [Quit: Page closed]
radgeRayden has joined #ruby
Ilyes512 has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
bronson has joined #ruby
tomphp has joined #ruby
Jackneill has quit [Ping timeout: 260 seconds]
deject3d has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
s00pcan has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
ddarkpassenger has joined #ruby
tomphp has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 260 seconds]
Stalkr_ has quit [Excess Flood]
qixiaobin has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
Stalkr_ has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
kadoppe has quit [Ping timeout: 264 seconds]
kadoppe has joined #ruby
qixiaobin has quit [Ping timeout: 264 seconds]
loechel has quit [Ping timeout: 256 seconds]
crunk_bear has joined #ruby
crunk_bear has quit [Max SendQ exceeded]
weemsledeux has joined #ruby
weemsledeux has quit [Read error: Connection reset by peer]
platzhirsch has left #ruby [#ruby]
michaeldeol has joined #ruby
nettoweb has joined #ruby
Ilyes512_ has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
Ilyes512_ has quit [Read error: Connection reset by peer]
Ilyes512 has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
Ilyes512 has joined #ruby
deject3d has joined #ruby
Ilyes512 has quit [Read error: Connection reset by peer]
kirun has quit [Remote host closed the connection]