havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview1: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
xuochi has quit [Read error: Connection reset by peer]
xuochi has joined #ruby
kaivai has quit [Ping timeout: 248 seconds]
kaivai has joined #ruby
konsolebox has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
konsolebox has quit [Ping timeout: 245 seconds]
hexology has quit [Quit: hex on you ...]
gr33n7007h has quit [Quit: WeeChat 4.0.2]
gr33n7007h has joined #ruby
gr33n7007h has quit [Quit: WeeChat 4.0.3]
gr33n7007h has joined #ruby
Vonter has joined #ruby
gr33n7007h has quit [Client Quit]
gr33n7007h has joined #ruby
John_Ivan has quit [Ping timeout: 248 seconds]
some14u has joined #ruby
<ox1eef_> johnjaye: Similar to markdown, asciidoc is a text format that any language could implement their own parser for.
Linux_Kerio has joined #ruby
grenierm has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
konsolebox has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
reset has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
crespire has joined #ruby
crespire1 has quit [Ping timeout: 256 seconds]
_ht has joined #ruby
patrick- has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
gr33n7007h has quit [Quit: WeeChat 4.0.3]
patrick- has joined #ruby
gr33n7007h has joined #ruby
shokohsc5104 has joined #ruby
shokohsc510 has quit [Ping timeout: 246 seconds]
shokohsc5104 is now known as shokohsc510
MarvelousWololo has quit [Read error: Connection reset by peer]
grenierm has quit [Ping timeout: 246 seconds]
Vonter has quit [Ping timeout: 245 seconds]
Vonter has joined #ruby
Sankalp has quit [Ping timeout: 248 seconds]
Sankalp has joined #ruby
graywolf has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
infinityfye has joined #ruby
Huckleberry777 has quit [Ping timeout: 245 seconds]
Huckleberry777 has joined #ruby
jvalleroy has left #ruby [https://quassel-irc.org - Chat comfortably. Anywhere.]
graywolf has quit [Quit: WeeChat 4.0.2]
___nick___ has joined #ruby
tomtmym has quit [Quit: Gone.]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
patrick- has quit [Ping timeout: 252 seconds]
patrick| has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
eam__ is now known as eam
John_Ivan has joined #ruby
John_Ivan has quit [Client Quit]
shokohsc510 has quit [Ping timeout: 248 seconds]
John_Ivan has joined #ruby
shokohsc510 has joined #ruby
patrick| has quit [Ping timeout: 248 seconds]
patrick- has joined #ruby
Starfoxxes has joined #ruby
kaivai has quit [Ping timeout: 246 seconds]
kaivai has joined #ruby
egality has quit [Remote host closed the connection]
dviola has quit [Remote host closed the connection]
dviola has joined #ruby
otisolsen70 has joined #ruby
shokohsc5103 has joined #ruby
shokohsc510 has quit [Ping timeout: 246 seconds]
shokohsc5103 is now known as shokohsc510
infinityfye has quit [Quit: Leaving]
otisolsen70 has quit [Quit: Leaving]
willfish has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
seydar has joined #ruby
seydar has left #ruby [#ruby]
seydar has joined #ruby
<seydar> i'm writing my first GUI app (using glimmer-dsl-libui), but i'm struggling to imagine how i should be organizing my code for it. anyone have any advice or good examples?
___nick___ has quit [Ping timeout: 246 seconds]
_ht has quit [Quit: _ht]
<weaksauc_> seydar what are you making?
<seydar> weaksauc_: a simulator for an electric grid/network analysis: https://ibb.co/fkhwk8Y
<seydar> it's pretty useless but it's been a lot of fun to write. i have the CLI and am now trying to make a GUI for it
<seydar> i'm struggling to imagine how to translate MVC to a GUI, and figured someone here might have some wisdom or insight
<weaksauc_> well you could take cues from mac or windows programming
<weaksauc_> have a window controller that delegates certain actions to certain elements
<weaksauc_> wires up the tableview to a tableviewcontroller
<weaksauc_> etc
<weaksauc_> the models do the work of massaging the data into things that you can use on the frontend
<weaksauc_> how is the CLI partitioned seydar
<seydar> how should i manage global state?
<johnjaye> there's probably textbooks on this kind of thing
<johnjaye> maybe the lack of such is why cs is not real engineering
<seydar> if all of the aspects of the GUI are going to deal with a `@grid` variable, i'm not sure how to have that accessible in a sane way
<weaksauc_> you can pass it in as an initializer
<johnjaye> seydar: what would be the ruby way to only let certain files use a class? require statement?
<seydar> meh you can't really restrict it like that
<seydar> and the initializer is prolly what i'm going to do, but i'm leaning towards having a global state hash that is always accessible
<seydar> certainly makes saving state easier, since i just have to save that one variable
<weaksauc_> it's almost never a good idea to have global state but you can try it
<seydar> my other option is to create this global state hash and then initializing every controller with that
<seydar> the benefit of having the controllers vs creating and including files with the appropriate logic is that i don't risk namespace collision, which is good
<weaksauc_> seems like they want you to do it their way
<seydar> ugh this is what i get for not fully RTFMing
<seydar> thank you
<weaksauc_> there's a bunch of examples down the list too
<seydar> the examples haven't seemed particularly clear to me. they're just a class with some helper methods, often
<seydar> but i need to dig more into the snake and tictactoe examples
some14u has joined #ruby
ds0 has joined #ruby
seydar has quit [Quit: leaving]
ds0 has quit [Remote host closed the connection]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
___nick___ has joined #ruby
willfish has quit [Quit: WeeChat 4.0.2]
brw9 has quit [Read error: Connection reset by peer]
brw9 has joined #ruby
<wakaflaka> i have the coolest ruby hasj on irc and discord combined right now
<wakaflaka> wait ill show 2sec
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<wakaflaka> hash
<wakaflaka> its a hash of analog camera modes and their unique.... what was the word
kaivai has quit [Ping timeout: 248 seconds]
MarvelousWololo has joined #ruby
<wakaflaka> ill add it to the readme later
kaivai has joined #ruby
some14u has joined #ruby
johnjaye has quit [Ping timeout: 246 seconds]
johnjaye has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
VG9t has joined #ruby
VG9t has quit [Ping timeout: 246 seconds]
tuxcrafter has quit [Quit: Client closed]