havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.2, 3.1.4, 3.0.6, 3.3.0-preview1: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
<johnjaye> weaksauce: in C i've learned the habit of always always always including the parens in a function call
<johnjaye> my guess is it has to do with the declaration syntax. like a pointer to function is *f()
<johnjaye> so the ruby syntax is what seems odd to me
CalculusCats has quit [Quit: Meow Meow Meow Meow Meow Meow Meow Meow]
CalculusCats has joined #ruby
<EvanR> yeah not putting parens on a function call in C is usually a disaster
<johnjaye> this confused me when i was reading about object methods in ruby
<johnjaye> because in java you can do object.f to get the field f in object object
<johnjaye> and of course object.f() to call the function f. but in ruby you sort of... define f to return @f
<johnjaye> so that way object.f isn't ambiguous
<EvanR> in which case, put object.f() anyway to confusing people, when f is just getting @f xD
<johnjaye> would people find that confusing lol
<johnjaye> i would think in ruby you would be used to a.b notation meaning a.b()
<EvanR> just saying I foo.bar makes me think of a field
<EvanR> foo.bar() makes me think it's doing something crazy
<johnjaye> i could just write foo.bar() everywhere in my code knowing that I can't be criticized or called out for it.
<johnjaye> because then I can say well ruby syntax is weird so it's not my fault
<EvanR> lol yeah except that goes against this style guide
<EvanR> a very complex style guide
<EvanR> thanks ruby
johnjaye has quit [Ping timeout: 240 seconds]
johnjaye has joined #ruby
<weaksauce> i think having everything being messages is elegant
John_Ivan has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 250 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
moldorcoder7 has quit [Ping timeout: 248 seconds]
caedmon has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
neshpion has quit [Ping timeout: 240 seconds]
caedmon has quit [Quit: caedmon]
caedmon has joined #ruby
caedmon has quit [Quit: caedmon]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 250 seconds]
caedmon has joined #ruby
<ox1eef_> I prefer to call functions with parenthesis, but every language has its own character and ruby is no different.
Vonter has quit [Quit: WeeChat 3.8]
EvanR has quit [Ping timeout: 250 seconds]
Vonter has joined #ruby
NightMonkey has quit [Quit: ZNC - http://znc.in]
NightMonkey has joined #ruby
caedmon has quit [Ping timeout: 240 seconds]
_ht has joined #ruby
Tempesta has quit [Quit: See ya!]
caedmon has joined #ruby
<johnjaye> i think i will grow to like ruby's spartan syntax
<johnjaye> whereas lisps is overflowing with parens, ruby gives them only to those who deserve them.
caedmon has quit [Ping timeout: 250 seconds]
jhass has quit [Ping timeout: 250 seconds]
jhass has joined #ruby
johnjaye has quit [Ping timeout: 250 seconds]
johnjaye has joined #ruby
infinityfye has joined #ruby
_ht has quit [Quit: _ht]
grenierm has joined #ruby
teclator has joined #ruby
entropie has quit [Ping timeout: 268 seconds]
entropie has joined #ruby
roadie has joined #ruby
TomyWork has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 250 seconds]
gr33n7007h has joined #ruby
Tempesta has joined #ruby
shokohsc1 has joined #ruby
shokohsc has quit [Ping timeout: 250 seconds]
shokohsc1 is now known as shokohsc
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
crespire1 has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
otisolsen70 has joined #ruby
BazzaBazaa has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grenierm has quit [Ping timeout: 245 seconds]
infinityfye has quit [Read error: Connection reset by peer]
infinityfye has joined #ruby
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #ruby
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
smp has joined #ruby
smp has quit [Client Quit]
smp has joined #ruby
BazzaBazaa has quit [Ping timeout: 245 seconds]
infinityfye has quit [Read error: Connection reset by peer]
BazzaBazaa has joined #ruby
BazzaBazaa has quit [Ping timeout: 245 seconds]
dviola has quit [Quit: WeeChat 3.8]
m_antis has joined #ruby
cek has joined #ruby
m_antis has quit [Ping timeout: 265 seconds]
Tempesta has quit [Quit: See ya!]
moldorcoder7 has joined #ruby
shokohsc6 has joined #ruby
shokohsc has quit [Ping timeout: 246 seconds]
shokohsc6 is now known as shokohsc
dviola has joined #ruby
nickjj has quit [Read error: Connection reset by peer]
nickjj has joined #ruby
Tempesta has joined #ruby
markong has joined #ruby
duderonomy has joined #ruby
roadie has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.91)]
matoro has quit [Ping timeout: 240 seconds]
lena64t has quit [Quit: WeeChat 4.0.0-dev]
polishdub has quit [Ping timeout: 240 seconds]
szkl has joined #ruby
matoro has joined #ruby
<mooff> isene: "Not when I'm sleeping" xD
polishdub has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
cata has joined #ruby
victori has quit [Ping timeout: 240 seconds]
victori has joined #ruby
<ox1eef_> johnjaye: Hahaha
<ox1eef_> Something like that I guess. :)
BazzaBazaa has joined #ruby
BazzaBazaa has quit [Remote host closed the connection]
markong has quit [Ping timeout: 240 seconds]
polishdub has quit [Quit: leaving]
<rapha> tried rails 7 today and also looked at the past upgrade guides and was pleasantly surprised. seems it is through all its teething problems now.
markong has joined #ruby
<adam12> rapha: It's a good safe default, other than the JS/CSS picture is still kinda muddy.
<adam12> If they dropped ActiveRecord for Sequel I'd move in a heartbeat.
<cata> What do you like about Sequel over ActiveRecord?
<mooff> sacrilege.. a core Rails gem not starting with "Action" or "Active"? :-)
<adam12> cata: It supports lots of great features via plugins, so there is no penalty to ship them but not use them (ie. class_table_inheritance, enum, tactile_eager_loading). It's generally kept at 0 open issues, and I _rarely_ run across a bug in Sequel over all of my projects (500k+ LOC). And perhaps my most favourite, is it's a SQL toolkit first (not an
<adam12> ORM), so breaking out of the ORM to do SQL safely is well supported.
<rapha> i also prefer Sequel just for how easily it can be used outside of web dev
<adam12> I performed a security audit on a Rails application a few months ago that did custom JOINs and it was full of SQLi. I almost never see SQLi on Sequel projects because it's expressive enough to never hit those sharp edges.
<cata> Very cool, thanks for sharing!
<rapha> how do you mean "murky" about CSS and about JS?
<adam12> Yes, it makes a great generic database for non-web projects too. `DB = Sequel.connect` gets you _really_ far.
<adam12> rapha: propshaft, jsbundling, cssbundling, webpacker (deprecated?), importmaps(gimped by no SRI?), vite_rails (external dep but maybe better?), etc. I'm happy they offer options because the frontend world is meh, but Rails was always convention over configuration. Which is the convention listed above? :\
<adam12> I'd rather just use esbuild for everything but it's not always possible, especially with postcss requirements (tailwind for me, usually).
<rapha> ah, so, the same problem as the whole javascript world
<adam12> Yep, pretty much. As long as I don't need Tailwind, esbuild works awesome.
<rapha> isn't the CSS convention, quite simply, SCSS, though?
<adam12> Which CSS? :P sassc, libsass, sass-dart? I have projects on all 3, iirc.
<adam12> Sprockets had it's quirks, but it was _awesome_ for keeping everything straight. It was my favourite asset pipeline for years.
<rapha> ah, true, just looked at the rails7 release blog post: "The same approach is taken with CSS bundlers that rely on Node. With Rails 7, all they need to be able to produce is a compiled application.css file, and they’ll integrate perfectly."
<adam12> If I can now, on new projects, esbuild + Unpoly (for my JS/SPA experience) + OpenProps (for my CSS variables) is the most I really want.
<mooff> sprockets was really something
<adam12> bbiaf lunch.
<rapha> all those JS build tools are giving me a headache anyways
<rapha> have a good one adam12
_ht has joined #ruby
TomyWork has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 240 seconds]
caedmon has joined #ruby
caedmon has quit [Client Quit]
caedmon has joined #ruby
otisolsen70_ has joined #ruby
otisolsen70 has quit [Ping timeout: 256 seconds]
caedmon has quit [Ping timeout: 250 seconds]
reset has quit [Quit: reset]
woodcu has joined #ruby
twenti8 has joined #ruby
woodcu has quit [Ping timeout: 265 seconds]
reset has joined #ruby
markong has quit [Ping timeout: 265 seconds]
caedmon has joined #ruby
rvalue has quit [Remote host closed the connection]
rvalue has joined #ruby
johnjaye has quit [Read error: Connection reset by peer]
johnjaye has joined #ruby
caedmon has quit [Ping timeout: 240 seconds]
kenichi has quit [Ping timeout: 240 seconds]
kenichi has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 240 seconds]
twenti8 has quit [Ping timeout: 265 seconds]
Al2O3 has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 240 seconds]
otisolsen70_ has quit [Quit: Leaving]
johnjaye has quit [Ping timeout: 240 seconds]
johnjaye has joined #ruby
_ht has quit [Quit: _ht]
johnjaye has quit [Ping timeout: 240 seconds]
factor has joined #ruby
tomtmym has quit [Quit: Gone.]
polishdub has joined #ruby
rvalue has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
dza has quit [Quit: ]
dza has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
legahc has quit [Quit: %bye%]
cnsvc has quit [Quit: %bye%]
legahc has joined #ruby
cnsvc has joined #ruby
dviola has quit [Ping timeout: 256 seconds]
dviola has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
dviola has quit [Changing host]
kenichi has quit [Changing host]
kenichi has joined #ruby
shokohsc2 has joined #ruby
shokohsc has quit [Ping timeout: 246 seconds]
shokohsc2 is now known as shokohsc
moldorcoder7 has quit [Ping timeout: 240 seconds]