<adam12>
apotheon: I'm not sure tbh. I don't write Rails anymore, tho the old Rails bone in my body says it will.
<apotheon>
vlouvet: Have you ever built anything with Flask?
<apotheon>
(in Python)
<apotheon>
adam12: It could be false instead of nil.
<vlouvet>
apotheon, yes.. a few different things.
<apotheon>
vlouvet: Rewrite them, or write things like them, using Sinatra.
<apotheon>
Then, after that, try it with Roda.
<apotheon>
That might be a way to ease into it.
<apotheon>
Flask is basically someone's idea of a port of Sinatra to Python.
<vlouvet>
are those two alternatives to RoR or do they do something at a different level?
<apotheon>
Sinatra is about as much like Rails and Flask is like Django.
<vlouvet>
I assumed that rails was the analog to Python's flask (or django more appropriately)
<apotheon>
It's more like a small set of assumptions plus a domain-specific language on top of an application router, rather than full-blown "rich" MVC framework like Rails.
<vlouvet>
ahh ok, I understand
<apotheon>
Like I said, Sinatra is about as much like Rails as Flask is like Django.
<vlouvet>
if one were to build a webapp using sinatra as the backend.. is there a recommended "responsive javascript frontend framework" to use? (vue,etc.)
<apotheon>
Rails and Django are *huge*, sophisticated things full of moving parts that do a lot of heavy lifting for you but require you to take specific approaches to things to avoid incurring a lot of extra work.
ur5us has quit [Ping timeout: 260 seconds]
<apotheon>
Sinatra and Flask are very minimal things that provide some convenience for the basics and allow you to build the rest however you feel like doing it, at the cost of having to make all those decisions yourself.
<apotheon>
Also, Django is *really* not very forgiving, in my experience.
<apotheon>
Rails is too full of magic. Django is too full of thumbscrews.
<vlouvet>
apotheon, yeah I hear where you're coming from. I've heard that about rails - the framework makes decisions and holds opinions where other frameworks allow more freedom (and require more work because of that)
<howdoi>
:)
tpanarch1st has quit [Ping timeout: 256 seconds]
<vlouvet>
ruby (like python) is an interpreted language.. but does it have a gobal intepreter lock like python has? I guess I'm asking "does ruby allow for easy parallel processing" or go be a better option if multiprocessing is a requirement
<apotheon>
vlouvet: Once you get used to Rails a little (and it doesn't take long), it tends to Just Do What You Expect most of the time. Once in a while, you run into something where it's maddeningly difficult to figure out how to do what you really did want, though, because with all the magic inside it somehow came to a different end point than where you wanted to be, so you have to figure out how to
<apotheon>
work out the weirdness.
<vlouvet>
thanks, I appreciate the insight about Rails
<apotheon>
vlouvet: With Django, you basically just have to memorize all the things it expects of you, and adhere strictly to that approach, or it punishes you for diverging, but you don't tend to run into the problem of magic so much.
<apotheon>
thus, magic vs. thumbscrews
tpanarch1st has joined #ruby
<apotheon>
The Sinatra/Flask way of doing things involves a lot more freedom for your preferred approach, which comes with added responsibility and, if you don't take that responsibility seriously, possibly a lot of trouble down the road with working around your own early mistakes.
<apotheon>
For that reason, it tends to be more popular for simpler projects, because it's much easier to rework the structure of your application if it wasn't that big in the first place.
<apotheon>
tpanarch1st: Is that "T Panarchist" or "TP Anarchist"?
<apotheon>
(or something else)
<apotheon>
vlouvet: Anyway, do you think the Flask -> Sinatra path might be the kind of thing you want?
<apotheon>
vlouvet: Another approach might be to rewrite Unix userland utilities in Ruby, perhaps using explicitly OOP-based code structure, or writing admin tools for your own purposes similarly. You could also try building weird toy stuff like an implementation of Conway's Game Of Life.
<vlouvet>
apotheon, yes... although I'd like to stand up a rails server just to say I did it. and because eventually it might come in handy at work. If I did launch any side projects Rails feels like it would be overkill, and using it I don't know if I'd learn as much about the "plumbing"
<apotheon>
vlouvet: . . . and if you just want to do webdev with Rails you could jump into the official Rails tutorials to get started.
<apotheon>
If you want to "stand up a Rails [application] just to say you did it" I'd say you should go start with the official Rails tutorials.
<apotheon>
guides.rubyonrails.org/getting_started.html if I don't misremember
ur5us has joined #ruby
TCZ has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apotheon>
My biggest disappointment with the rails guides last I checked was the complete lack of any nod to testing.
<apotheon>
I mean, sure, testing isn't a rails thing per se, but then again neither is using an ORM, and Rails *does* offer fairly standard ways to set up testing just as it does for building models with ActiveRecord.
<rubydoc>
stderr: -e:4:in `block in <main>': stack level too deep (SystemStackError)... check link for more (https://carc.in/#/r/8v5n)
vlouvet has joined #ruby
arahael has joined #ruby
xco has joined #ruby
TCZ has quit [Quit: Leaving]
cisco has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
kinduff has quit [Quit: gg]
caterfxo has quit [Ping timeout: 264 seconds]
kinduff has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pisculic1i has joined #ruby
pisculic1i is now known as piculichi
xco has joined #ruby
pandakekok9 has joined #ruby
tpanarch1st has quit [Ping timeout: 264 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
cliluw has quit [Ping timeout: 256 seconds]
ferche23 has joined #ruby
ferche23 has quit [Max SendQ exceeded]
ferche23 has joined #ruby
ferche23 has quit [Max SendQ exceeded]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ChmEarl has quit [Quit: Leaving]
connermcd has joined #ruby
cisco has quit [Ping timeout: 258 seconds]
cthulchu_ has quit [Ping timeout: 265 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sauvin has joined #ruby
connermcd has quit [Quit: WeeChat 2.8]
rcvalle_ has joined #ruby
sergioro has quit [Quit: leaving]
rcvalle has quit [Ping timeout: 260 seconds]
nullus has joined #ruby
ikbenhet has joined #ruby
ikbenhet has quit [Client Quit]
ikbenhet has joined #ruby
miskatonic has joined #ruby
ikbenhet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ikbenhet has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
giorgian has joined #ruby
ur5us has joined #ruby
ikbenhet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ikbenhet has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
Nahra has joined #ruby
chalkmonster has joined #ruby
cd has quit [Quit: cd]
schne1der has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
joast has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
miskatonic has joined #ruby
miskatonic has quit [Client Quit]
ur5us has quit [Ping timeout: 260 seconds]
xco has joined #ruby
Emmanuel_Chanel has joined #ruby
conta has joined #ruby
conta has quit [Quit: conta]
jinie_ has joined #ruby
jinie has quit [Ping timeout: 256 seconds]
jinie_ is now known as jinie
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
xco has joined #ruby
nabou has joined #ruby
<nabou>
Hello, I have no idea how this works. First time here
Nahra has quit [Quit: leaving]
<xco>
nabou welcome. it's just like facebook messenger, you type, we see, we talk :D
<xco>
easy
TvL2386 has joined #ruby
<nabou>
great, this is for Ruby, right?
<xco>
nabou you can talk about anything you want but you're likely to get an answer if you talk about Ruby though
gix has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
giorgian has quit [Ping timeout: 264 seconds]
MrCrackPot has joined #ruby
TCZ has joined #ruby
rcvalle has joined #ruby
rcvalle_ has quit [Ping timeout: 260 seconds]
davor has quit [Ping timeout: 250 seconds]
davor has joined #ruby
shansen has quit [Quit: ZNC 1.7.4+deb0+bionic0 - https://znc.in]
giorgian has joined #ruby
giorgian has quit [Read error: Connection reset by peer]
giorgian has joined #ruby
shansen has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
giorgian has quit [Ping timeout: 256 seconds]
giorgian has joined #ruby
cek has joined #ruby
crisfm has joined #ruby
tpanarch1st has joined #ruby
ellcs has joined #ruby
drincruz has quit [Quit: WeeChat 2.6]
<TCZ>
: /
burningserenity has joined #ruby
TCZ has quit [Quit: Leaving]
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
TCZ has joined #ruby
nabou has quit [Quit: Leaving]
TomyWork has joined #ruby
yxhuvud has quit [Remote host closed the connection]
TomyWork has quit [Remote host closed the connection]
<TCZ>
ror application -> doesnt work 99999999 errors, wrong yarn bundler ruby webpack versions, sinatra -> 999 warnings but works
Emmanuel_Chanel has joined #ruby
<TCZ>
they silenced me on programming because i called someone idiot
zapata has quit [Quit: WeeChat 2.8]
mwlang has joined #ruby
caterfxo has joined #ruby
<tpanarch1st>
apotheon: thought police anarchist - Orwell 1984
<apotheon>
ah
<apotheon>
nice
<mwlang>
when authoring a gem, what goes in the Gemfile vs. what goes in the .gemspec file? Or maybe more narrowly, should I add development dependencies to the Gemfile or to the gemspec with `add_development_dependency`? Right now, all that’s in my Gemfile is the source line for rubygems and `gemspec`
<mwlang>
using a minimal Gemfile has worked fine for many years, but now I’m planning to break a monolithic gem out into several smaller gems, one core gem and many multiple “plugin” gems, so I’m taking the time now to weigh whether I should also break up the gemspec more.
tankf33der has left #ruby [#ruby]
<Ool>
Hi, Which port (tcp or udp) use gem to install something ? please.
<mwlang>
Ool: pretty sure its TCP and port will depend on scheme of your source line (i.e. http => 80, https => 443)
<mwlang>
“source line” meaning the lines in your Gemfile that start with “source”
cek has left #ruby [#ruby]
<giorgian>
mwlang: I would suggest to keep Gemfile as it is