<codenihal>
No, I'm past all of that, I just wanted someone experienced to have a chat with me. Tell me some stuff about Dev. Are you kinda free for a few moments, jass
<codenihal>
jhass
<jhass>
doing that in a query is pointless
<jhass>
just ask your questions openly and let anybody who wants to chime in do that
<jhass>
and trust me, those who have time will
djbkd has quit [Remote host closed the connection]
symm- has joined #ruby-lang
dagda1 has quit [Client Quit]
<red_menace>
...just stick around this time
<codenihal>
Alright, I'm new from PHP and Laravel. and love ruby. What do you think would be best? Write Ruby, Become really good at it and release a few gems ,adn then dig into rails. Or just start with rails, after covering basic ruby
<jhass>
whatever motivates you most
<jhass>
if you got the basic syntax, it's really about motivation
dagda1 has joined #ruby-lang
joaomdmoura has joined #ruby-lang
<jhass>
if you have a concrete project you'd like to do, then do it
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
learn what you need as you encounter it
<codenihal>
jhass: Would i be intrinsically better at Rails after learning Ruby
<codenihal>
?
<havenwood>
codenihal: Would you be better at Laravel after learning PHP?
<jhass>
people manage to do rails without really understanding ruby, but it helps a lot in my experience
<jhass>
so again, if you're no longer stomped on "how do I iterate an array" or "how do I write a class", jump straight into something you really want to do
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
<jhass>
you can totally get better at two things at the same thing, especially if they are basically the same
<jhass>
er, at the same time
andreiamlm has joined #ruby-lang
lucas has quit [Ping timeout: 244 seconds]
lucas has joined #ruby-lang
chadwtaylor has joined #ruby-lang
andreiamlm has quit [Quit: Page closed]
j4cknewt has quit [Remote host closed the connection]
relix has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has quit [Ping timeout: 255 seconds]
tohsig has quit [Ping timeout: 246 seconds]
stardiviner has joined #ruby-lang
chadwtaylor has quit [Ping timeout: 256 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1 has joined #ruby-lang
ljarvis has quit [Ping timeout: 244 seconds]
ljarvis has joined #ruby-lang
<codenihal>
havenwood: Probably, But, Laravel is revelation as PHP is used to dev web as of itself. Ruby is an entirely diff deal
clauswitt_ has quit [Ping timeout: 244 seconds]
gwendall has quit [Remote host closed the connection]
<codenihal>
jhass: Whats the diff between foo: bar and foo :bar
<codenihal>
Whats the Ruby lang construct there
<jhass>
foo: bar is an implicit hash, {:foo => bar}
<codenihal>
I dont understand that and that probably also gives you an idea of where i am at my Ruby Learning. I use gems a lot though
<jhass>
foo :bar is calling the method foo, passing the symbol :bar as argument
<jhass>
foo(:bar)
<codenihal>
What do you mean by 'symbol'
<jhass>
:bar is a symbol
<jhass>
it's a value, like a string, number, array, hash
<codenihal>
Why not just call it that? Whats diff about a symbol
<jhass>
the difference is that they are always the same object and represented internally in a very efficient manner
<codenihal>
jhass: Like, a Singleton?
<jhass>
so ["foo", "foo"] will create two string objects
<jhass>
[:foo, :foo] is just two times the same symbol object
<jhass>
sort of
<codenihal>
Alright, Alright. I'm probably way over my head here, so Could you reccomend a few books for Ruby and Rails. Seperate - Prefereably
<jhass>
their usecase is as identifying value
clauswitt has joined #ruby-lang
<jhass>
didn't learn ruby through a book, for rails I got the rails 3 way of which a version for rails 4 should exist by now. The more commonly recommended Rails book is Rails 4 in action though
j4cknewt has joined #ruby-lang
<codenihal>
What about the Michael Hartl tut?
<jhass>
in the end, whatever suits you
<codenihal>
Alright , a Resource then for learning ruby - ADVANCED
<ttilley>
up until recently, the uniqueness guarentee for symbols made them a potential memory leak as they were never garbage collected (if your code converts from strings to symbols for any reason). in 2.2.x symbols are now garbage collected and not necessarily always exactly the same value at all times during runtime. *plays "the more you know" sound*
<codenihal>
ttilley: Thanks for that
<jhass>
well, as something is referencing one, it is
<jhass>
*as long as*
j4cknewt has quit [Remote host closed the connection]
<jhass>
if you do store the .hash or .object_id of a symbol somewhere on your own, you kind of deserve the pain :P
<ttilley>
i could say that about a number of ruby features :p
<jhass>
sure
<ttilley>
lol
<jhass>
ruby is a very liberal languages, many ways to shoot yourself
codenihal has quit []
<jhass>
it's the double edged sword that makes it so powerful
<jhass>
you can create the mess if you really have to and know you can deal with it
Miphix has quit [Quit: Leaving]
apt-get__ has joined #ruby-lang
apt-get_ has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
stef204 has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 272 seconds]
ghostpl_ has joined #ruby-lang
jww42 has quit [Remote host closed the connection]
stamina has joined #ruby-lang
Miphix has joined #ruby-lang
<centrx>
*ruby-encrusted sword
<jhass>
it's shiny!
ghostpl_ has quit [Ping timeout: 264 seconds]
SuMo_D has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
joaomdmoura has quit [Remote host closed the connection]
joaomdmoura has joined #ruby-lang
stamina has quit [Ping timeout: 252 seconds]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
ayonkhan has quit [Remote host closed the connection]
ghostpl_ has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
joaomdmoura has joined #ruby-lang
chadwtaylor has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
ghostpl_ has quit [Ping timeout: 246 seconds]
arBmind has joined #ruby-lang
shinnya has joined #ruby-lang
chadwtaylor has quit [Ping timeout: 265 seconds]
ttilley has quit [Quit: Leaving...]
centrx has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
stamina has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1 has joined #ruby-lang
apt-get_ has joined #ruby-lang
apt-get__ has quit [Ping timeout: 264 seconds]
vitkovsky has joined #ruby-lang
vitkovsky has quit [Remote host closed the connection]
scottschecter has joined #ruby-lang
cornerma1 has joined #ruby-lang
futilegames_ has joined #ruby-lang
futilegames has quit [Ping timeout: 255 seconds]
futilegames_ is now known as futilegames
cornerman has quit [Ping timeout: 245 seconds]
cornerma1 is now known as cornerman
trajing|Mobile has joined #ruby-lang
trajing|Mobile has quit [Read error: Connection reset by peer]
tvon has quit [Ping timeout: 264 seconds]
nathanst_ has quit [Quit: I growing sleepy]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
ruby-lang932 has joined #ruby-lang
scottschecter has quit [Quit: Leaving]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
ruby-lang932 has quit [Ping timeout: 246 seconds]
gwendall has joined #ruby-lang
yfeldblum has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
dagda1 has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby-lang
centrx has joined #ruby-lang
joaomdmoura has joined #ruby-lang
dagda1 has joined #ruby-lang
trajing|Mobile has joined #ruby-lang
trajing|Mobile has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
crdpink2 has joined #ruby-lang
crdpink has quit [Ping timeout: 265 seconds]
trajing|Mobile has joined #ruby-lang
gwendall has joined #ruby-lang
ghostpl_ has joined #ruby-lang
kniarzyn has joined #ruby-lang
mberk has quit [Remote host closed the connection]
SuMo_D has quit [Remote host closed the connection]
nathanstitt has quit [Client Quit]
apt-get_ has quit [Ping timeout: 272 seconds]
joaomdmoura has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
trajing|Mobile has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
sankaber has joined #ruby-lang
SuMo_D has quit [Ping timeout: 265 seconds]
martinbmadsen has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Read error: Connection reset by peer]
toretore has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
t0rrieri has joined #ruby-lang
Torrieri has quit [Ping timeout: 245 seconds]
riotjone_ has joined #ruby-lang
sondr3 has joined #ruby-lang
riotjon__ has quit [Ping timeout: 252 seconds]
malconis has joined #ruby-lang
mberk has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1 has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mberk has quit [Remote host closed the connection]
ta has joined #ruby-lang
|jemc| has quit [Ping timeout: 244 seconds]
dellavg_ has quit [Ping timeout: 264 seconds]
pwnz0r has quit [Remote host closed the connection]
mrod has joined #ruby-lang
fusillicode has quit [Ping timeout: 245 seconds]
pwnz0r has joined #ruby-lang
pwnz0r has quit [Ping timeout: 265 seconds]
ta has quit [Ping timeout: 265 seconds]
relix has joined #ruby-lang
jww42 has quit [Ping timeout: 252 seconds]
ta has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
sc00t has quit [Ping timeout: 272 seconds]
<mrod>
I'm connecting to a websocket stream that's sending JSON objects. Each object has an incrementing serial number. It's possible that a message could be dropped and it's possible that messages could arrive out of order. I imagine this problem has been solved before. I want to be able to take action if a message is lost, but not if it merely arrives out of order.
apeiros_ has joined #ruby-lang
<jhass>
you will need to define a threshold at which you consider a message lost, either by time, number of received messages since or a combination
banister has joined #ruby-lang
amystephe has joined #ruby-lang
<jhass>
the other option would be to let the server acknowledge received messages
yfeldblum has joined #ruby-lang
<jhass>
if the client doesn't receive an ack, he can either retransmit or inform the server about a lost message
<jhass>
which obviously will fail again if there's high loss
<jhass>
so you gonna need a threshold at which to give up too
mberk has joined #ruby-lang
amystephen has quit [Ping timeout: 255 seconds]
<mrod>
jhass: Thanks, I have no control over the server so I guess i'll set up some sort of timer for lost messages
_1_chopi4453 has quit [Remote host closed the connection]
<jhass>
interesting
<jhass>
what do they hope to gain by that?
<centrx>
He's going to heist this golf course!
nathanstitt has quit [Quit: I growing sleepy]
<centrx>
oh wait that isn't a golf course
<centrx>
What planet is this, there's a city called "Esmerelda"
<jhass>
shit, I forgot the name of that game that drops you into street view and you need to find out where you are, but I want to play it again now :/
nofxx has quit [Ping timeout: 245 seconds]
<jhass>
geoguessr!
nathanstitt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
martinbmadsen has quit [Ping timeout: 256 seconds]
apt-get__ has quit [Remote host closed the connection]
arBmind1 has joined #ruby-lang
sondr3 has quit [Quit: Ich bin ein sleep.]
mberk has quit [Remote host closed the connection]
arBmind has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: Shutting down, Please wait...]