havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
_phaul is now known as phaul
AJA4351 has joined #ruby
galaxie_ has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
bambanx has joined #ruby
ravenousmoose has joined #ruby
ElFerna has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
ravenousmoose has quit [Ping timeout: 252 seconds]
SanguineAnomaly has quit [Ping timeout: 240 seconds]
ElFerna has quit [Client Quit]
akemhp_ has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
cow[moo] has quit [Read error: Connection reset by peer]
leitz has quit [Quit: Leaving]
akemhp_ has quit [Ping timeout: 276 seconds]
davidw has quit [Ping timeout: 246 seconds]
poontangmessiah has quit [Remote host closed the connection]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
laudecay has joined #ruby
ravenousmoose has joined #ruby
SanguineAnomaly has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenousmoose has quit [Ping timeout: 252 seconds]
wildtrees has quit [Quit: Leaving]
ravenousmoose has joined #ruby
SanguineAnomaly has quit [Ping timeout: 276 seconds]
drincruz has joined #ruby
ravenousmoose has quit [Ping timeout: 250 seconds]
drincruz has quit [Ping timeout: 240 seconds]
skx86 has joined #ruby
SanguineAnomaly has joined #ruby
AJA4350 has quit [Quit: AJA4350]
drincruz has joined #ruby
cow[moo] has joined #ruby
MrCrackPotBob has joined #ruby
davidw has quit [Ping timeout: 240 seconds]
sdrew has quit [Quit: *poof*]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
laudecay has quit [Ping timeout: 240 seconds]
Axy has quit [Read error: Connection reset by peer]
cow[moo] has quit [Read error: Connection reset by peer]
imtravis has quit [Ping timeout: 240 seconds]
devops has joined #ruby
laudecay has joined #ruby
Intelo_ has joined #ruby
MrCrackPotBob has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
Intelo has quit [Ping timeout: 265 seconds]
hutch1 has joined #ruby
bambanx has quit [Quit: Leaving]
mynameisdebian has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
dangeranger has joined #ruby
xGrind has quit [Quit: Saindo]
dangeranger has quit [Client Quit]
duderonomy has joined #ruby
mynameisdebian has quit [Ping timeout: 245 seconds]
hutch1 has quit [Ping timeout: 276 seconds]
DaRock has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
alfiemax has joined #ruby
brool has quit [Ping timeout: 276 seconds]
stooj has quit [Ping timeout: 276 seconds]
chalkmonster has joined #ruby
spacesuitdiver has joined #ruby
roadt__ has joined #ruby
DaRock has quit [Quit: No Ping reply in 180 seconds.]
roadt_ has quit [Ping timeout: 246 seconds]
DaRock has joined #ruby
orbyt_ has joined #ruby
imtravis has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stooj has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
phaul_ has joined #ruby
phaul_ has quit [Ping timeout: 240 seconds]
brandoncc has joined #ruby
Omnilord has quit [Quit: Leaving]
gix- has joined #ruby
gix has quit [Disconnected by services]
alfiemax has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
_whitelogger has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
DaRock has quit [Ping timeout: 265 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
spacesuitdiver has joined #ruby
SanguineAnomaly has quit [Ping timeout: 265 seconds]
SanguineAnomaly has joined #ruby
hagebake is now known as hagabaka
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
gix- has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
Azure has joined #ruby
alfiemax has joined #ruby
imtravis has quit [Ping timeout: 276 seconds]
_whitelogger has joined #ruby
DaRock has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
bitwinery has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
lineus has quit [Ping timeout: 276 seconds]
_whitelogger has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
cxl has joined #ruby
SeepingN has joined #ruby
<cxl> Hi! I haven't written Ruby in a while but getting back into it. I love how I have vim setup to autoformat my code everytime I save JS/TS file. How can I achieve the same thing with Ruby? I have recently started using CoC if that makes a difference.
DaRock has quit [Ping timeout: 240 seconds]
Nahra has joined #ruby
ctp has quit [Ping timeout: 252 seconds]
ctp has joined #ruby
_whitelogger has joined #ruby
DaRock has joined #ruby
ffl^ has joined #ruby
rippa has joined #ruby
laudecay has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
cd has quit [Quit: cd]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
laudecay has joined #ruby
brandoncc has quit [Ping timeout: 250 seconds]
alfiemax has quit [Remote host closed the connection]
imtravis has joined #ruby
naftilos76 has joined #ruby
imtravis has quit [Ping timeout: 240 seconds]
<naftilos76> Hi everyone, i am trying to get a 2-threaded script to immitate a non-blocking keyboard input mechanism to work but there is obviously something about threads that i do not understand. Please see https://paste.ubuntu.com/p/dC7xM5q8ZX/
<naftilos76> I used Curses for a while and did not particularly like it because i wanted to use only the non-blocking keyboard input functionality but if i understood well i could not
<naftilos76> so the problem i have with the threads is the t1 locks after executing once
<naftilos76> not sure what is wrong
queip has quit [Ping timeout: 252 seconds]
<naftilos76> and also i want to ask you if the cv.signal line resumes execution of the t1 thread
jenrzzz has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
queip has joined #ruby
bvdw has joined #ruby
DaRock has quit [Ping timeout: 265 seconds]
DaRock has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
DaRock has quit [Ping timeout: 240 seconds]
DaRock has joined #ruby
mr-kumar3 is now known as mr-kumar
AJA4350 has joined #ruby
mr-kumar is now known as MrKumar
mynameisdebian has joined #ruby
MrKumar is now known as mr-kumar
jenrzzz has joined #ruby
laudecay has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
mynameisdebian has quit [Read error: Connection reset by peer]
mynameisdebian has joined #ruby
solars has joined #ruby
imtravis has joined #ruby
FastJack has quit [Ping timeout: 264 seconds]
ravenousmoose has joined #ruby
imtravis has quit [Ping timeout: 240 seconds]
tsujp has quit [Quit: Textual IRC Client: www.textualapp.com]
FastJack has joined #ruby
dmitrycy[m] has quit [Quit: User has been idle for 30+ days.]
akemhp has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
NL3limin4t0r has quit [Ping timeout: 240 seconds]
NL3limin4t0r has joined #ruby
imtravis has joined #ruby
akemhp_ has joined #ruby
akem__ has joined #ruby
akemhp has quit [Ping timeout: 252 seconds]
akemhp_ has quit [Ping timeout: 276 seconds]
Fernando-Basso has joined #ruby
claudiuinberlin has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
naftilos76 has quit [Remote host closed the connection]
naftilos76 has joined #ruby
roadt__ has quit [Ping timeout: 265 seconds]
lineus has joined #ruby
rippa has quit [Ping timeout: 276 seconds]
d0liver has quit [Ping timeout: 245 seconds]
d0liver has joined #ruby
naftilos76 has quit [Quit: Leaving]
queip has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
ghostlines has joined #ruby
Nahra has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 250 seconds]
queip has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul> to naftilos76 if they come back ... https://gist.github.com/phaul/2b2166c913452f010b1513a8165ab287
gix has joined #ruby
skx86 has joined #ruby
sandstrom has joined #ruby
DaRock has quit [Ping timeout: 240 seconds]
ffl^ has quit []
akemhp has joined #ruby
golevka has joined #ruby
mynameisdebian has quit [Read error: Connection reset by peer]
akem__ has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
XXOOXX has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
lucasb has joined #ruby
XXOOXX has quit [Quit: Mutter: www.mutterirc.com]
poontangmessiah has joined #ruby
Intelo_ has quit [Quit: Leaving]
XXOOXX has joined #ruby
Intelo has joined #ruby
XXOOXX has quit [Remote host closed the connection]
dbugger has joined #ruby
harai has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
golevka has quit [Read error: Connection reset by peer]
rippa has joined #ruby
claudiuinberlin has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
drincruz has joined #ruby
bkuhlmann has joined #ruby
jenrzzz has joined #ruby
dbugger has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 265 seconds]
phaul_ has joined #ruby
lupine has quit [Quit: lupine]
imtravis has quit [Ping timeout: 240 seconds]
galaxie_ has quit [Quit: galaxie_]
phaul_ has quit [Ping timeout: 250 seconds]
galaxie has joined #ruby
imtravis has joined #ruby
nowhere_man has joined #ruby
jinkgo5 has joined #ruby
<jinkgo5> Hi, I'm a complete newbie to ruby and programming in general. I'm wondering what are the best books/resources to learn from scratch that are still relevant in 2019?
<havenwood> jinkgo5: Learn to Program by Chris Pine is often recommended: https://pine.fm/LearnToProgram/
<havenwood> jinkgo5: I don't think it's outdated, since the basics have stayed the same.
<havenwood> jinkgo5: Welcome to Ruby!!
<havenwood> jinkgo5: Here are some other learning Ruby books: https://gist.github.com/baweaver/57a7c8296ca2c03effbd8fac1e7f6b40#learning-ruby
<havenwood> jinkgo5: And links here: https://ruby-community.com/pages/links
<jinkgo5> Thanks for the response - will look into those now :)
<havenwood> jinkgo5: Let us know if you run into any questions or want a code review.
<jinkgo5> @havenwood will do
jinkgo5 has quit [Remote host closed the connection]
tankf33der has left #ruby [#ruby]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v3.7 Beta Build (2019/11/15 UTC) 64 Bit]
Tempesta has joined #ruby
tpanarch1st_ has joined #ruby
wnd has quit [Quit: Caught sigterm, terminating...]
<havenwood> phaul: (and naftilos76 if they come back) a socketry/async version: https://gist.github.com/havenwood/119e16d7728cb00306739137b30d75a9
<phaul> hi havenwood , nice
nowhereman has joined #ruby
nowhere_man has quit [Ping timeout: 276 seconds]
xGrind has joined #ruby
spacesuitdiver has joined #ruby
harai has quit [Ping timeout: 260 seconds]
suukim has joined #ruby
jenrzzz has joined #ruby
drincruz has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
Nahra has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
spacesuitdiver has joined #ruby
alfiemax has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 240 seconds]
skx86 has quit [Quit: Connection closed for inactivity]
Inline has quit [Remote host closed the connection]
Inline has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
hutch1 has joined #ruby
sandstrom has quit [Ping timeout: 276 seconds]
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
hutch1 has quit [Ping timeout: 252 seconds]
nowhereman has quit [Ping timeout: 252 seconds]
hutch1 has joined #ruby
bkuhlmann has quit []
morozovm has joined #ruby
spacesuitdiver has quit [Read error: Connection reset by peer]
spacesuitdiver has joined #ruby
<Intelo> havenwood, did you got any clues or interests?
<havenwood> Intelo: hrm?
morozovm has quit []
<Intelo> havenwood, the rails tld thing
<Intelo> havenwood, it works for me but curious
<Intelo> havenwood, you said you also wanted to know
AJA4351 has joined #ruby
<havenwood> Intelo: Ah, I didn't ever look at the implementation. You did get your issue sorted? Did you end up agreeing with how I saw it or you found I wasn't correct?
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
TvL2386_ has joined #ruby
TvL2386 has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
hutch2 has joined #ruby
<Intelo> havenwood, the link I posted you claim contrary to your understanding and also results confirm that (some how..). I sorted it out in the way I told that day. But am curious on details/reason
hutch1 has quit [Ping timeout: 240 seconds]
<Intelo> its just blind implementation solution
cow[moo] has joined #ruby
hutch2 has quit [Ping timeout: 246 seconds]
spacesuitdiver has quit [Read error: Connection reset by peer]
spacesuitdiver has joined #ruby
yann-kaelig has joined #ruby
alfiemax has joined #ruby
alfiemax_ has joined #ruby
wildtrees has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
al2o3-cr has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
inkvar has joined #ruby
poontangmessiah has quit [Read error: Connection reset by peer]
AJA4351 has joined #ruby
alfiemax_ has quit [Ping timeout: 265 seconds]
poontangmessiah has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
Nahra has quit [Ping timeout: 265 seconds]
Thyla has joined #ruby
yann-kaelig has quit [Quit: yann-kaelig]
brandoncc has joined #ruby
inkvar has quit [Quit: Textual IRC Client: www.textualapp.com]
imtravis has quit [Ping timeout: 265 seconds]
ropeney has quit [Ping timeout: 265 seconds]
dionysus69 has joined #ruby
jenrzzz has joined #ruby
dasher00 has joined #ruby
ropeney has joined #ruby
hiroaki has joined #ruby
cow[moo] has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
claudiuinberlin has joined #ruby
solars has quit [Quit: Connection closed for inactivity]
al2o3-cr has joined #ruby
poontangmessiah has quit [Remote host closed the connection]
wildtrees has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
tsujp has joined #ruby
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tsujp has quit [Remote host closed the connection]
Inline has quit [Remote host closed the connection]
devops has quit [Ping timeout: 250 seconds]
Inline has joined #ruby
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
Inline has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 246 seconds]
brool has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
Inline has joined #ruby
yann-kaelig has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yann-kaelig has quit [Quit: yann-kaelig]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghostlines has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
queip has quit [Ping timeout: 265 seconds]
queip has joined #ruby
tsrt^ has joined #ruby
imtravis has joined #ruby
akemhp has joined #ruby
imtravis has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
drincruz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
akemhp_ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
akemhp has quit [Ping timeout: 250 seconds]
ropeney has quit [Ping timeout: 240 seconds]
Nicmavr has joined #ruby
Exuma has joined #ruby
drincruz has quit [Ping timeout: 252 seconds]
cd has joined #ruby
NODE has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
suukim has quit [Quit: Konversation terminated!]
orbyt_ has joined #ruby
drincruz has joined #ruby
ogres has joined #ruby
NODE has left #ruby [#ruby]
imtravis has joined #ruby
sammi`_ has quit [Read error: Connection reset by peer]
sammi` has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
wnd has joined #ruby
NODE has joined #ruby
code_zombie has joined #ruby
bvdw has quit [Quit: bvdw]
yann-kaelig has joined #ruby
bvdw has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imtravis has quit [Ping timeout: 276 seconds]
yann-kaelig has quit [Client Quit]
poontangmessiah has joined #ruby
al2o3-cr has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
ghostlines has joined #ruby
hutch2 has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exuma has joined #ruby
queip has quit [Ping timeout: 252 seconds]
Thyla has quit [Ping timeout: 240 seconds]
queip has joined #ruby
bitwinery has joined #ruby
bitwinery has quit [Remote host closed the connection]
bitwinery has joined #ruby
xGrind has quit [Quit: Saindo]
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Joush has joined #ruby
DaRock has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax_ has joined #ruby
AJA4350 has joined #ruby
imtravis has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
akem__ has joined #ruby
wildtrees has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
alfiemax_ has quit [Remote host closed the connection]
Nahra has joined #ruby
Intelo has quit [Remote host closed the connection]
Intelo has joined #ruby
Sina has quit [Quit: Connection closed for inactivity]
Frobozz has joined #ruby
xGrind has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
redlegion6 has quit [Remote host closed the connection]
AJA4351 has joined #ruby
hutch2 has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
akem__ has quit [Ping timeout: 250 seconds]
Swyper has joined #ruby
<Swyper> hi
Swyper_ has joined #ruby
akemhp has joined #ruby
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SanguineAnomaly has quit [Ping timeout: 240 seconds]
<havenwood> o/
<bougyman> \o
<bougyman> ✋
<bougyman> havenwood: are you pro or anti emoji on irc?
<havenwood> bougyman: 🥇
<bougyman> havenwood: :)
<bougyman> Me, too.
<bougyman> I was against them before I was for them.
<bougyman> Probably because linux terminals sucked at them.
<bougyman> But I went to macos for a while and they were very well supported. Got back on linux as a daily driver in April and finally got full support for them in my terminal.
<bougyman> had to write https://github.com/rubyists/remoji to get the integration I wanted.
SanguineAnomaly has joined #ruby
<havenwood> bougyman: I did a silly, quick emoji gem seven (geesh, 7) years ago: https://github.com/havenwood/emojis/blob/master/lib/emojis.rb#L724-L738
<havenwood> dunno why i cut ^ that gem at all ¯\_(ツ)_/¯
<havenwood> &>> [9973].pack('U')
<rubydoc> # => "⛵" (https://carc.in/#/r/8149)
<havenwood> I guess just to remind myself of that ^
<Swyper> that's cool
<bougyman> yeah I just didn't want to memorize codes.
<bougyman> I wrote it mostly for the lookup.
claudiuinberlin has joined #ruby
Esa_ has joined #ruby
<bougyman> and to test my terminal/client: http://bougyman.voidlinux.com/misc/remoji.png :)
SanguineAnomaly has quit [Ping timeout: 240 seconds]
<bougyman> Still haven't found the font that gives me the flags.
<havenwood> bougyman: nice
SanguineAnomaly has joined #ruby
skx86 has joined #ruby
SanguineAnomaly has quit [Ping timeout: 240 seconds]
<Swyper> hi
<havenwood> o/
<havenwood> Swyper: this is the conventional way to make a Rack app: https://github.com/luislavena/bench-micro/blob/master/apps/rack.ru
<havenwood> Swyper: note, `env` is the Hash with all the info from the Request.
<havenwood> also, the routing is fugly.
<havenwood> one of the things most Rack adapters (frameworks) add is routing. see these Hello, World examples: https://github.com/luislavena/bench-micro/tree/master/apps
<havenwood> dunno why lavena uses the intermediary constant? ¯\_(ツ)_/¯
SanguineAnomaly has joined #ruby
<havenwood> Normally in roda you just: run App.freeze.app
<havenwood> in that ^ code: run HelloWorld.freeze.app
akemhp_ has joined #ruby
<havenwood> Swyper: I think it's worth playing with the basics of Rack or Plug before you dive deep into Rails or Phoenix — whether you use Ruby or Elixir.
<Swyper> fair
<havenwood> (Or insert microframework and framework from language here.)
<havenwood> The microframeworks tend to be super easy comparatively to grok, understand your whole app, etc.
<havenwood> Especially ones like Roda, which only add functionality optionally via plugin.
<havenwood> Swyper: Also, Rack or Roda apps use less memory and serve responses faster — so you may use them for reasons other than simplicity.
akemhp has quit [Ping timeout: 276 seconds]
SanguineAnomaly has quit [Ping timeout: 240 seconds]
<havenwood> Swyper: Here's Elixir's plug, for comparison: https://hexdocs.pm/plug/readme.html
SanguineAnomaly has joined #ruby
akemhp_ has quit [Ping timeout: 276 seconds]
akemhp has joined #ruby
lghtstkr has joined #ruby
<Swyper_> havenwood:
<Swyper_> also whats the difference between .ru and .rb files o-o
<havenwood> Swyper_: A .rb file is a typical Ruby file. The only .ru file is usually a config.ru, which is a "rackup" file ("r"ack "u"p).
lightstalker has quit [Ping timeout: 276 seconds]
<Swyper> oh I see
AJA4351 has joined #ruby
Swyper_ has quit []
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<Swyper> elixer's syntax looks alot like Rubys
<bougyman> It is a ton like ruby's
<Swyper> awesome sauce
<bougyman> havenwood: +1 on the roda.
<Swyper> now I'll be even more sad if I don't get this job @ pagerduty -_- they use elixer on the backend
<bougyman> It's pretty much all I use, unless there's a performance need. Then it's rust.
<bougyman> I mean, for any api stuff. I don't do web web stuff.
<bougyman> actix-web on rust and roda for ruby.
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Swyper> tbh I can't make a simple crud web app, so I feel like I am drowning in information and half learning lots of stuff
<Swyper> kind of stuck in tutorial hell
<Swyper> like I know html, js, css, java, c# ruby (kinda) OOP, sql but just not how to tie everything together