havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.3, 3.0.5, 2.7.7, 3.2.0-rc1: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://libera.irclog.whitequark.org/ruby/
ur5us has joined #ruby
<weaksauce> FullMetalStacker basics of non complicated thing is to treat all the trivial setup time as trivial
<weaksauce> O(1)
<weaksauce> meaning constant time
<weaksauce> as in that setup time is there regardless of how big n is
<weaksauce> then say you have to look at the list of items once in a row. well that's O(N) since the number increases (is bound) based on the input size
<weaksauce> you can go through the list many times say 5 times and it's still O(n)
<weaksauce> you look at O(n^2) when you have loops that have loops so O(n^2) is when you have a loop and you loop through the list again for every element
<weaksauce> if you had an algorithm that did something O(N) and also O(n^2) you would drop the O(n) since the O(n^2) is much bigger
<weaksauce> that's the hand wavy intuition but there is a formal definition that you can use to prove it and if you go to a cs major you'd have to do that in a algorithms class
eddof13 has joined #ruby
<weaksauce> that's not all that useful a chart since most things are O(n) or O(nlogn) or O(logn)
<weaksauce> the area where it gets more interesting is graph algorithms and the choice of an algorithm can drastically change your performance
grokify has quit [Remote host closed the connection]
Rounin has quit [Ping timeout: 252 seconds]
markong has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 246 seconds]
FullMetalStacker has quit [Remote host closed the connection]
caedmon has joined #ruby
caedmon has quit [Client Quit]
caedmon has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 255 seconds]
markong has quit [Ping timeout: 268 seconds]
grokify has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
caedmon has quit [Ping timeout: 246 seconds]
<adam12> I always find periods in gem names fascinating. https://rubygems.org/gems/files.com
caedmon has joined #ruby
caedmon has quit [Ping timeout: 255 seconds]
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
aeris has quit [Quit: ZNC - http://znc.sourceforge.net]
aeris has joined #ruby
goldfish has quit [Remote host closed the connection]
<weaksauce> why is that?
caedmon has joined #ruby
<adam12> weaksauce: It's just abnormal. I think I've only seen 2 other, ever. http.rb and square.rb.
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
ur5us has joined #ruby
grokify has quit [Ping timeout: 256 seconds]
<weaksauce> ah i see
reset has quit [Quit: reset]
goldfish has joined #ruby
goldfish has quit [Remote host closed the connection]
goldfish has joined #ruby
goldfish has quit [Client Quit]
goldfish has joined #ruby
reset has joined #ruby
goldfish has quit [Client Quit]
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
crax23 has joined #ruby
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 248 seconds]
crax23 has quit [Ping timeout: 260 seconds]
Linux_Kerio has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
caedmon has quit [Ping timeout: 248 seconds]
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 260 seconds]
caedmon has joined #ruby
cartdrige has joined #ruby
crax23 has quit [Ping timeout: 255 seconds]
caedmon has quit [Quit: caedmon]
caedmon has joined #ruby
grokify has quit [Remote host closed the connection]
caedmon has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 268 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
stirl has joined #ruby
stirl has quit [Remote host closed the connection]
stirl has joined #ruby
Linux_Kerio has quit [Ping timeout: 260 seconds]
otisolsen70 has joined #ruby
otisolsen70 has quit [Remote host closed the connection]
neshpion has quit [Quit: neshpion]
otisolsen70 has joined #ruby
spinningCat has left #ruby [Leaving]
polishdub has quit [Ping timeout: 264 seconds]
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 256 seconds]
white_magic has joined #ruby
stirl has left #ruby [#ruby]
white_magic has quit [Quit: Client closed]
FullMetalStacker has joined #ruby
Rounin has joined #ruby
Rounin has joined #ruby
Rounin has quit [Changing host]
grokify has joined #ruby
wks has joined #ruby
dionysus69 has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
Guest89 has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
crax23 has quit [Ping timeout: 264 seconds]
grokify_ has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
<leftylink> oho! so you see that you have written this bit of code, (x - 1).downto(0).map { |newx| arr[newx] } and you think aha! I can just replace this with arr[0..(x - 1)].reverse and it will do the same thing! but you would be wrong! surprise!
<leftylink> ruby is too smart for you and does the wrong thing!
grokify_ has quit [Remote host closed the connection]
grokify has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #ruby
grokify has quit [Remote host closed the connection]
reset has quit [Quit: reset]
Sankalp- has joined #ruby
moldorcoder7 has joined #ruby
Sankalp has quit [Ping timeout: 260 seconds]
Sankalp- is now known as Sankalp
wks has quit [Ping timeout: 256 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
goldfish has joined #ruby
grokify has quit [Remote host closed the connection]
markong has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Michaela has quit [Remote host closed the connection]
Michaela has joined #ruby
grokify has quit [Remote host closed the connection]
goldfish has quit [Remote host closed the connection]
grokify has joined #ruby
goldfish has joined #ruby
Sankalp has quit [Ping timeout: 256 seconds]
grokify has quit [Remote host closed the connection]
graywolf has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
Sankalp has joined #ruby
Michaela has quit [Ping timeout: 255 seconds]
graywolf has quit [Quit: WeeChat 3.5]
grokify has joined #ruby
_aeris_ has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
_aeris_ is now known as aeris
grokify has quit [Remote host closed the connection]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
Michaela has joined #ruby
Michaela has quit [Remote host closed the connection]
tirnanog has joined #ruby
Michaela has joined #ruby
grokify has joined #ruby
Michaela has quit [Remote host closed the connection]
Michaela has joined #ruby
Guest89 has quit [Quit: Connection closed]
grokify has quit [Remote host closed the connection]
polishdub has joined #ruby
grokify has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
aeris has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Michaela has quit [Remote host closed the connection]
aeris has quit [Read error: Connection reset by peer]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
_aeris_ has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
Michaela has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
<ox1eef_> adam12: I do that all the time. All my gems have a '.rb' suffix.
rvalue has quit [Ping timeout: 268 seconds]
FullMetalStacker has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
rvalue has joined #ruby
grokify has joined #ruby
rvalue has quit [Ping timeout: 264 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
stirl has joined #ruby
grokify has quit [Ping timeout: 252 seconds]
stirl has left #ruby [#ruby]
reset has joined #ruby
caedmon has joined #ruby
gonix has joined #ruby
caedmon has quit [Ping timeout: 256 seconds]
FullMetalStacker has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
soknte5 has joined #ruby
gonix has quit [Ping timeout: 260 seconds]
rvalue has joined #ruby
soknte5 has quit [Ping timeout: 268 seconds]
cartdrige has joined #ruby
grokify has joined #ruby
FullMetalStacker has quit [Remote host closed the connection]
grokify has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
grokify has joined #ruby
Michaela has quit [Remote host closed the connection]
Michaela has joined #ruby
r3m has quit [Quit: WeeChat 3.8-dev]
r3m has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
some14u has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
markong has quit [Ping timeout: 268 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
ur5us has joined #ruby
tumdum has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 256 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
tumdum has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grokify has joined #ruby
some14u has joined #ruby
grokify has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 246 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crax23 has joined #ruby
some14u has joined #ruby
<havenwood> ox1eef_: I only add a `.rb` prefix when the name is taken when it probably shouldn't be.
<havenwood> So very, very rarely.
<havenwood> Have only done it once.
cartdrige has quit [Ping timeout: 265 seconds]
<ox1eef_> I think I started doing that to distinguish Ruby projects from other languages on GitHub, and it kind of grew on me over time.
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
grokify has joined #ruby
havenwood has joined #ruby
crax23 has quit [Ping timeout: 248 seconds]
_ht has joined #ruby
grokify has quit [Remote host closed the connection]
Guest74 has joined #ruby
otisolsen70 has quit [Quit: Leaving]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
cartdrige has joined #ruby
Guest74 has quit [Quit: Client closed]
cryptkeeper has quit [Quit: Connection closed for inactivity]
grokify has joined #ruby
ur5us has joined #ruby
_ht has quit [Remote host closed the connection]
c10l has quit [Quit: See ya! o/]
grokify has quit [Remote host closed the connection]
c10l has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
mollerup has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nmollerup has quit [Quit: Leaving]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
cryptkeeper has joined #ruby
Guest89 has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
entropie has quit [Ping timeout: 256 seconds]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
entropie has joined #ruby
Guest89 has quit [Quit: Connection closed]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Guest89 has joined #ruby
gonix has joined #ruby
grokify has joined #ruby
NightMonkey has quit [Quit: ZNC - http://znc.in]
gonix has quit [Ping timeout: 265 seconds]
grokify has quit [Ping timeout: 255 seconds]
NightMonkey has joined #ruby
tirnanog has quit [Ping timeout: 256 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
cognemo has quit [Ping timeout: 264 seconds]