havenwood changed the topic of #ruby to: Ruby 3.4.4, 3.3.8, 3.5.0-preview1 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
chair1 has quit [Ping timeout: 272 seconds]
jmcantrell has joined #ruby
nirvdrum7411 has joined #ruby
nirvdrum741 has quit [Ping timeout: 252 seconds]
nirvdrum7411 is now known as nirvdrum741
cappy has joined #ruby
blacknova has joined #ruby
cata has joined #ruby
cata has quit [Changing host]
cata has joined #ruby
cata has quit [Quit: WeeChat 4.6.3]
jmcantrell has quit [Ping timeout: 244 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
cappy has quit [Quit: Leaving]
fantazo has quit [Quit: leaving]
ih8u2 has joined #ruby
ih8u has quit [Ping timeout: 260 seconds]
ih8u2 is now known as ih8u
ih8u2 has joined #ruby
ih8u has quit [Ping timeout: 272 seconds]
ih8u2 is now known as ih8u
johnjaye has quit [Ping timeout: 252 seconds]
johnjaye has joined #ruby
blacknova has quit [Quit: Connection closed for inactivity]
schne1der has joined #ruby
infinityfye has joined #ruby
blacknova has joined #ruby
olspookishmagus has quit [Ping timeout: 252 seconds]
olspookishmagus has joined #ruby
crespire1 has joined #ruby
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
fantazo has joined #ruby
TomyWork has joined #ruby
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Ping timeout: 276 seconds]
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
blacknova has quit [Quit: Connection closed for inactivity]
szkl has joined #ruby
andy-turner has joined #ruby
olspookishmagus has quit [Ping timeout: 260 seconds]
andy-turner has quit [Read error: Connection reset by peer]
andy-turner__ has joined #ruby
andy-turner__ has quit [Read error: Connection reset by peer]
andy-turner__ has joined #ruby
andy-turner has joined #ruby
andy-turner__ has quit [Ping timeout: 248 seconds]
andy-turner has quit [Read error: Connection reset by peer]
andy-turner has joined #ruby
andy-turner has quit [Max SendQ exceeded]
andy-turner has joined #ruby
andy-turner has quit [Read error: Connection reset by peer]
andy-turner has joined #ruby
olspookishmagus has joined #ruby
pyra is now known as lunarkitty
andy-turner_ has joined #ruby
andy-turner has quit [Read error: Connection reset by peer]
andy-turner has joined #ruby
andy-turner_ has quit [Quit: Leaving]
<nakilon> I feel like I want some pattern that is different from class instancing and module singleton configuration
<nakilon> I would like to have only one entrypoint that is kind of a function that I can permanently curry
<nakilon> like calling Config("config_dir"), and later calls Config() would read the config remembering that parameter I've set
<nakilon> we will have terbit network only because someone makes shitty software that needs it; instead he could get educated and we could build homes, feed those who are starving, etc.
<nakilon> actually I can probably do smth like... Config = lambda do ; dir = nil ; lambda do |*_dir| dir ||= _dir ; read_config() end.call end
<nakilon> but would you like your coworker do such thing?
<nakilon> *read_config(dig)
<nakilon> mine are whining every day that I use Ruby in the ways they don't understand *sigh*
otisolsen70 has joined #ruby
<nakilon> the bad thins it's not inspectable
<nakilon> *thing
<havenwood> nakilon: You can write `lambda do |_dir = nil; dir|` to prevent `dir` from being assigned outside the lambda.
<havenwood> Put another way:
<havenwood> nakilon = nil; ->(;nakilon) { nakilon = 42 }.call; nakilon #=> nil
<havenwood> A rarely used feature.
<nakilon> woah
<nakilon> is it official feature?
rvalue- has joined #ruby
<nakilon> but that's not what I want though
rvalue has quit [Ping timeout: 244 seconds]
<nakilon> or you mean I can make 1 lambda instead of 2?
<nakilon> does not seem to work
rvalue- is now known as rvalue
blacknova has joined #ruby
<nakilon> made it like this: define_method :Config do |_dir = nil| ; dir = _dir || dir
<nakilon> (and dir = "." before that)
jmcantrell has joined #ruby
o0x1eef has joined #ruby
otisolsen70 has quit [Ping timeout: 260 seconds]
brokkoli_origin has quit [Ping timeout: 276 seconds]
brokkoli_origin has joined #ruby
jmcantrell has quit [Ping timeout: 244 seconds]
nirvdrum7416 has joined #ruby
<The_Camel_> 4 more days until I finished porting my ruby to asp and java..
nirvdrum741 has quit [Ping timeout: 272 seconds]
nirvdrum7416 is now known as nirvdrum741
andy-turner has quit [Read error: Connection reset by peer]
andy-turner has joined #ruby
infinityfye has quit [Read error: Connection reset by peer]
andy-turner__ has joined #ruby
andy-turner has quit [Read error: Connection reset by peer]
andy-turner__ has quit [Read error: Connection reset by peer]
andy-turner__ has joined #ruby
blacknova has quit [Quit: Connection closed for inactivity]
andy-turner__ has quit [Read error: Connection reset by peer]
andy-turner__ has joined #ruby
blacknova has joined #ruby
andy-turner has joined #ruby
andy-turner__ has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
andy-turner has quit [Read error: Connection reset by peer]
andy-turner has joined #ruby
andy-turner has quit [Max SendQ exceeded]
andy-turner has joined #ruby
andy-turner has quit [Read error: Connection reset by peer]
andy-turner has joined #ruby
andy-turner has quit [Max SendQ exceeded]
andy-turner has joined #ruby
andy-turner has quit [Max SendQ exceeded]
andy-turner has joined #ruby
andy-turner has quit [Max SendQ exceeded]
andy-turner has joined #ruby
andy-turner has quit [Max SendQ exceeded]
andy-turner has joined #ruby
andy-turner has quit [Max SendQ exceeded]
andy-turner has joined #ruby
<The_Camel_> HAHAHAHAHHAHAHAHAH
<The_Camel_> what a rule.
<The_Camel_> HAHAHAHAHAHAHAHA
<The_Camel_> "wear what" got me good.
jmcantrell has joined #ruby
jmcantrell has quit [Ping timeout: 260 seconds]
<The_Camel_> sigh. web development is so slow. i count my progress in days and weeks..
<The_Camel_> so many interconnecting parts.
<The_Camel_> well whatever. as long as I get my end result.
dionysus69 has quit [Quit: dionysus69]
andy-turner has quit [Read error: Connection reset by peer]
chair1 has joined #ruby
schne1der has quit [Ping timeout: 272 seconds]
chair70 has joined #ruby
chair1 has quit [Ping timeout: 272 seconds]
chair70 is now known as chair1
blacknova has quit [Quit: Connection closed for inactivity]
Pixi has quit [Quit: Leaving]
Pixi has joined #ruby
<nakilon> [1,nil,2].map{ |x=3| x } why isn't it [1,3,2] ..(
<o0x1eef> [1,nil,2].map { _1 || 3 } would work
<nakilon> but I don't want || (
<nakilon> in adds complexity to the block inners
<o0x1eef> True, your idea is nice
<nakilon> I wonder if this can be made simpler "%-#{size}s" % ("%.#{size}s" % str)
<nakilon> I made a thingy that prints a table, reducing the most wide rows first if it's out of window size https://gist.github.com/Nakilon/d817e718bc989da70f3c21725f60b85d
chair1 has quit [Quit: Client closed]
<nakilon> for example, it is now used in a rake task that compares arbitrary number of certain lists, listing the items that are absent from any of them, a-la `diff -y`
chair1 has joined #ruby
<weaksauce> lol web dev is not slow... you're just using the worst possible stack for fast web dev
<The_Camel_> weaksauce, ?
<The_Camel_> it was equally as slow with ruby.
<The_Camel_> weaksauce, a lot of scaffold stuff is missing on both sides of the languages/frameworks.
<The_Camel_> I shouldn't have to set up layouts, fragments and partials myself
<The_Camel_> they should be generated as it's boilerplate.
<The_Camel_> but again, whatever.
<The_Camel_> this is still the stoneage of computing.
chair1 has quit [Ping timeout: 272 seconds]
nmollerup has quit [Quit: Leaving]
<The_Camel_> weaksauce, let's see
<The_Camel_> for a rest service, I wanna define routes. and I wanna serialize JSON or XML in most cases.
<The_Camel_> weaksauce, most frameworks handle that really easily as it's just an event callback.
<The_Camel_> weaksauce, but for handling SSR...
<The_Camel_> the overhead is a little annoying. setting up view locations. (both in ruby and ASP)
<The_Camel_> setting up SSL
<The_Camel_> setting up authentication
<The_Camel_> partials/layouts
<The_Camel_> splats
<The_Camel_> weaksauce, somehow I feel all those 5 actions should "come" as a template ready made.
<The_Camel_> I'll copy paste myself some files for future use but
<The_Camel_> so dissapointing.
<The_Camel_> they should do project archetypes like apache
Pixi has quit [Quit: Leaving]
cappy has joined #ruby
Pixi has joined #ruby
Guest78 has joined #ruby
<weaksauce> rails has templates yes. that's a solved problem too
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<The_Camel_> weaksauce, if it does, then that's good.
<weaksauce> it does
<weaksauce> you can write your own generators too
<weaksauce> many tools hook into that to add features
<The_Camel_> weaksauce, ASP.NET provides templates too but the barebones one that came along is MVC. I think I'd have to refer to "community" templates to find more.
crespire has joined #ruby
<The_Camel_> weaksauce, I suspect the same for ruby.
<The_Camel_> which is a "no no" for me. no community stuff.
<The_Camel_> weaksauce, ruby/rails*
<weaksauce> ok
<weaksauce> so you're using community made rails but not community made app templates
<weaksauce> and eschewing all packages
ua_ has quit [Ping timeout: 248 seconds]
<The_Camel_> weaksauce, it's much easier for a hobo to make a template than it is for someone to make rails as a whole or multiple packages.
<The_Camel_> though hobos make some small timer packages too
<The_Camel_> weaksauce, I have severe hatred for the "community"
<The_Camel_> so I am very, very picky with what I take or not take.
crespire1 has quit [Ping timeout: 260 seconds]
<The_Camel_> the community which chooses to prioritize growing spring rather than making an opensource IDE. bah.
<The_Camel_> growing ruby*
<The_Camel_> the same community which praises a text editor instead of looking at the problems.
jmcantrell has joined #ruby
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #ruby
brw has quit [Client Quit]
brw has joined #ruby
<gr33n7007h> ruby can never die, ruby is immortal.
<gr33n7007h> my favourite is cocktails is; aluminium oxide with splash of chromium baby!
<The_Camel_> gr33n7007h, with a side of communism.
<gr33n7007h> no, generally pork scratchings :P
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
* The_Camel_ puts on his ushanka and shoves palinka down gr33n7007h's throat
* gr33n7007h burbs, falls over and bangs his head against the floor
Guest78 has left #ruby [#ruby]
ih8u2 has joined #ruby
ih8u has quit [Ping timeout: 244 seconds]
ih8u2 is now known as ih8u